]> git.sur5r.net Git - cc65/blobdiff - src/ca65/toklist.h
Make much more usage of dynamic strings (StrBufs) instead of char* and
[cc65] / src / ca65 / toklist.h
index 1f94249543a93cb9f690d28df7aaa737e08af5c7..bdf5a76b28cc02c7633f814521de259bb8d5a234 100644 (file)
@@ -6,10 +6,10 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 2000-2007 Ullrich von Bassewitz                                       */
-/*               Roemerstrasse 52                                            */
-/*               D-70794 Filderstadt                                         */
-/* EMail:        uz@cc65.org                                                 */
+/* (C) 2000-2008, Ullrich von Bassewitz                                      */
+/*                Roemerstrasse 52                                           */
+/*                D-70794 Filderstadt                                        */
+/* EMail:         uz@cc65.org                                                */
 /*                                                                           */
 /*                                                                           */
 /* This software is provided 'as-is', without any expressed or implied       */
 
 
 
+/* common */
+#include "strbuf.h"
+
+/* ca65 */
 #include "scanner.h"
 
 
@@ -55,7 +59,7 @@ struct TokNode {
     Token      Tok;                    /* Token value */
     int                WS;                     /* Whitespace before token? */
     long               IVal;                   /* Integer token attribute */
-    char               SVal [1];               /* String attribute, dyn. allocated */
+    StrBuf      SVal;                   /* String attribute, dyn. allocated */
 };
 
 /* Struct holding a token list */