VirtualBox

Changeset 606 in kBuild for trunk/src


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

Made sed build using MSC.

Location:
trunk/src/sed
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sed/Makefile.kmk

    r605 r606  
    3333        lib/regex.c
    3434ifeq ($(filter-out win32 win64 win nt,$(BUILD_TARGET)),)
    35 kmk_SOURCES +=
     35kmk_sed_SOURCES += \
     36        lib/strverscmp.c \
     37        lib/obstack.c \
     38        lib/mkstemp.c \
     39        lib/getline.c
    3640endif
    3741
  • trunk/src/sed/basicdefs.h

    r599 r606  
    6060# define __bool_true_false_are_defined 1
    6161#else
    62 # include <stdbool.h>
     62# if HAVE_STDBOOL_H
     63#  include <stdbool.h>
     64# endif
    6365#endif
    6466
  • 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