VirtualBox

Changeset 606 in kBuild for trunk/src/sed/lib


Ignore:
Timestamp:
Nov 26, 2006 1:58:42 AM (18 years ago)
Author:
bird
Message:

Made sed build using MSC.

Location:
trunk/src/sed/lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sed/lib/regcomp.c

    r599 r606  
    561561static const bitset_t utf8_sb_map =
    562562{
    563   /* Set the first 128 bits.  */
     563    /* Set the first 128 bits.  */
     564#ifdef _MSC_VER
     565  BITSET_WORD_MAX, BITSET_WORD_MAX, BITSET_WORD_MAX, BITSET_WORD_MAX, 0, 0, 0, 0
     566#else
    564567  [0 ... 0x80 / BITSET_WORD_BITS - 1] = BITSET_WORD_MAX
     568#endif
    565569};
    566570#endif
  • trunk/src/sed/lib/regex_internal.h

    r604 r606  
    9292#else
    9393# define BE(expr, val) (expr)
    94 # define inline
     94# ifndef inline /* bird: silly since the rest of sed depends on this working.. */
     95#  define inline
     96# endif
    9597#endif
    9698
     
    413415#define re_string_set_index(pstr,idx) ((pstr)->cur_idx = (idx))
    414416
    415 #include <alloca.h>
     417#if HAVE_ALLOCA_H
     418# include <alloca.h>
     419#elif HAVE_MALLOC_H
     420# include <malloc.h>
     421#endif
    416422
    417423#ifndef _LIBC
  • trunk/src/sed/lib/regexec.c

    r599 r606  
    28992899    }
    29002900
     2901#ifdef __GNUC__ /* silly buggers. */
    29012902  str_idx = path->next_idx ?: top_str;
     2903#else
     2904  str_idx = path->next_idx ? path->next_idx : top_str;
     2905#endif
    29022906
    29032907  /* Temporary modify MCTX.  */
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