VirtualBox

Changeset 1826 in kBuild for trunk


Ignore:
Timestamp:
Oct 11, 2008 1:58:49 AM (16 years ago)
Author:
bird
Message:

kmk: isspace isn't inlined on msc, do that.

Location:
trunk/src/kmk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/config.h.win

    r1813 r1826  
    527527#include "inlined_memchr.h"
    528528
     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
     543extern char space_map[space_map_size];
     544#endif
     545
  • trunk/src/kmk/main.c

    r1811 r1826  
    12471247}
    12481248
     1249#if defined(set_space_map_entry) /*bird*/
     1250char space_map[space_map_size];
     1251#endif
     1252
    12491253
    12501254#ifdef _AMIGA
     
    12731277  no_default_sh_exe = 1;
    12741278#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
    12751288
    12761289#ifdef SET_STACK_SIZE
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette