Check-in [8cc50d6d42]

Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
SHA1 Hash:8cc50d6d429c3c173147f3a61cf54d836a35f1bc
Date: 2009-06-08 20:33:41
User: stephan
Comment:changed a static int to a private enum
Tags And Properties
Changes
hide diffs unified diffs patch

Changes to src/pegc.c

Old (184024d0cb32a8d9) New (babbfdd3c6dfed9f)
1 #include <stdio.h> 1 #include <stdio.h>
2 #include <stdlib.h> 2 #include <stdlib.h>
3 #include <string.h> 3 #include <string.h>
4 #include <ctype.h> 4 #include <ctype.h>
5 5
1274 hidden lines
1280 to change the implementations of the list rules and 1280 to change the implementations of the list rules and
1281 pegc_r_list_a(). Having all of the rules in a contiguous array 1281 pegc_r_list_a(). Having all of the rules in a contiguous array
1282 simplifies those implementations. 1282 simplifies those implementations.
1283 */ 1283 */
1284 if( !st ) return PegcRule_invalid; 1284 if( !st ) return PegcRule_invalid;
1285 const size_t blockSize = 3; /* number of rules to allocate at a time. */ | 1285 enum { blockSize = 5 }; /* number of rules to allocate at a time. */
1286 int count = 1; 1286 int count = 1;
1287 PegcRule * li = 0; 1287 PegcRule * li = 0;
1288 int pos = 0; 1288 int pos = 0;
1289 bool ok = true; 1289 bool ok = true;
1290 while( true ) 1290 while( true )
1080 hidden lines
2371 #undef PEGCACTION_INIT 2371 #undef PEGCACTION_INIT
2372 2372
2373 #if defined(__cplusplus) 2373 #if defined(__cplusplus)
2374 } /* extern "C" */ 2374 } /* extern "C" */
2375 #endif 2375 #endif