forked from JuliaLang/julia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
repl.h
37 lines (32 loc) · 937 Bytes
/
repl.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef JL_REPL_H
#define JL_REPL_H
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <setjmp.h>
#include <signal.h>
#include <assert.h>
#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <limits.h>
#include <errno.h>
#include <math.h>
#include <libgen.h>
#include <getopt.h>
#include <ctype.h>
#include "julia.h"
extern int tab_width;
extern DLLEXPORT char *julia_home;
extern void init_repl_environment(int argc, char *argv[]);
extern char *read_expr(char *prompt);
extern void handle_input(jl_value_t *ast, int end, int show_value);
extern int ends_with_semicolon(const char *input);
extern char *ios_readline(ios_t *s);
DLLEXPORT extern void repl_callback_enable(char *prompt);
DLLEXPORT extern void jl_stdin_callback();
DLLEXPORT extern void jl_readBuffer(char *base, ssize_t nread);
DLLEXPORT extern void jl_clear_input(void);
#endif // JL_REPL_H