source: tags/initial/AISC/aisc_proto.h

Last change on this file was 2, checked in by oldcode, 24 years ago

Initial revision

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.8 KB
Line 
1#ifndef P_
2#if defined(__STDC__) || defined(__cplusplus)
3# define P_(s) s
4#else
5# define P_(s) ()
6#endif
7#endif
8
9
10/* aisc.c */
11char *read_aisc_file P_((char *path));
12void aisc_init P_((void));
13void p_err_eof P_((void));
14void p_error_brih P_((void));
15void p_error_nobr P_((void));
16void p_error_nocbr P_((void));
17void p_error_emwbr P_((void));
18void p_error_hewnoid P_((void));
19void p_error_mixhnh P_((void));
20void p_error_misscom P_((void));
21void p_error_missco P_((void));
22void p_error_exp_string P_((void));
23char *read_aisc_string P_((char **in, int *is_m));
24AD *make_AD P_((void));
25HS *make_HS P_((void));
26CL *make_CL P_((void));
27AD *read_aisc_line P_((char **in, HS **hs));
28AD *read_aisc P_((char **in));
29CL *read_prog P_((char **in, char *file));
30int main P_((int argc, char **argv));
31
32/* aisc_commands.c */
33int print_error P_((const char *err));
34void memcopy P_((char *dest, const char *source, int len));
35char *find_string P_((const char *str, const char *key));
36char *calc_rest_line P_((char *str, int size, int presize));
37int calc_line P_((char *str, char *buf));
38int calc_line2 P_((char *str, char *buf));
39void write_aisc P_((AD *ad, FILE *out, int deep));
40void write_prg P_((CL *cl, FILE *out, int deep));
41int do_com_dbg P_((char *str));
42int do_com_data P_((char *str));
43int do_com_write P_((FILE *out, char *str));
44int do_com_print P_((char *str));
45int do_com_print2 P_((char *str));
46int do_com_tabstop P_((char *str));
47int do_com_tab P_((char *str));
48int do_com_error P_((char *str));
49int do_com_open P_((char *str));
50void aisc_remove_files P_((void));
51int do_com_close P_((char *str));
52int do_com_out P_((char *str));
53int do_com_moveto P_((char *str));
54int do_com_set P_((char *str));
55int do_com_create P_((char *str));
56int do_com_if P_((char *str));
57int do_com_for_add P_((CL *co));
58int do_com_for_sub P_((CL *co));
59int do_com_push P_((const char *str));
60int do_com_pop P_((const char *str));
61int do_com_gosub P_((char *str));
62int do_com_goto P_((char *str));
63int do_com_return P_((char *str));
64int do_com_exit P_((char *str));
65int do_com_for P_((char *str));
66int do_com_next P_((const char *str));
67int run_prg P_((void));
68
69/* aisc_mix.c */
70CL *aisc_calc_blocks P_((CL *co, CL *afor, CL *aif, int up));
71int aisc_calc_special_commands P_((void));
72int hash_index P_((const char *key, int size));
73struct hash_struct *create_hash P_((int size));
74char *read_hash_local P_((char *key, struct hash_struct **hs));
75char *read_hash P_((struct hash_struct *hs, char *key));
76char *write_hash P_((struct hash_struct *hs, const char *key, const char *val));
77int free_hash P_((struct hash_struct *hs));
78
79/* aisc_var_ref.c */
80AD *aisc_match P_((AD *var, char *varid, char *varct));
81AD *aisc_find_var_hier P_((AD *cursor, char *str, int next, int extended, int goup));
82AD *aisc_find_var P_((AD *cursor, char *str, int next, int extended, int goup));
83char *get_var_string P_((char *var));
84
85#undef P_
Note: See TracBrowser for help on using the repository browser.