annotate mc-macro.h @ 721:76761a18703b recursive-macro

Recursive macro
author kono
date Wed, 11 Jun 2008 22:26:42 +0900
parents e055df7c1082
children beb59eb56bb4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
327
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
1 /* mc-macro.c */
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
2
607
e055df7c1082 *** empty log message ***
kono
parents: 527
diff changeset
3
e055df7c1082 *** empty log message ***
kono
parents: 527
diff changeset
4
e055df7c1082 *** empty log message ***
kono
parents: 527
diff changeset
5 /************************************************************************
e055df7c1082 *** empty log message ***
kono
parents: 527
diff changeset
6 ** Copyright (C) 2006 Shinji Kono
e055df7c1082 *** empty log message ***
kono
parents: 527
diff changeset
7 ** 連絡先: 琉球大学情報工学科 河野 真治
e055df7c1082 *** empty log message ***
kono
parents: 527
diff changeset
8 ** (E-Mail Address: kono@ie.u-ryukyu.ac.jp)
e055df7c1082 *** empty log message ***
kono
parents: 527
diff changeset
9 **
e055df7c1082 *** empty log message ***
kono
parents: 527
diff changeset
10 ** このソースのいかなる複写,改変,修正も許諾します。ただし、
e055df7c1082 *** empty log message ***
kono
parents: 527
diff changeset
11 ** その際には、誰が貢献したを示すこの部分を残すこと。
e055df7c1082 *** empty log message ***
kono
parents: 527
diff changeset
12 ** 再配布や雑誌の付録などの問い合わせも必要ありません。
e055df7c1082 *** empty log message ***
kono
parents: 527
diff changeset
13 ** 営利利用も上記に反しない範囲で許可します。
e055df7c1082 *** empty log message ***
kono
parents: 527
diff changeset
14 ** バイナリの配布の際にはversion messageを保存することを条件とします。
e055df7c1082 *** empty log message ***
kono
parents: 527
diff changeset
15 ** このプログラムについては特に何の保証もしない、悪しからず。
e055df7c1082 *** empty log message ***
kono
parents: 527
diff changeset
16 **
e055df7c1082 *** empty log message ***
kono
parents: 527
diff changeset
17 ** Everyone is permitted to do anything on this program
e055df7c1082 *** empty log message ***
kono
parents: 527
diff changeset
18 ** including copying, modifying, improving,
e055df7c1082 *** empty log message ***
kono
parents: 527
diff changeset
19 ** as long as you don't try to pretend that you wrote it.
e055df7c1082 *** empty log message ***
kono
parents: 527
diff changeset
20 ** i.e., the above copyright notice has to appear in all copies.
e055df7c1082 *** empty log message ***
kono
parents: 527
diff changeset
21 ** Binary distribution requires original version messages.
e055df7c1082 *** empty log message ***
kono
parents: 527
diff changeset
22 ** You don't have to ask before copying, redistribution or publishing.
e055df7c1082 *** empty log message ***
kono
parents: 527
diff changeset
23 ** THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE.
e055df7c1082 *** empty log message ***
kono
parents: 527
diff changeset
24 ***********************************************************************/
327
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
25 extern void macro_expansion(NMTBL *nptrm);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
26 extern int macroeq(char *n);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
27 extern void check_macro_eof();
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
28 extern void getline(void);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
29 extern void macro_define(char *macro);
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
30 extern char *chinput;
527
6b0fd56848e6 inline continue....
kono
parents: 327
diff changeset
31 extern char *mappend(int lists,char **result);
721
76761a18703b Recursive macro
kono
parents: 607
diff changeset
32 extern int check_recurse(char *macro,int history);
327
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
33
da2e3f2d127d macro/codegen reorganization
kono
parents:
diff changeset
34 extern int in_macro_if;
721
76761a18703b Recursive macro
kono
parents: 607
diff changeset
35 extern int macro_history;
76761a18703b Recursive macro
kono
parents: 607
diff changeset
36 extern int macro_history_save;