mcde: Motif with the 28 patches of pkgsrc x11/motif
Applied as pkgsrc applies them (patch -p0 in the source, pkgsrc 3c1118e94432, x11/motif PKGREVISION 4): fixes for current compilers and for NetBSD, Xpm and the render table among them. Nothing of MCDE's own yet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2b6a86e5a2
commit
a64110b67e
28 files changed
+121
-72
No files matched your search
+1
-2
@@ -390,8 +390,7 @@ SUBDIRS = bindings bitmaps \
|
||||
include \
|
||||
tools \
|
||||
clients \
|
||||
doc \
|
||||
demos
|
||||
doc
|
||||
|
||||
AUTOMAKE_OPTIONS = 1.4
|
||||
ACLOCAL_AMFLAGS = -I .
|
||||
|
||||
@@ -933,8 +933,8 @@ static MenuItem *PerformClientCommandMatch (String clientCommand,
|
||||
/* Skip past the '<' at the beginning of the next segment and
|
||||
any whitespace. */
|
||||
++menuItemCommand; ++clientCommand;
|
||||
while (isspace(*menuItemCommand)) ++menuItemCommand;
|
||||
while (isspace(*clientCommand)) ++clientCommand;
|
||||
while (isspace((unsigned char)*menuItemCommand)) ++menuItemCommand;
|
||||
while (isspace((unsigned char)*clientCommand)) ++clientCommand;
|
||||
|
||||
/* First check whether the current menuItemCommand segment is
|
||||
a wildcard. */
|
||||
@@ -946,7 +946,7 @@ static MenuItem *PerformClientCommandMatch (String clientCommand,
|
||||
the client command. */
|
||||
wildcardPositions[wildcards++] = segments;
|
||||
++menuItemCommand;
|
||||
while (isspace(*menuItemCommand)) ++menuItemCommand;
|
||||
while (isspace((unsigned char)*menuItemCommand)) ++menuItemCommand;
|
||||
while (*clientCommand != '>' && *clientCommand != '\0')
|
||||
++clientCommand;
|
||||
foundWildcard = TRUE;
|
||||
@@ -967,7 +967,7 @@ static MenuItem *PerformClientCommandMatch (String clientCommand,
|
||||
/* Get rid of trailing white space on the segment. */
|
||||
for (; seglength > 0; --seglength)
|
||||
{
|
||||
if (!isspace(menuItemCommand[seglength - 1]))
|
||||
if (!isspace((unsigned char)menuItemCommand[seglength - 1]))
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -980,14 +980,14 @@ static MenuItem *PerformClientCommandMatch (String clientCommand,
|
||||
have anything but whitespace after its seglength
|
||||
character. */
|
||||
clientCommand += seglength;
|
||||
while (isspace(*clientCommand)) ++clientCommand;
|
||||
while (isspace((unsigned char)*clientCommand)) ++clientCommand;
|
||||
if (*clientCommand != '>') return(bestMatchSoFar);
|
||||
|
||||
/* We have a match. Clear the foundWildcard since we
|
||||
have sync'ed up and keep trying to match. */
|
||||
foundWildcard = FALSE;
|
||||
menuItemCommand += seglength;
|
||||
while (isspace(*menuItemCommand)) ++menuItemCommand;
|
||||
while (isspace((unsigned char)*menuItemCommand)) ++menuItemCommand;
|
||||
}
|
||||
else if (foundWildcard == FALSE)
|
||||
{
|
||||
@@ -1056,7 +1056,7 @@ static MenuItem *PerformClientCommandMatch (String clientCommand,
|
||||
/* Skip past the '<' at the beginning of the next segment and
|
||||
any whitespace. */
|
||||
++bestMatchStr;
|
||||
while (isspace(*bestMatchStr)) ++bestMatchStr;
|
||||
while (isspace((unsigned char)*bestMatchStr)) ++bestMatchStr;
|
||||
|
||||
/* First check whether the current bestMatchStr segment is
|
||||
a wildcard. @RGC: We are assuming that there is nothing
|
||||
|
||||
@@ -3329,7 +3329,7 @@ static Boolean ParseClientCommand (unsigned char **linePP, MenuSpec *menuSpec,
|
||||
#ifndef NO_MULTIBYTE
|
||||
mblen ((char *)stream, MB_CUR_MAX) == 1 &&
|
||||
#endif
|
||||
(isalnum(*stream) || *stream == ' ' ||
|
||||
(isalnum((unsigned char)*stream) || *stream == ' ' ||
|
||||
*stream == '\t' || *stream == '_' ))
|
||||
++stream;
|
||||
}
|
||||
@@ -6449,7 +6449,7 @@ static Boolean ParseKeySym (unsigned char **linePP, unsigned int closure,
|
||||
if ((*detail = XStringToKeysym(keySymName)) == NoSymbol)
|
||||
#endif
|
||||
{
|
||||
if (!isdigit (keySymName[0]) ||
|
||||
if (!isdigit ((unsigned char)keySymName[0]) ||
|
||||
((*detail = StrToNum ((unsigned char *)&keySymName[0])) == -1))
|
||||
{
|
||||
*detail = NoSymbol;
|
||||
|
||||
@@ -381,7 +381,7 @@ setClientDBName(void)
|
||||
|
||||
for (p1 = ++ptr; *p1 != '\0'; p1++)
|
||||
{
|
||||
if (!isdigit(*p1))
|
||||
if (!isdigit((unsigned char)*p1))
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -59,7 +59,16 @@ static char rcsid[] = "$XConsortium: UilDB.c /main/11 1996/11/21 20:03:11 drk $"
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
|
||||
#if defined(__NetBSD__)
|
||||
#include <sys/param.h>
|
||||
# if __NetBSD_Version__ >= 299001000 /* NetBSD 2.99.10 has getpw*_r*/
|
||||
# if !defined(_POSIX_THREAD_SAFE_FUNCTIONS)
|
||||
# define _POSIX_THREAD_SAFE_FUNCTIONS 200112L
|
||||
# endif
|
||||
# else
|
||||
# define XNO_MTSAFE_PWDAPI
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
||||
#include "UilDefI.h"
|
||||
|
||||
@@ -263,7 +263,7 @@ extern char* uil_mmove(char*, char*, int);
|
||||
#include "UilIODef.h"
|
||||
#include "UilDiagDef.h"
|
||||
#include "UilSarDef.h"
|
||||
#if defined(linux) || defined(__APPLE__)
|
||||
#if defined(linux) || defined(__APPLE__) || defined(__sun)
|
||||
#define YYSTYPE yystype
|
||||
#endif
|
||||
#include "UilLexPars.h"
|
||||
|
||||
@@ -298,13 +298,13 @@ void diag_issue_diagnostic
|
||||
*/
|
||||
|
||||
#ifndef NO_MESSAGE_CATALOG
|
||||
sprintf( loc_buffer,
|
||||
snprintf( loc_buffer, sizeof(loc_buffer),
|
||||
catgets(uil_catd, UIL_SET_MISC,
|
||||
UIL_MISC_0, "\t\t line: %d file: %s"),
|
||||
az_src_rec->w_line_number,
|
||||
src_get_file_name( az_src_rec ) );
|
||||
#else
|
||||
sprintf( loc_buffer,
|
||||
snprintf( loc_buffer, sizeof(loc_buffer),
|
||||
"\t\t line: %d file: %s",
|
||||
az_src_rec->w_line_number,
|
||||
src_get_file_name( az_src_rec ) );
|
||||
@@ -352,7 +352,7 @@ void diag_issue_diagnostic
|
||||
|
||||
if (l_start_column != diag_k_no_column)
|
||||
#ifndef NO_MESSAGE_CATALOG
|
||||
sprintf(loc_buffer,
|
||||
snprintf(loc_buffer, sizeof(loc_buffer),
|
||||
catgets(uil_catd, UIL_SET_MISC,
|
||||
UIL_MISC_1,
|
||||
"\t\t line: %d position: %d file: %s"),
|
||||
@@ -360,7 +360,7 @@ void diag_issue_diagnostic
|
||||
l_start_column + 1,
|
||||
src_get_file_name( az_src_rec ) );
|
||||
#else
|
||||
sprintf(loc_buffer,
|
||||
snprintf(loc_buffer, sizeof(loc_buffer),
|
||||
"\t\t line: %d position: %d file: %s",
|
||||
az_src_rec->w_line_number,
|
||||
l_start_column + 1,
|
||||
@@ -368,13 +368,14 @@ void diag_issue_diagnostic
|
||||
#endif
|
||||
else
|
||||
#ifndef NO_MESSAGE_CATALOG
|
||||
sprintf( loc_buffer, catgets(uil_catd, UIL_SET_MISC,
|
||||
snprintf( loc_buffer, sizeof(loc_buffer),
|
||||
catgets(uil_catd, UIL_SET_MISC,
|
||||
UIL_MISC_0,
|
||||
"\t\t line: %d file: %s"),
|
||||
az_src_rec->w_line_number,
|
||||
src_get_file_name( az_src_rec ) );
|
||||
#else
|
||||
sprintf( loc_buffer,
|
||||
snprintf( loc_buffer, sizeof(loc_buffer),
|
||||
"\t\t line: %d file: %s",
|
||||
az_src_rec->w_line_number,
|
||||
src_get_file_name( az_src_rec ) );
|
||||
|
||||
@@ -1716,7 +1716,7 @@ output_text(XmConst int length, XmConst char *text)
|
||||
|
||||
for (i=0; i<last; i++)
|
||||
{
|
||||
if (iscntrl( c_buffer[ i ] ))
|
||||
if (iscntrl( (unsigned char)c_buffer[ i ] ))
|
||||
c_buffer[ i ] = '.';
|
||||
}
|
||||
|
||||
|
||||
@@ -385,7 +385,11 @@ clean-noinstPROGRAMS:
|
||||
|
||||
makestrs$(EXEEXT): $(makestrs_OBJECTS) $(makestrs_DEPENDENCIES) $(EXTRA_makestrs_DEPENDENCIES)
|
||||
@rm -f makestrs$(EXEEXT)
|
||||
$(AM_V_CCLD)$(LINK) $(makestrs_OBJECTS) $(makestrs_LDADD) $(LIBS)
|
||||
$(AM_V_CCLD)$(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ $(makestrs_OBJECTS) $(LIBS_FOR_BUILD)
|
||||
|
||||
makestrs.$(OBJEXT): makestrs.c
|
||||
$(AM_V_CC)$(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
|
||||
$(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
||||
|
||||
mostlyclean-compile:
|
||||
-rm -f *.$(OBJEXT)
|
||||
|
||||
@@ -5,7 +5,7 @@ EXTRA_DIST = $(man_MANS)
|
||||
man_MANS = ApplicationShell.3 \
|
||||
Composite.3 \
|
||||
Constraint.3 \
|
||||
Core.3 \
|
||||
XCore.3 \
|
||||
MrmCloseHierarchy.3 \
|
||||
MrmFetchBitmapLiteral.3 \
|
||||
MrmFetchColorLiteral.3 \
|
||||
@@ -21,10 +21,10 @@ man_MANS = ApplicationShell.3 \
|
||||
MrmRegisterClass.3 \
|
||||
MrmRegisterNames.3 \
|
||||
MrmRegisterNamesInHierarchy.3 \
|
||||
Object.3 \
|
||||
XObject.3 \
|
||||
OverrideShell.3 \
|
||||
RectObj.3 \
|
||||
Shell.3 \
|
||||
XShell.3 \
|
||||
TopLevelShell.3 \
|
||||
TransientShell.3 \
|
||||
Uil.3 \
|
||||
|
||||
@@ -2,5 +2,4 @@ MAINTAINERCLEANFILES = Makefile.in
|
||||
|
||||
EXTRA_DIST = $(man_MANS)
|
||||
|
||||
man_MANS = \
|
||||
mwmrc.4
|
||||
man_MANS =
|
||||
@@ -5,4 +5,5 @@ EXTRA_DIST = $(man_MANS)
|
||||
man_MANS = \
|
||||
Traits.5 \
|
||||
UIL.5 \
|
||||
WML.5
|
||||
WML.5 \
|
||||
mwmrc.5
|
||||
@@ -846,7 +846,7 @@ EndsInDigits(char *str)
|
||||
register char *c = str;
|
||||
while(*c != '\0') c++; /* advance to end of string marker */
|
||||
c--; /* back to the last character */
|
||||
if(c >= str && isascii(*c) && isdigit(*c))
|
||||
if(c >= str && isascii((unsigned char)*c) && isdigit((unsigned char)*c))
|
||||
return True;
|
||||
|
||||
return False;
|
||||
@@ -1307,15 +1307,15 @@ read_rgb_file(XmColorSelectorWidget csw, ArgList cargs, Cardinal cnum_args, Bool
|
||||
/*
|
||||
* Copy in all characters that are ascii and non-spaces.
|
||||
*/
|
||||
if (!isascii(c))
|
||||
if (!isascii((unsigned char)c))
|
||||
continue;
|
||||
if (!isspace(c))
|
||||
*name++ = tolower(c);
|
||||
if (!isspace((unsigned char)c))
|
||||
*name++ = tolower((unsigned char)c);
|
||||
}
|
||||
*name = '\0';
|
||||
|
||||
name = color_info[count].name;
|
||||
color_name[0] = toupper(color_name[0]);
|
||||
color_name[0] = toupper((unsigned char)color_name[0]);
|
||||
for (i = 0; i < len; i++) {
|
||||
register char c = color_name[i];
|
||||
|
||||
@@ -1323,10 +1323,10 @@ read_rgb_file(XmColorSelectorWidget csw, ArgList cargs, Cardinal cnum_args, Bool
|
||||
* Capitalize all characters after a space.
|
||||
*/
|
||||
|
||||
if (!isascii(c))
|
||||
if (!isascii((unsigned char)c))
|
||||
continue;
|
||||
if (isspace(c) && ((i + 1) < len)) {
|
||||
color_name[i + 1] = toupper(color_name[i + 1]);
|
||||
if (isspace((unsigned char)c) && ((i + 1) < len)) {
|
||||
color_name[i + 1] = toupper((unsigned char)color_name[i + 1]);
|
||||
}
|
||||
|
||||
*name++ = c;
|
||||
@@ -1452,7 +1452,7 @@ find_name(char *buffer)
|
||||
* Look for first non number, non space or tab.
|
||||
*/
|
||||
|
||||
if (isascii(*curr) && (isdigit(*curr) || isspace(*curr)))
|
||||
if (isascii((unsigned char)*curr) && (isdigit((unsigned char)*curr) || isspace((unsigned char)*curr)))
|
||||
continue;
|
||||
|
||||
temp = (char *) strchr(curr, '\n');
|
||||
|
||||
@@ -4577,7 +4577,7 @@ _XmDataFieldIsWSpace(
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i=num_entries; i > 0; i--){
|
||||
for (i=num_entries; i --> 0;){
|
||||
if (wide_char == white_space[i]) return True;
|
||||
}
|
||||
return False;
|
||||
|
||||
+12
-12
@@ -245,15 +245,15 @@ XmPictureDoAutoFill(XmPictureState state)
|
||||
|
||||
if(fill.c == '\0')
|
||||
fill.reject = True;
|
||||
if(fill.digit && (isdigit(fill.c) == 0))
|
||||
if(fill.digit && (isdigit((unsigned char)fill.c) == 0))
|
||||
fill.reject = True;
|
||||
if(fill.hexdigit && (isxdigit(fill.c) == 0))
|
||||
if(fill.hexdigit && (isxdigit((unsigned char)fill.c) == 0))
|
||||
fill.reject = True;
|
||||
if(fill.octaldigit && (fill.c < '0' || fill.c > '7'))
|
||||
fill.reject = True;
|
||||
if(fill.letter && (isalpha(fill.c) == 0))
|
||||
if(fill.letter && (isalpha((unsigned char)fill.c) == 0))
|
||||
fill.reject = True;
|
||||
if(fill.upcase && islower(fill.c))
|
||||
if(fill.upcase && islower((unsigned char)fill.c))
|
||||
fill.reject = True;
|
||||
|
||||
if(fill.reject) return state->current_string;
|
||||
@@ -582,12 +582,12 @@ _XmPictureFollowTransitions(XmPictureStateRec *state, char inc,
|
||||
accepted = False;
|
||||
break;
|
||||
case NumericDigit:
|
||||
if(isdigit(inc)) {
|
||||
if(isdigit((unsigned char)inc)) {
|
||||
found = True;
|
||||
}
|
||||
break;
|
||||
case HexDigit:
|
||||
if(isdigit(inc) ||
|
||||
if(isdigit((unsigned char)inc) ||
|
||||
(inc >= 'a' && inc <= 'f') ||
|
||||
(inc >= 'A' && inc <= 'F')) {
|
||||
found = True;
|
||||
@@ -599,24 +599,24 @@ _XmPictureFollowTransitions(XmPictureStateRec *state, char inc,
|
||||
}
|
||||
break;
|
||||
case AnyLetter:
|
||||
if(isalpha(inc)) {
|
||||
if(isalpha((unsigned char)inc)) {
|
||||
found = True;
|
||||
}
|
||||
break;
|
||||
case UpCaseLetter:
|
||||
if(isalpha(inc)) {
|
||||
changed_c = toupper(inc);
|
||||
if(isalpha((unsigned char)inc)) {
|
||||
changed_c = toupper((unsigned char)inc);
|
||||
found = True;
|
||||
}
|
||||
break;
|
||||
case AnyCharacter:
|
||||
if(isalnum(inc)) {
|
||||
if(isalnum((unsigned char)inc)) {
|
||||
found = True;
|
||||
}
|
||||
break;
|
||||
case UpCaseCharacter:
|
||||
if(isalnum(inc)) {
|
||||
changed_c = toupper(inc);
|
||||
if(isalnum((unsigned char)inc)) {
|
||||
changed_c = toupper((unsigned char)inc);
|
||||
found = True;
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -1197,8 +1197,8 @@ CopyStringArray(
|
||||
TmpStr[Index][1] = 'm' ;
|
||||
i = 2 ;
|
||||
while (TmpStr[Index][i]) {
|
||||
if (islower(TmpStr[Index][i]))
|
||||
TmpStr[Index][i] = toupper(TmpStr[Index][i]);
|
||||
if (islower((unsigned char)TmpStr[Index][i]))
|
||||
TmpStr[Index][i] = toupper((unsigned char)TmpStr[Index][i]);
|
||||
i++;
|
||||
}
|
||||
++Index ;
|
||||
@@ -1762,8 +1762,8 @@ _XmConvertActionParamToRepTypeId(Widget widget, XmRepTypeId rep_type_id,
|
||||
if (can_be_numeric)
|
||||
{
|
||||
value = i = 0;
|
||||
while (isspace(parameter[i])) ++i; /* skip leading white space */
|
||||
if (isdigit(parameter[i]))
|
||||
while (isspace((unsigned char)parameter[i])) ++i; /* skip leading white space */
|
||||
if (isdigit((unsigned char)parameter[i]))
|
||||
{
|
||||
value = atoi(parameter + i);
|
||||
/* If the number was converted, verify that it is a valid value
|
||||
|
||||
@@ -1519,14 +1519,14 @@ CvtStringToCardinalList(
|
||||
(crd_array_size,sizeof(Cardinal));
|
||||
while (*p != '\0')
|
||||
{
|
||||
while ((isspace(*p) || ispunct(*p)) && *p != '\0') /* Skip blanks */
|
||||
while ((isspace((unsigned char)*p) || ispunct((unsigned char)*p)) && *p != '\0') /* Skip blanks */
|
||||
p++;
|
||||
if (*p == '\0') /* end-of data */
|
||||
break;
|
||||
if (isdigit(*p))
|
||||
if (isdigit((unsigned char)*p))
|
||||
{
|
||||
new_element = atoi(p); /* Grab number */
|
||||
while (isdigit(*p)) /* advance pointer past number */
|
||||
while (isdigit((unsigned char)*p)) /* advance pointer past number */
|
||||
p++;
|
||||
if (crd_array_size == crd_array_count)
|
||||
{
|
||||
|
||||
@@ -69,6 +69,9 @@ static char rcsid[] = "$TOG: Scale.c /main/31 1999/10/13 16:18:07 mgreess $"
|
||||
extern "C" { /* some 'locale.h' do not have prototypes (sun) */
|
||||
#endif
|
||||
#include <X11/Xlocale.h>
|
||||
#ifdef __DARWIN__
|
||||
#include <locale.h> /* Xlocale.h doesn't define struct lconv */
|
||||
#endif
|
||||
#ifdef __cplusplus
|
||||
} /* Close scope of 'extern "C"' declaration */
|
||||
#endif /* __cplusplus */
|
||||
|
||||
@@ -82,11 +82,11 @@ static char rcsid[] = "$TOG: TextF.c /main/65 1999/09/01 17:28:48 mgreess $"
|
||||
#define FIX_1409
|
||||
|
||||
#if (defined(__FreeBSD__) && (__FreeBSD__ < 4)) || \
|
||||
(defined(__APPLE__) || defined(__NetBSD__) || defined(__OpenBSD__))
|
||||
(defined(__APPLE__) || defined(__OpenBSD__))
|
||||
/*
|
||||
* Modification by Integrated Computer Solutions, Inc. May 2000
|
||||
*
|
||||
* FreeBSD (pre-4.0), DARWIN, NetBSD, and OpenBSD do not include the necessary
|
||||
* FreeBSD (pre-4.0), DARWIN, NetBSD before 1.6, and OpenBSD do not include the necessary
|
||||
* wide character string functions. Use the internal _Xwc... routines and add
|
||||
* the other missing functions as _Xmwc... routines. The new functions are
|
||||
* added static to this file.
|
||||
|
||||
@@ -2788,7 +2788,7 @@ ReadToken(char *string, int *position)
|
||||
int count;
|
||||
|
||||
/* Skip whitespace but not newlines */
|
||||
while (isspace(string[pos]) && ! (string[pos] == '\n'))
|
||||
while (isspace((unsigned char)string[pos]) && ! (string[pos] == '\n'))
|
||||
pos++;
|
||||
|
||||
/* Select token type */
|
||||
@@ -2828,12 +2828,12 @@ ReadToken(char *string, int *position)
|
||||
}
|
||||
break;
|
||||
default:
|
||||
if (isalpha(string[pos])) /* String result */
|
||||
if (isalpha((unsigned char)string[pos])) /* String result */
|
||||
{
|
||||
char temp[80];
|
||||
int count;
|
||||
for(count = 0;
|
||||
isalpha(string[pos + count]) && count < 79;
|
||||
isalpha((unsigned char)string[pos + count]) && count < 79;
|
||||
count++) temp[count] = string[pos + count];
|
||||
temp[count] = 0;
|
||||
pos += count;
|
||||
|
||||
@@ -34,6 +34,8 @@ in this Software without prior written authorization from the X Consortium.
|
||||
|
||||
/* the old Xfuncs.h, for pre-R6 */
|
||||
|
||||
#ifndef __sun
|
||||
|
||||
#ifdef X_USEBFUNCS
|
||||
void bcopy();
|
||||
void bzero();
|
||||
@@ -88,4 +90,8 @@ int bcmp();
|
||||
#endif /* SYSV else */
|
||||
#endif /* ! X_NOT_STDC_ENV else */
|
||||
|
||||
#else
|
||||
#include <strings.h>
|
||||
#endif /* __sun */
|
||||
|
||||
#endif /* _XFUNCS_H_ */
|
||||
@@ -75,6 +75,17 @@ extern int regex();
|
||||
|
||||
#include <sys/stat.h>
|
||||
|
||||
#if defined(__NetBSD__)
|
||||
#include <sys/param.h>
|
||||
# if __NetBSD_Version__ >= 299001000 /* NetBSD 2.99.10 has getpw*_r*/
|
||||
# if !defined(_POSIX_THREAD_SAFE_FUNCTIONS)
|
||||
# define _POSIX_THREAD_SAFE_FUNCTIONS 200112L
|
||||
# endif
|
||||
# else
|
||||
# define XNO_MTSAFE_PWDAPI
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#define X_INCLUDE_PWD_H
|
||||
#define X_INCLUDE_DIRENT_H
|
||||
#define XOS_USE_XT_LOCKING
|
||||
|
||||
@@ -193,6 +193,18 @@ extern FILE *popen();
|
||||
boundCheckingCalloc((long)(nelem),(long) (elsize))
|
||||
#endif
|
||||
|
||||
#if defined(SCO) || defined(__USLC__)
|
||||
#include <stdint.h> /* For SIZE_MAX */
|
||||
#endif
|
||||
#include <limits.h>
|
||||
#ifndef SIZE_MAX
|
||||
# ifdef ULONG_MAX
|
||||
# define SIZE_MAX ULONG_MAX
|
||||
# else
|
||||
# define SIZE_MAX UINT_MAX
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#define XPMMAXCMTLEN BUFSIZ
|
||||
typedef struct {
|
||||
unsigned int type;
|
||||
|
||||
@@ -728,7 +728,7 @@ xpmParseExtensions(data, extensions, nextensions)
|
||||
ext += num;
|
||||
/* skip whitespace and store its name */
|
||||
s2 = s = string + 6;
|
||||
while (isspace(*s2))
|
||||
while (isspace((unsigned char)*s2))
|
||||
s2++;
|
||||
a = s2 - s;
|
||||
ext->name = (char *) XpmMalloc(l - a - 6);
|
||||
|
||||
@@ -99,7 +99,7 @@ xpmReadRgbNames(rgb_fname, rgbn)
|
||||
|
||||
/* Copy string to ascii name and lowercase it. */
|
||||
for (s1 = name, s2 = rgbname; *s1; s1++)
|
||||
*s2++ = tolower(*s1);
|
||||
*s2++ = tolower((unsigned char)*s1);
|
||||
*s2 = '\0';
|
||||
|
||||
/* Save the rgb values and ascii name in the array. */
|
||||
@@ -231,7 +231,7 @@ xpmGetRGBfromName(inname, r, g, b)
|
||||
/* fold to lower case */
|
||||
p = name;
|
||||
while (*p) {
|
||||
*p = tolower(*p);
|
||||
*p = tolower((unsigned char)*p);
|
||||
p++;
|
||||
}
|
||||
|
||||
|
||||
@@ -114,7 +114,7 @@ AM_V_AR = $(am__v_AR_@AM_V@)
|
||||
am__v_AR_ = $(am__v_AR_@AM_DEFAULT_V@)
|
||||
am__v_AR_0 = @echo " AR " $@;
|
||||
am__v_AR_1 =
|
||||
libwml_a_AR = $(AR) $(ARFLAGS)
|
||||
libwml_a_AR = $(AR_FOR_BUILD) $(ARFLAGS)
|
||||
libwml_a_LIBADD =
|
||||
am_libwml_a_OBJECTS = wmlparse.$(OBJEXT) wml.$(OBJEXT) \
|
||||
wmloutkey.$(OBJEXT) wmlouth.$(OBJEXT) wmloutmm.$(OBJEXT) \
|
||||
@@ -471,7 +471,7 @@ wmlparse.h: wmlparse.c
|
||||
libwml.a: $(libwml_a_OBJECTS) $(libwml_a_DEPENDENCIES) $(EXTRA_libwml_a_DEPENDENCIES)
|
||||
$(AM_V_at)-rm -f libwml.a
|
||||
$(AM_V_AR)$(libwml_a_AR) libwml.a $(libwml_a_OBJECTS) $(libwml_a_LIBADD)
|
||||
$(AM_V_at)$(RANLIB) libwml.a
|
||||
$(AM_V_at)$(RANLIB_FOR_BUILD) libwml.a
|
||||
|
||||
clean-noinstPROGRAMS:
|
||||
@list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \
|
||||
@@ -484,15 +484,15 @@ clean-noinstPROGRAMS:
|
||||
|
||||
wml$(EXEEXT): $(wml_OBJECTS) $(wml_DEPENDENCIES) $(EXTRA_wml_DEPENDENCIES)
|
||||
@rm -f wml$(EXEEXT)
|
||||
$(AM_V_CCLD)$(LINK) $(wml_OBJECTS) $(wml_LDADD) $(LIBS)
|
||||
$(AM_V_CCLD)$(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ $(wml_OBJECTS) $(LIBS_FOR_BUILD) $(wml_LDADD)
|
||||
|
||||
wmldbcreate$(EXEEXT): $(wmldbcreate_OBJECTS) $(wmldbcreate_DEPENDENCIES) $(EXTRA_wmldbcreate_DEPENDENCIES)
|
||||
@rm -f wmldbcreate$(EXEEXT)
|
||||
$(AM_V_CCLD)$(LINK) $(wmldbcreate_OBJECTS) $(wmldbcreate_LDADD) $(LIBS)
|
||||
$(AM_V_CCLD)$(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ $(wmldbcreate_OBJECTS) $(LIBS_FOR_BUILD)
|
||||
|
||||
wmluiltok$(EXEEXT): $(wmluiltok_OBJECTS) $(wmluiltok_DEPENDENCIES) $(EXTRA_wmluiltok_DEPENDENCIES)
|
||||
@rm -f wmluiltok$(EXEEXT)
|
||||
$(AM_V_CCLD)$(LINK) $(wmluiltok_OBJECTS) $(wmluiltok_LDADD) $(LIBS)
|
||||
$(AM_V_CCLD)$(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ $(wmluiltok_OBJECTS) $(LIBS_FOR_BUILD) $(wmluiltok_LDADD)
|
||||
|
||||
mostlyclean-compile:
|
||||
-rm -f *.$(OBJEXT)
|
||||
@@ -513,7 +513,7 @@ distclean-compile:
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wmlutils.Po@am__quote@
|
||||
|
||||
.c.o:
|
||||
@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
|
||||
@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
|
||||
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@@ -534,7 +534,7 @@ distclean-compile:
|
||||
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
|
||||
|
||||
wmldbcreate.o: $(srcdir)/wmldbcreate.c
|
||||
@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT wmldbcreate.o -MD -MP -MF $(DEPDIR)/wmldbcreate.Tpo -c -o wmldbcreate.o `test -f '$(srcdir)/wmldbcreate.c' || echo '$(srcdir)/'`$(srcdir)/wmldbcreate.c
|
||||
@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) $(INCLUDES) -MT wmldbcreate.o -MD -MP -MF $(DEPDIR)/wmldbcreate.Tpo -c -o wmldbcreate.o `test -f '$(srcdir)/wmldbcreate.c' || echo '$(srcdir)/'`$(srcdir)/wmldbcreate.c
|
||||
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/wmldbcreate.Tpo $(DEPDIR)/wmldbcreate.Po
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(srcdir)/wmldbcreate.c' object='wmldbcreate.o' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
|
||||
@@ -84,6 +84,8 @@ static char rcsid[] = "$TOG: wmldbcreate.c /main/8 1997/04/14 12:55:30 dbl $"
|
||||
#include "UilSymChCl.h" /* from WML */
|
||||
#include "UilSymChTa.h" /* from WML */
|
||||
|
||||
#include "../../lib/Xm/XmStrDefs.c"
|
||||
|
||||
void emit_globals();
|
||||
void emit_header(_db_header_ptr header);
|
||||
void emit_chars(int table_id);
|
||||
|
||||
@@ -55,6 +55,8 @@
|
||||
|
||||
%a 9999 /* transitions */
|
||||
|
||||
%option main
|
||||
|
||||
%{
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
Reference in new issue
Block a user