]> granicus.if.org Git - re2c/commitdiff
- Applied #1647875 add const to yybm vector
authorhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Tue, 30 Jan 2007 20:38:22 +0000 (20:38 +0000)
committerhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Tue, 30 Jan 2007 20:38:22 +0000 (20:38 +0000)
15 files changed:
re2c/CHANGELOG
re2c/code.cc
re2c/lessons/001_upn_calculator/calc_007.b.c
re2c/lessons/001_upn_calculator/windows/main.b.c
re2c/test/bug1472770.b.c
re2c/test/bug1479044.b.c
re2c/test/ctx.b.c
re2c/test/cvsignore.b.c
re2c/test/cvsignore.wb.c
re2c/test/input11.b.c
re2c/test/parse_date.b.c
re2c/test/parse_date.db.c
re2c/test/parse_date.g.c
re2c/test/push.fb.c
re2c/test/push.fg.c

index 3efd6f05d0d89b33dedb5806c61dba2937bdcc05..3fcf74ed15a32e3a688f4d8970b6f003291ae7df 100644 (file)
@@ -1,5 +1,6 @@
 Version 0.11.1 (????-??-??)
 ---------------------------
+- Applied #1647875 add const to yybm vector.
 
 Version 0.11.0 (2007-01-01)
 ---------------------------
