diff lwcc/symbol.h @ 299:856caf91ffaa ccdev

Added token list structure and switched some stuff to use it Swithced to using a token list structure instead of manually fiddling pointers throughout the macro expansion code. Also fixed up some problematic things related to stringification and concatenation.
author William Astle <lost@l-w.ca>
date Sun, 15 Sep 2013 13:06:00 -0600
parents 83fcc1ed6ad6
children
line wrap: on
line diff
--- a/lwcc/symbol.h	Sat Sep 14 22:42:53 2013 -0600
+++ b/lwcc/symbol.h	Sun Sep 15 13:06:00 2013 -0600
@@ -28,7 +28,7 @@
 struct symtab_e
 {
 	char *name;				// symbol name
-	struct token *tl;		// token list the name is defined as, NULL for none
+	struct token_list *tl;	// token list the name is defined as, NULL for none
 	int nargs;				// number named of arguments - -1 for object like macro
 	int vargs;				// set if macro has varargs style
 	char **params;			// the names of the parameters
@@ -37,6 +37,6 @@
 
 struct symtab_e *symtab_find(struct preproc_info *, char *);
 void symtab_undef(struct preproc_info *, char *);
-void symtab_define(struct preproc_info *, char *, struct token *, int, char **, int);
+void symtab_define(struct preproc_info *, char *, struct token_list *, int, char **, int);
 
 #endif // symbol_h_seen___