mirror of
https://review.haiku-os.org/buildtools
synced 2026-02-04 07:53:14 +01:00
Compare commits
3 Commits
btrev43219
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
13c7a4265a | ||
|
|
7ab022f6e6 | ||
|
|
360fe2fd07 |
4
gcc/libiberty/aclocal.m4
vendored
4
gcc/libiberty/aclocal.m4
vendored
@@ -1,6 +1,6 @@
|
|||||||
# generated automatically by aclocal 1.15.1 -*- Autoconf -*-
|
# generated automatically by aclocal 1.16.5 -*- Autoconf -*-
|
||||||
|
|
||||||
# Copyright (C) 1996-2017 Free Software Foundation, Inc.
|
# Copyright (C) 1996-2021 Free Software Foundation, Inc.
|
||||||
|
|
||||||
# This file is free software; the Free Software Foundation
|
# This file is free software; the Free Software Foundation
|
||||||
# gives unlimited permission to copy and/or distribute it,
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
|
|||||||
@@ -198,6 +198,12 @@
|
|||||||
/* Define to 1 if you have the `pipe2' function. */
|
/* Define to 1 if you have the `pipe2' function. */
|
||||||
#undef HAVE_PIPE2
|
#undef HAVE_PIPE2
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `posix_spawn' function. */
|
||||||
|
#undef HAVE_POSIX_SPAWN
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `posix_spawnp' function. */
|
||||||
|
#undef HAVE_POSIX_SPAWNP
|
||||||
|
|
||||||
/* Define to 1 if you have the <process.h> header file. */
|
/* Define to 1 if you have the <process.h> header file. */
|
||||||
#undef HAVE_PROCESS_H
|
#undef HAVE_PROCESS_H
|
||||||
|
|
||||||
@@ -249,6 +255,9 @@
|
|||||||
/* Define to 1 if you have the `spawnvpe' function. */
|
/* Define to 1 if you have the `spawnvpe' function. */
|
||||||
#undef HAVE_SPAWNVPE
|
#undef HAVE_SPAWNVPE
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <spawn.h> header file. */
|
||||||
|
#undef HAVE_SPAWN_H
|
||||||
|
|
||||||
/* Define to 1 if you have the <stdint.h> header file. */
|
/* Define to 1 if you have the <stdint.h> header file. */
|
||||||
#undef HAVE_STDINT_H
|
#undef HAVE_STDINT_H
|
||||||
|
|
||||||
|
|||||||
8
gcc/libiberty/configure
vendored
8
gcc/libiberty/configure
vendored
@@ -5517,7 +5517,7 @@ host_makefile_frag=${frag}
|
|||||||
# It's OK to check for header files. Although the compiler may not be
|
# It's OK to check for header files. Although the compiler may not be
|
||||||
# able to link anything, it had better be able to at least compile
|
# able to link anything, it had better be able to at least compile
|
||||||
# something.
|
# something.
|
||||||
for ac_header in sys/file.h sys/param.h limits.h stdlib.h malloc.h string.h unistd.h strings.h sys/time.h time.h sys/resource.h sys/stat.h sys/mman.h fcntl.h alloca.h sys/pstat.h sys/sysmp.h sys/sysinfo.h machine/hal_sysinfo.h sys/table.h sys/sysctl.h sys/systemcfg.h stdint.h stdio_ext.h process.h sys/prctl.h
|
for ac_header in sys/file.h sys/param.h limits.h stdlib.h malloc.h string.h unistd.h strings.h sys/time.h time.h sys/resource.h sys/stat.h sys/mman.h fcntl.h alloca.h sys/pstat.h sys/sysmp.h sys/sysinfo.h machine/hal_sysinfo.h sys/table.h sys/sysctl.h sys/systemcfg.h stdint.h stdio_ext.h process.h sys/prctl.h spawn.h
|
||||||
do :
|
do :
|
||||||
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
||||||
ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
|
ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
|
||||||
@@ -6026,7 +6026,8 @@ funcs="$funcs setproctitle"
|
|||||||
vars="sys_errlist sys_nerr sys_siglist"
|
vars="sys_errlist sys_nerr sys_siglist"
|
||||||
|
|
||||||
checkfuncs="__fsetlocking canonicalize_file_name dup3 getrlimit getrusage \
|
checkfuncs="__fsetlocking canonicalize_file_name dup3 getrlimit getrusage \
|
||||||
getsysinfo gettimeofday on_exit pipe2 psignal pstat_getdynamic pstat_getstatic \
|
getsysinfo gettimeofday on_exit pipe2 posix_spawn posix_spawnp psignal \
|
||||||
|
pstat_getdynamic pstat_getstatic \
|
||||||
realpath setrlimit spawnve spawnvpe strerror strsignal sysconf sysctl \
|
realpath setrlimit spawnve spawnvpe strerror strsignal sysconf sysctl \
|
||||||
sysmp table times wait3 wait4"
|
sysmp table times wait3 wait4"
|
||||||
|
|
||||||
@@ -6049,7 +6050,8 @@ if test "x" = "y"; then
|
|||||||
index insque \
|
index insque \
|
||||||
memchr memcmp memcpy memmem memmove memset mkstemps \
|
memchr memcmp memcpy memmem memmove memset mkstemps \
|
||||||
on_exit \
|
on_exit \
|
||||||
pipe2 psignal pstat_getdynamic pstat_getstatic putenv \
|
pipe2 posix_spawn posix_spawnp psignal \
|
||||||
|
pstat_getdynamic pstat_getstatic putenv \
|
||||||
random realpath rename rindex \
|
random realpath rename rindex \
|
||||||
sbrk setenv setproctitle setrlimit sigsetmask snprintf spawnve spawnvpe \
|
sbrk setenv setproctitle setrlimit sigsetmask snprintf spawnve spawnvpe \
|
||||||
stpcpy stpncpy strcasecmp strchr strdup \
|
stpcpy stpncpy strcasecmp strchr strdup \
|
||||||
|
|||||||
@@ -277,7 +277,7 @@ AC_SUBST_FILE(host_makefile_frag)
|
|||||||
# It's OK to check for header files. Although the compiler may not be
|
# It's OK to check for header files. Although the compiler may not be
|
||||||
# able to link anything, it had better be able to at least compile
|
# able to link anything, it had better be able to at least compile
|
||||||
# something.
|
# something.
|
||||||
AC_CHECK_HEADERS(sys/file.h sys/param.h limits.h stdlib.h malloc.h string.h unistd.h strings.h sys/time.h time.h sys/resource.h sys/stat.h sys/mman.h fcntl.h alloca.h sys/pstat.h sys/sysmp.h sys/sysinfo.h machine/hal_sysinfo.h sys/table.h sys/sysctl.h sys/systemcfg.h stdint.h stdio_ext.h process.h sys/prctl.h)
|
AC_CHECK_HEADERS(sys/file.h sys/param.h limits.h stdlib.h malloc.h string.h unistd.h strings.h sys/time.h time.h sys/resource.h sys/stat.h sys/mman.h fcntl.h alloca.h sys/pstat.h sys/sysmp.h sys/sysinfo.h machine/hal_sysinfo.h sys/table.h sys/sysctl.h sys/systemcfg.h stdint.h stdio_ext.h process.h sys/prctl.h spawn.h)
|
||||||
AC_HEADER_SYS_WAIT
|
AC_HEADER_SYS_WAIT
|
||||||
AC_HEADER_TIME
|
AC_HEADER_TIME
|
||||||
|
|
||||||
@@ -400,7 +400,8 @@ funcs="$funcs setproctitle"
|
|||||||
vars="sys_errlist sys_nerr sys_siglist"
|
vars="sys_errlist sys_nerr sys_siglist"
|
||||||
|
|
||||||
checkfuncs="__fsetlocking canonicalize_file_name dup3 getrlimit getrusage \
|
checkfuncs="__fsetlocking canonicalize_file_name dup3 getrlimit getrusage \
|
||||||
getsysinfo gettimeofday on_exit pipe2 psignal pstat_getdynamic pstat_getstatic \
|
getsysinfo gettimeofday on_exit pipe2 posix_spawn posix_spawnp psignal \
|
||||||
|
pstat_getdynamic pstat_getstatic \
|
||||||
realpath setrlimit spawnve spawnvpe strerror strsignal sysconf sysctl \
|
realpath setrlimit spawnve spawnvpe strerror strsignal sysconf sysctl \
|
||||||
sysmp table times wait3 wait4"
|
sysmp table times wait3 wait4"
|
||||||
|
|
||||||
@@ -423,7 +424,8 @@ if test "x" = "y"; then
|
|||||||
index insque \
|
index insque \
|
||||||
memchr memcmp memcpy memmem memmove memset mkstemps \
|
memchr memcmp memcpy memmem memmove memset mkstemps \
|
||||||
on_exit \
|
on_exit \
|
||||||
pipe2 psignal pstat_getdynamic pstat_getstatic putenv \
|
pipe2 posix_spawn posix_spawnp psignal \
|
||||||
|
pstat_getdynamic pstat_getstatic putenv \
|
||||||
random realpath rename rindex \
|
random realpath rename rindex \
|
||||||
sbrk setenv setproctitle setrlimit sigsetmask snprintf spawnve spawnvpe \
|
sbrk setenv setproctitle setrlimit sigsetmask snprintf spawnve spawnvpe \
|
||||||
stpcpy stpncpy strcasecmp strchr strdup \
|
stpcpy stpncpy strcasecmp strchr strdup \
|
||||||
|
|||||||
@@ -58,6 +58,9 @@ extern int errno;
|
|||||||
#ifdef HAVE_PROCESS_H
|
#ifdef HAVE_PROCESS_H
|
||||||
#include <process.h>
|
#include <process.h>
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef HAVE_SPAWN_H
|
||||||
|
#include <spawn.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef vfork /* Autoconf may define this to fork for us. */
|
#ifdef vfork /* Autoconf may define this to fork for us. */
|
||||||
# define VFORK_STRING "fork"
|
# define VFORK_STRING "fork"
|
||||||
@@ -559,6 +562,171 @@ pex_unix_exec_child (struct pex_obj *obj ATTRIBUTE_UNUSED,
|
|||||||
return (pid_t) -1;
|
return (pid_t) -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#elif defined(HAVE_POSIX_SPAWN) && defined(HAVE_POSIX_SPAWNP)
|
||||||
|
/* Implementation of pex->exec_child using posix_spawn. */
|
||||||
|
|
||||||
|
static pid_t
|
||||||
|
pex_unix_exec_child (struct pex_obj *obj ATTRIBUTE_UNUSED,
|
||||||
|
int flags, const char *executable,
|
||||||
|
char * const * argv, char * const * env,
|
||||||
|
int in, int out, int errdes,
|
||||||
|
int toclose, const char **errmsg, int *err)
|
||||||
|
{
|
||||||
|
int ret;
|
||||||
|
pid_t pid = -1;
|
||||||
|
posix_spawnattr_t attr;
|
||||||
|
posix_spawn_file_actions_t actions;
|
||||||
|
int attr_initialized = 0, actions_initialized = 0;
|
||||||
|
|
||||||
|
*err = 0;
|
||||||
|
|
||||||
|
ret = posix_spawnattr_init (&attr);
|
||||||
|
if (ret)
|
||||||
|
{
|
||||||
|
*err = ret;
|
||||||
|
*errmsg = "posix_spawnattr_init";
|
||||||
|
goto exit;
|
||||||
|
}
|
||||||
|
attr_initialized = 1;
|
||||||
|
|
||||||
|
/* Use vfork() on glibc <=2.24. */
|
||||||
|
#ifdef POSIX_SPAWN_USEVFORK
|
||||||
|
ret = posix_spawnattr_setflags (&attr, POSIX_SPAWN_USEVFORK);
|
||||||
|
if (ret)
|
||||||
|
{
|
||||||
|
*err = ret;
|
||||||
|
*errmsg = "posix_spawnattr_setflags";
|
||||||
|
goto exit;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
ret = posix_spawn_file_actions_init (&actions);
|
||||||
|
if (ret)
|
||||||
|
{
|
||||||
|
*err = ret;
|
||||||
|
*errmsg = "posix_spawn_file_actions_init";
|
||||||
|
goto exit;
|
||||||
|
}
|
||||||
|
actions_initialized = 1;
|
||||||
|
|
||||||
|
if (in != STDIN_FILE_NO)
|
||||||
|
{
|
||||||
|
ret = posix_spawn_file_actions_adddup2 (&actions, in, STDIN_FILE_NO);
|
||||||
|
if (ret)
|
||||||
|
{
|
||||||
|
*err = ret;
|
||||||
|
*errmsg = "posix_spawn_file_actions_adddup2";
|
||||||
|
goto exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
ret = posix_spawn_file_actions_addclose (&actions, in);
|
||||||
|
if (ret)
|
||||||
|
{
|
||||||
|
*err = ret;
|
||||||
|
*errmsg = "posix_spawn_file_actions_addclose";
|
||||||
|
goto exit;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (out != STDOUT_FILE_NO)
|
||||||
|
{
|
||||||
|
ret = posix_spawn_file_actions_adddup2 (&actions, out, STDOUT_FILE_NO);
|
||||||
|
if (ret)
|
||||||
|
{
|
||||||
|
*err = ret;
|
||||||
|
*errmsg = "posix_spawn_file_actions_adddup2";
|
||||||
|
goto exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
ret = posix_spawn_file_actions_addclose (&actions, out);
|
||||||
|
if (ret)
|
||||||
|
{
|
||||||
|
*err = ret;
|
||||||
|
*errmsg = "posix_spawn_file_actions_addclose";
|
||||||
|
goto exit;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (errdes != STDERR_FILE_NO)
|
||||||
|
{
|
||||||
|
ret = posix_spawn_file_actions_adddup2 (&actions, errdes, STDERR_FILE_NO);
|
||||||
|
if (ret)
|
||||||
|
{
|
||||||
|
*err = ret;
|
||||||
|
*errmsg = "posix_spawn_file_actions_adddup2";
|
||||||
|
goto exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
ret = posix_spawn_file_actions_addclose (&actions, errdes);
|
||||||
|
if (ret)
|
||||||
|
{
|
||||||
|
*err = ret;
|
||||||
|
*errmsg = "posix_spawn_file_actions_addclose";
|
||||||
|
goto exit;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (toclose >= 0)
|
||||||
|
{
|
||||||
|
ret = posix_spawn_file_actions_addclose (&actions, toclose);
|
||||||
|
if (ret)
|
||||||
|
{
|
||||||
|
*err = ret;
|
||||||
|
*errmsg = "posix_spawn_file_actions_addclose";
|
||||||
|
goto exit;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ((flags & PEX_STDERR_TO_STDOUT) != 0)
|
||||||
|
{
|
||||||
|
ret = posix_spawn_file_actions_adddup2 (&actions, STDOUT_FILE_NO, STDERR_FILE_NO);
|
||||||
|
if (ret)
|
||||||
|
{
|
||||||
|
*err = ret;
|
||||||
|
*errmsg = "posix_spawn_file_actions_adddup2";
|
||||||
|
goto exit;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ((flags & PEX_SEARCH) != 0)
|
||||||
|
{
|
||||||
|
ret = posix_spawnp (&pid, executable, &actions, &attr, argv, env ? env : environ);
|
||||||
|
if (ret)
|
||||||
|
{
|
||||||
|
*err = ret;
|
||||||
|
*errmsg = "posix_spawnp";
|
||||||
|
goto exit;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ret = posix_spawn (&pid, executable, &actions, &attr, argv, env ? env : environ);
|
||||||
|
if (ret)
|
||||||
|
{
|
||||||
|
*err = ret;
|
||||||
|
*errmsg = "posix_spawn";
|
||||||
|
goto exit;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
exit:
|
||||||
|
if (actions_initialized)
|
||||||
|
posix_spawn_file_actions_destroy (&actions);
|
||||||
|
if (attr_initialized)
|
||||||
|
posix_spawnattr_destroy (&attr);
|
||||||
|
|
||||||
|
if (!*err && in != STDIN_FILE_NO)
|
||||||
|
if (close (in))
|
||||||
|
*errmsg = "close", *err = errno, pid = -1;
|
||||||
|
if (!*err && out != STDOUT_FILE_NO)
|
||||||
|
if (close (out))
|
||||||
|
*errmsg = "close", *err = errno, pid = -1;
|
||||||
|
if (!*err && errdes != STDERR_FILE_NO)
|
||||||
|
if (close (errdes))
|
||||||
|
*errmsg = "close", *err = errno, pid = -1;
|
||||||
|
|
||||||
|
return pid;
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
/* Implementation of pex->exec_child using standard vfork + exec. */
|
/* Implementation of pex->exec_child using standard vfork + exec. */
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# Makefile for jam
|
# Makefile for jam
|
||||||
|
|
||||||
CC = cc
|
CC = cc
|
||||||
CFLAGS = -O
|
CFLAGS = -O -DOPT_HEADER_CACHE_EXT -DOPT_JAMFILE_CACHE_EXT -DOPT_JAM_TARGETS_VARIABLE_EXT
|
||||||
EXENAME = ./jam0
|
EXENAME = ./jam0
|
||||||
TARGET = -o $(EXENAME)
|
TARGET = -o $(EXENAME)
|
||||||
HOST_SYSTEM=$(shell uname)
|
HOST_SYSTEM=$(shell uname)
|
||||||
@@ -64,7 +64,8 @@ SOURCES = \
|
|||||||
filent.c fileos2.c fileunix.c filevms.c glob.c hash.c \
|
filent.c fileos2.c fileunix.c filevms.c glob.c hash.c \
|
||||||
headers.c jam.c jambase.c jamgram.c lists.c make.c make1.c \
|
headers.c jam.c jambase.c jamgram.c lists.c make.c make1.c \
|
||||||
newstr.c option.c parse.c pathunix.c pathvms.c regexp.c \
|
newstr.c option.c parse.c pathunix.c pathvms.c regexp.c \
|
||||||
rules.c scan.c search.c timestamp.c variable.c
|
rules.c scan.c search.c timestamp.c variable.c \
|
||||||
|
jcache.c hcache.c
|
||||||
|
|
||||||
all: $(EXENAME)
|
all: $(EXENAME)
|
||||||
LINKLIBS=$(LINKLIBS) $(EXENAME)
|
LINKLIBS=$(LINKLIBS) $(EXENAME)
|
||||||
|
|||||||
@@ -154,12 +154,12 @@ execcmd(
|
|||||||
|
|
||||||
/* Trim leading, ending white space */
|
/* Trim leading, ending white space */
|
||||||
|
|
||||||
while( isspace( *string ) )
|
while( isspace( (unsigned char)*string ) )
|
||||||
++string;
|
++string;
|
||||||
|
|
||||||
p = strchr( string, '\n' );
|
p = strchr( string, '\n' );
|
||||||
|
|
||||||
while( p && isspace( *p ) )
|
while( p && isspace( (unsigned char)*p ) )
|
||||||
++p;
|
++p;
|
||||||
|
|
||||||
/* If multi line, or too long, or JAMSHELL is set, write to bat file. */
|
/* If multi line, or too long, or JAMSHELL is set, write to bat file. */
|
||||||
|
|||||||
@@ -538,11 +538,11 @@ var_edit_shift(
|
|||||||
if( edits->upshift )
|
if( edits->upshift )
|
||||||
{
|
{
|
||||||
for( ; *out; ++out )
|
for( ; *out; ++out )
|
||||||
*out = toupper( *out );
|
*out = toupper( (unsigned char)*out );
|
||||||
}
|
}
|
||||||
else if( edits->downshift )
|
else if( edits->downshift )
|
||||||
{
|
{
|
||||||
for( ; *out; ++out )
|
for( ; *out; ++out )
|
||||||
*out = tolower( *out );
|
*out = tolower( (unsigned char)*out );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ getoptions(
|
|||||||
{
|
{
|
||||||
char *arg;
|
char *arg;
|
||||||
|
|
||||||
if( argv[i][0] != '-' || !isalpha( argv[i][1] ) )
|
if( argv[i][0] != '-' || !isalpha( (unsigned char)argv[i][1] ) )
|
||||||
break;
|
break;
|
||||||
|
|
||||||
if( !optc-- )
|
if( !optc-- )
|
||||||
|
|||||||
@@ -917,16 +917,16 @@ regmatch( char *prog )
|
|||||||
break;
|
break;
|
||||||
case WORDA:
|
case WORDA:
|
||||||
/* Must be looking at a letter, digit, or _ */
|
/* Must be looking at a letter, digit, or _ */
|
||||||
if ((!isalnum(*reginput)) && *reginput != '_')
|
if ((!isalnum((unsigned char)*reginput)) && *reginput != '_')
|
||||||
return(0);
|
return(0);
|
||||||
/* Prev must be BOL or nonword */
|
/* Prev must be BOL or nonword */
|
||||||
if (reginput > regbol &&
|
if (reginput > regbol &&
|
||||||
(isalnum(reginput[-1]) || reginput[-1] == '_'))
|
(isalnum((unsigned char)reginput[-1]) || reginput[-1] == '_'))
|
||||||
return(0);
|
return(0);
|
||||||
break;
|
break;
|
||||||
case WORDZ:
|
case WORDZ:
|
||||||
/* Must be looking at non letter, digit, or _ */
|
/* Must be looking at non letter, digit, or _ */
|
||||||
if (isalnum(*reginput) || *reginput == '_')
|
if (isalnum((unsigned char)*reginput) || *reginput == '_')
|
||||||
return(0);
|
return(0);
|
||||||
/* We don't care what the previous char was */
|
/* We don't care what the previous char was */
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -287,7 +287,7 @@ yylex()
|
|||||||
{
|
{
|
||||||
/* Skip past white space */
|
/* Skip past white space */
|
||||||
|
|
||||||
while( c != EOF && isspace( c ) )
|
while( c != EOF && isspace( (unsigned char)c ) )
|
||||||
c = yychar();
|
c = yychar();
|
||||||
|
|
||||||
/* Not a comment? Swallow up comment line. */
|
/* Not a comment? Swallow up comment line. */
|
||||||
@@ -315,7 +315,7 @@ yylex()
|
|||||||
while(
|
while(
|
||||||
c != EOF &&
|
c != EOF &&
|
||||||
b < buf + sizeof( buf ) &&
|
b < buf + sizeof( buf ) &&
|
||||||
( inquote || !isspace( c ) ) )
|
( inquote || !isspace( (unsigned char)c ) ) )
|
||||||
{
|
{
|
||||||
if( c == '"' )
|
if( c == '"' )
|
||||||
{
|
{
|
||||||
@@ -369,7 +369,8 @@ yylex()
|
|||||||
*b = 0;
|
*b = 0;
|
||||||
yylval.type = ARG;
|
yylval.type = ARG;
|
||||||
|
|
||||||
if( !notkeyword && !( isalpha( *buf ) && scanmode == SCAN_PUNCT ) )
|
if( !notkeyword &&
|
||||||
|
!( isalpha( (unsigned char)*buf ) && scanmode == SCAN_PUNCT ) )
|
||||||
{
|
{
|
||||||
for( k = keywords; k->word; k++ )
|
for( k = keywords; k->word; k++ )
|
||||||
if( *buf == *k->word && !strcmp( k->word, buf ) )
|
if( *buf == *k->word && !strcmp( k->word, buf ) )
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ timestamp(
|
|||||||
char path[ MAXJPATH ];
|
char path[ MAXJPATH ];
|
||||||
char *p = path;
|
char *p = path;
|
||||||
|
|
||||||
do *p++ = tolower( *target );
|
do *p++ = tolower( (unsigned char)*target );
|
||||||
while( *target++ );
|
while( *target++ );
|
||||||
|
|
||||||
target = path;
|
target = path;
|
||||||
@@ -175,7 +175,7 @@ time_enter(
|
|||||||
char path[ MAXJPATH ];
|
char path[ MAXJPATH ];
|
||||||
char *p = path;
|
char *p = path;
|
||||||
|
|
||||||
do *p++ = tolower( *target );
|
do *p++ = tolower( (unsigned char)*target );
|
||||||
while( *target++ );
|
while( *target++ );
|
||||||
|
|
||||||
target = path;
|
target = path;
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ var_string(
|
|||||||
|
|
||||||
/* Copy white space */
|
/* Copy white space */
|
||||||
|
|
||||||
while( isspace( *in ) )
|
while( isspace( (unsigned char)*in ) )
|
||||||
{
|
{
|
||||||
if( out >= oute )
|
if( out >= oute )
|
||||||
return -1;
|
return -1;
|
||||||
@@ -164,7 +164,7 @@ var_string(
|
|||||||
|
|
||||||
/* Copy non-white space, watching for variables */
|
/* Copy non-white space, watching for variables */
|
||||||
|
|
||||||
while( *in && !isspace( *in ) )
|
while( *in && !isspace( (unsigned char)*in ) )
|
||||||
{
|
{
|
||||||
if( out >= oute )
|
if( out >= oute )
|
||||||
return -1;
|
return -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user