index e7c8afcacdf2dfa9563f44cd1ec00060d5f8f590..e3e51899085e70efed5c296cdd168fdbbbdb4cd3 100644 (file)
@@ -215,7 +215,7 @@ void BitMap::gen(std::ostream &o, uint ind, uint lb, uint ub)
 
        if (b && bLastPass)
        {
-               o << indent(ind) << "static unsigned char yybm[] = {";
+               o << indent(ind) << "static const unsigned char yybm[] = {";
 
                uint c = 1, n = ub - lb;
 
index c60bfe29a1e380f06586447cd914f971cf66041c..b2b269a7dea5155f774c4e079ddb8e9d2dc004bd 100755 (executable)
@@ -65,7 +65,7 @@ int scan(char *s)
        {
                t = p;
                {
-                       static unsigned char yybm[] = {
+                       static const unsigned char yybm[] = {
                                  0,   0,   0,   0,   0,   0,   0,   0, 
                                  0, 128,   0,   0,   0,   0,   0,   0, 
                                  0,   0,   0,   0,   0,   0,   0,   0, 
index 78d03fdb45adafb63bafa7022f44efa0323d5c9b..24f3ec3178e72403eb2ab6b00b2753c89fc1642a 100755 (executable)
@@ -51,7 +51,7 @@ int ScanFullSpeed(char *pzStrToScan, size_t lenStrToScan)
        for(;;)
        {
                {
-                       static unsigned char yybm[] = {
+                       static const unsigned char yybm[] = {
                                  0,   0,   0,   0,   0,   0,   0,   0, 
                                  0,   0,   0,   0,   0,   0,   0,   0, 
                                  0,   0,   0,   0,   0,   0,   0,   0, 
@@ -180,7 +180,7 @@ int scan(char *pzStrToScan, size_t lenStrToScan)
        for(;;)
        {
                {
-                       static unsigned char yybm[] = {
+                       static const unsigned char yybm[] = {
                                  0,   0,   0,   0,   0,   0,   0,   0, 
                                  0,   0,   0,   0,   0,   0,   0,   0, 
                                  0,   0,   0,   0,   0,   0,   0,   0, 
index 8dd8f3d6d8af4f8e56e8f7ca0974cb61618b275b..f733a827dca0fd1a9dd29b33af3881799f89987a 100755 (executable)
@@ -19,7 +19,7 @@ int scan(char *p)
        printf("]--------------\n");
 start:
 {
-       static unsigned char yybm[] = {
+       static const unsigned char yybm[] = {
                  0, 128, 128, 128, 128, 128, 128, 128, 
                128, 128,   0, 128, 128, 128, 128, 128, 
                128, 128, 128, 128, 128, 128, 128, 128, 
index 41530d6676cc5704a70557ee21f0f3be1511029e..ab5e311fd280265add33b2c47989d812f538442d 100755 (executable)
@@ -14,7 +14,7 @@ char *scan281(char *p)
        char *q;
 start:
 {
-       static unsigned char yybm[] = {
+       static const unsigned char yybm[] = {
                /* table 1 .. 8: 0 */
                170, 170, 170, 170, 170, 170, 170, 170, 
                170, 170,   0, 170, 170, 170, 170, 170, 
index 414d8d29dc918d9d49f183e9825ddedb8c1d53bf..b9aa787fac29aa69eaf3d5c77c73620a56756009 100755 (executable)
@@ -46,7 +46,7 @@ std:
        s.tok = cursor;
 
 {
-       static unsigned char yybm[] = {
+       static const unsigned char yybm[] = {
                  0,   0,   0,   0,   0,   0,   0,   0, 
                  0,   0,   0,   0,   0,   0,   0,   0, 
                  0,   0,   0,   0,   0,   0,   0,   0, 
index e2e3537d113bf594f45e52be923cbb4b46a42751..6fa5d3a0ff4f194e205eb9e7b1b786f7b741562f 100755 (executable)
@@ -39,7 +39,7 @@ void scan(YYCTYPE *pText, size_t *pSize, int *pbChanged)
        while(1) {
 loop:
 {
-       static unsigned char yybm[] = {
+       static const unsigned char yybm[] = {
                128, 128, 128, 128, 128, 128, 128, 128, 
                128, 128,   0, 128, 128, 128, 128, 128, 
                128, 128, 128, 128, 128, 128, 128, 128, 
index 66d0fd037638e2b445f53f74a2bd6784ffb94aaa..d51ee1c62b19cc73f48d6be2d23a9d8daa49c81b 100755 (executable)
@@ -39,7 +39,7 @@ void scan(YYCTYPE *pText, size_t *pSize, int *pbChanged)
        while(1) {
 loop:
 {
-       static unsigned char yybm[] = {
+       static const unsigned char yybm[] = {
                128, 128, 128, 128, 128, 128, 128, 128, 
                128, 128,   0, 128, 128, 128, 128, 128, 
                128, 128, 128, 128, 128, 128, 128, 128, 
index a92a82ec9c5adf848d1ff03fdb6c242b68c7ca59..df7c09d8765b31c3ce9b2db360f759be15aff815 100755 (executable)
@@ -1,7 +1,7 @@
 /* Generated by re2c */
 #line 1 "input11.b.re"
 {
-       static unsigned char yybm[] = {
+       static const unsigned char yybm[] = {
                0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
                0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
                0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
index 75d8a281a45878a096f854f07f55bcd079513145..0e71770fe75c0831496cbeaf06d7115b9841fca9 100755 (executable)
@@ -739,7 +739,7 @@ std:
 
 
 {
-       static unsigned char yybm[] = {
+       static const unsigned char yybm[] = {
                  0,   0,   0,   0,   0,   0,   0,   0, 
                  0,   0,   0,   0,   0,   0,   0,   0, 
                  0,   0,   0,   0,   0,   0,   0,   0, 
index d4ebd26dad72d46e18983122b3734dd7d8adfc08..c92aedbe2509838d3fd410618f95a9c486fa8de6 100755 (executable)
@@ -759,7 +759,7 @@ std:
 
 
 {
-       static unsigned char yybm[] = {
+       static const unsigned char yybm[] = {
                  0,   0,   0,   0,   0,   0,   0,   0, 
                  0, 208,   0,   0,   0,   0,   0,   0, 
                  0,   0,   0,   0,   0,   0,   0,   0, 
index f998433af74765915365f2971ad47fb3e0304fbb..a67e523cbef73365ce5bde6f8cc908391aa10500 100755 (executable)
@@ -739,7 +739,7 @@ std:
 
 
 {
-       static unsigned char yybm[] = {
+       static const unsigned char yybm[] = {
                  0,   0,   0,   0,   0,   0,   0,   0, 
                  0,   0,   0,   0,   0,   0,   0,   0, 
                  0,   0,   0,   0,   0,   0,   0,   0, 
index 80daf4a671ef19a95c66f44c8caf18bdeed538ec..a16aa58e7e9e2fae8cfd21378dd622f8cdaa8acf 100755 (executable)
@@ -229,7 +229,7 @@ public:
     start:
 
         {
-       static unsigned char yybm[] = {
+       static const unsigned char yybm[] = {
                  0,   0,   0,   0,   0,   0,   0,   0, 
                  0,   0,   0,   0,   0,   0,   0,   0, 
                  0,   0,   0,   0,   0,   0,   0,   0, 
index eb5c4aee427212d9deabd811fc47eec2f3581c8f..4e809a395df51069d97c6e2d4826d1e1587bea56 100755 (executable)
@@ -229,7 +229,7 @@ public:
     start:
 
         {
-       static unsigned char yybm[] = {
+       static const unsigned char yybm[] = {
                  0,   0,   0,   0,   0,   0,   0,   0, 
                  0,   0,   0,   0,   0,   0,   0,   0, 
                  0,   0,   0,   0,   0,   0,   0,   0,