]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - parser.h
Initial movement to std::vector
[xonotic/gmqcc.git] / parser.h
index 0a303e0e220055c11e4247d6e763b434cbd5d551..43ebe6f0b0e3902c3173e666922a88039abdf0ad 100644 (file)
--- a/parser.h
+++ b/parser.h
@@ -58,10 +58,10 @@ struct parser_s {
     /* All the labels the function defined...
      * Should they be in ast_function instead?
      */
-    ast_label  **labels;
-    ast_goto   **gotos;
-    const char **breaks;
-    const char **continues;
+    std::vector<ast_label*> labels;
+    std::vector<ast_goto*> gotos;
+    std::vector<const char *> breaks;
+    std::vector<const char *> continues;
 
     /* A list of hashtables for each scope */
     ht *variables;