]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
filecontext_t -> lex_ctx_t, removing some const
authorWolfgang (Blub) Bumiller <blub@speed.at>
Wed, 25 Apr 2012 12:51:23 +0000 (14:51 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Wed, 25 Apr 2012 15:27:48 +0000 (17:27 +0200)
ir.h

diff --git a/ir.h b/ir.h
index 91b112cd2ba4df1d27ef0fc0f0046003df08c698..d764938cef4a9682cf0e608dd2944a939ec783d2 100644 (file)
--- a/ir.h
+++ b/ir.h
@@ -14,7 +14,7 @@ typedef struct
 
 struct ir_function_s;
 typedef struct ir_value_s {
-    const char *name;
+    char      *name;
     ir_type_t  vtype;
     ir_store_t store;
     filecontext_t context;
@@ -28,7 +28,7 @@ typedef struct ir_value_s {
         int   vint;
         qc_vec_t vvec;
         struct ir_value_s *vpointer;
-        const char *vstring;
+        char *vstring;
     } cvalue;
     qbool has_constval;
 
@@ -98,9 +98,9 @@ void ir_instr_dump(ir_instr* in, char *ind, int (*oprintf)(const char*,...));
 /* block */
 typedef struct ir_block_s
 {
-    const char    *label;
-    filecontext_t context;
-    qbool         final; /* once a jump is added we're done */
+    char      *label;
+    lex_ctx_t  context;
+    qbool      final; /* once a jump is added we're done */
 
     MEM_VECTOR_MAKE(ir_instr*, instr);
     MEM_VECTOR_MAKE(struct ir_block_s*, entries);
@@ -158,8 +158,8 @@ void ir_block_dump(ir_block*, char *ind, int (*oprintf)(const char*,...));
 
 typedef struct ir_function_s
 {
-    const char    *name;
-    ir_type_t     retype;
+    char *name;
+    int   retype;
     MEM_VECTOR_MAKE(ir_type_t, params);
     MEM_VECTOR_MAKE(ir_block*, blocks);
 
@@ -175,7 +175,7 @@ typedef struct ir_function_s
     ir_block*     first;
     ir_block*     last;
 
-    filecontext_t context;
+    lex_ctx_t     context;
 
     /* for temp allocation */
     size_t run_id;
@@ -209,7 +209,7 @@ void ir_function_dump(ir_function*, char *ind, int (*oprintf)(const char*,...));
 /* builder */
 typedef struct ir_builder_s
 {
-    const char     *name;
+    char *name;
     MEM_VECTOR_MAKE(ir_function*, functions);
     MEM_VECTOR_MAKE(ir_value*, globals);
 } ir_builder;