diff mc-parse.h @ 346:969089695850

name reconfigure.... continue...
author kono
date Tue, 29 Jun 2004 23:11:47 +0900
parents 4c8f8ef8c0cf
children cef4d8eb9a26
line wrap: on
line diff
--- a/mc-parse.h	Sun Jun 27 20:31:46 2004 +0900
+++ b/mc-parse.h	Tue Jun 29 23:11:47 2004 +0900
@@ -18,16 +18,39 @@
 extern int debug; 
 extern int decl_str_init;
 
+typedef struct hash
+{
+    char *nm;
+    int len;
+    NMTBL *nptr;
+} HASH;
+
+/*
+          STRING         nptr
+          MACRO          nptr
+          FMACRO         nptr
+          RESERVE        nptr
+          TAG            nptr
+          FIELD          nptr
+          TYPE           nptr
+ */
+
+typedef struct cheap
+{
+    char *ptr;
+    char *last;
+    char *first;
+    struct cheap *next;
+} CHEAP;
+
 
 /* used in mc-macro.c */
 
 extern int asmf;
 extern int ch;
-extern char cheap[CHEAPSIZE]; // should be extendable
-extern char *cheapp;
 extern int chptrsave; 
 extern int chsave; 
-extern char linebuf[LBUFSIZE],namebuf[LBUFSIZE],*chptr;
+extern char linebuf[LBUFSIZE],*chptr;
 extern int glineno; 
 extern int in_comment; 
 extern int in_quote; 
@@ -41,6 +64,8 @@
 extern  NMTBL null_nptr;
 extern NMTBL ntable[GSYMS+LSYMS];
 
+extern char * make_filename_with_extension(char *filename,char *ext);
+
 /* used in mc-switch */
 
 extern void free_glist3(int e1);
@@ -86,6 +111,8 @@
 
 /* used in mc-macro.c */
 
+extern struct cheap *cheap;
+
 extern int getsym(int sc);
 extern int getch(void);
 extern int skipspc(void);
@@ -96,4 +123,8 @@
 extern int alpha(int c);
 extern int digit(int c);
 
+extern struct cheap * increment_cheap(struct cheap *cheap,char **save);
+extern void save_cheap(struct cheap *scheap,struct cheap *cheap);
+extern struct cheap * reset_cheap(struct cheap *scheap);
+
 /* end */