- Timestamp:
- Oct 11, 2008 1:58:49 AM (16 years ago)
- Location:
- trunk/src/kmk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/config.h.win
r1813 r1826 527 527 #include "inlined_memchr.h" 528 528 529 #if 1 530 # include <ctype.h> 531 # if _MSC_VER >= 1400 532 # include <intrin.h> 533 # pragma intrinsic(_bittest) 534 # pragma intrinsic(_bittestandset) 535 # define space_map_size 8 536 # define set_space_map_entry(ch) _bittestandset((long *)&space_map[0], (unsigned char)(ch)) 537 # define isspace(ch) _bittest((long *)&space_map[0], (unsigned char)(ch)) 538 # else 539 # define space_map_size 256 540 # define set_space_map_entry(ch) (space_map[(unsigned char)(ch)] = 1) 541 # define isspace(ch) (space_map[(unsigned char)(ch)]) 542 # endif 543 extern char space_map[space_map_size]; 544 #endif 545 -
trunk/src/kmk/main.c
r1811 r1826 1247 1247 } 1248 1248 1249 #if defined(set_space_map_entry) /*bird*/ 1250 char space_map[space_map_size]; 1251 #endif 1252 1249 1253 1250 1254 #ifdef _AMIGA … … 1273 1277 no_default_sh_exe = 1; 1274 1278 #endif 1279 # if defined(set_space_map_entry) /* bird */ 1280 memset (space_map, '\0', sizeof(space_map)); 1281 set_space_map_entry (' '); 1282 set_space_map_entry ('\f'); 1283 set_space_map_entry ('\n'); 1284 set_space_map_entry ('\r'); 1285 set_space_map_entry ('\t'); 1286 set_space_map_entry ('\v'); 1287 # endif 1275 1288 1276 1289 #ifdef SET_STACK_SIZE
Note:
See TracChangeset
for help on using the changeset viewer.