-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsyscode.h
More file actions
73 lines (41 loc) · 1.88 KB
/
Copy pathsyscode.h
File metadata and controls
73 lines (41 loc) · 1.88 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#ifndef _SYSCODE_H_
#define _SYSCODE_H_
real usertime(bool do_reset); /* return time in seconds, or -1.0 if fail */
char *time_string(void); /* return ptr to "" if fail */
bool shell_command(char *cmd);
bool subshell(void);
bool change_directory(char *dir);
bool get_directory(char *buf);
bool get_home_directory(char *buf);
bool get_code_directory(char *buf);
bool rename_file(char *original_name, char *new_name);
bool fgoto_line(FILE *fp, long index);
long mkseed(long x);
void do_seedrand(long x);
real randnum(void);
void untrapped_msg(void); /* DO NOT ASSUME THAT MSGNAME IS SET! */
void trapped_msg(void); /* DO NOT ASSUME THAT MSGNAME IS SET! */
void verbose_untrapped_msg(void); /* DO NOT ASSUME THAT MSGNAME IS SET! */
void sigcounter(void);
void signal_trap_init(void);
bool do_gnu_readline(char *prompt, char *str, int num);
int set_rl_default(void);
bool do_gnu_edit(const char *prompt, char *str, int num, char *initial /* initial may be = str */);
bool gnu_copyright(char *str /* side-effected, so it must be big enough */);
bool tty_gets(char *str, int num);
bool file_gets(FILE *fp /* must be opened with file_open() */, char *str /* must be num+2 chars long, but use num+3 in case of weirdness */,
int num /* num chars, not including the '\n' or '\0', will be read */);
void lib_puts(FILE *fp, char *str);
void tty_init(void);
bool check_tty_lines(void); /* return TRUE and set tty_lines if changed */
void tty_hello(void);
bool do_clear_screen(void);
bool do_delete_previous_line(void); /* Needed for the "Hit RETURN for more" thing */
bool do_highlight(bool reverse);
void misc_init(void); /* init this file */
void custom_lib_init(void);
void lib_init(void);
void get_cmd_line_args(const int *argc_ptr, char *argv[]);
bool check_file_arg(int num, char *arg, char *name, char *type, char *def_ext, char *prog, char *mode);
bool update_top(void);
#endif