summaryrefslogtreecommitdiff
path: root/src/cuda-sim/ptx.y
diff options
context:
space:
mode:
authorMengchi Zhang <[email protected]>2019-05-17 16:21:31 -0400
committerMengchi Zhang <[email protected]>2019-05-17 16:55:43 -0400
commit6afdcb5a0c2f4295549c1b53187c08ad75004293 (patch)
tree5ad80d2a30d92c99c922fc75a8a67f533a277e2a /src/cuda-sim/ptx.y
parent1fb385af6e036588a0b807aa51d74dcf34f841cd (diff)
Fix linebuf and col
Signed-off-by: Mengchi Zhang <[email protected]>
Diffstat (limited to 'src/cuda-sim/ptx.y')
-rw-r--r--src/cuda-sim/ptx.y3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cuda-sim/ptx.y b/src/cuda-sim/ptx.y
index 366b0cc..38a627f 100644
--- a/src/cuda-sim/ptx.y
+++ b/src/cuda-sim/ptx.y
@@ -43,6 +43,9 @@ class ptx_recognizer;
int int_value;
char * string_value;
void * ptr_value;
+#define LINEBUF_SIZE (4*1024)
+ char linebuf[LINEBUF_SIZE];
+ unsigned col;
}
%token <string_value> STRING