From a64110b67e7ef586d9484484f68236e20a91a377 Mon Sep 17 00:00:00 2001 From: lotherk Date: Wed, 11 Nov 2026 20:13:14 +0000 Subject: [PATCH] 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 --- motif/Makefile.in | 3 +-- motif/clients/mwm/WmMenu.c | 14 +++++++------- motif/clients/mwm/WmResParse.c | 4 ++-- motif/clients/mwm/WmXSMP.c | 2 +- motif/clients/uil/UilDB.c | 11 ++++++++++- motif/clients/uil/UilDefI.h | 2 +- motif/clients/uil/UilDiags.c | 13 +++++++------ motif/clients/uil/UilSymStor.c | 2 +- motif/config/util/Makefile.in | 6 +++++- motif/doc/man/man3/Makefile.am | 6 +++--- motif/doc/man/man4/Makefile.am | 3 +-- motif/doc/man/man5/Makefile.am | 3 ++- motif/lib/Xm/ColorS.c | 18 +++++++++--------- motif/lib/Xm/DataF.c | 2 +- motif/lib/Xm/Picture.c | 24 ++++++++++++------------ motif/lib/Xm/RepType.c | 8 ++++---- motif/lib/Xm/ResConvert.c | 6 +++--- motif/lib/Xm/Scale.c | 3 +++ motif/lib/Xm/TextF.c | 4 ++-- motif/lib/Xm/XmRenderT.c | 6 +++--- motif/lib/Xm/Xmfuncs.h | 6 ++++++ motif/lib/Xm/Xmos.c | 11 +++++++++++ motif/lib/Xm/XpmI.h | 12 ++++++++++++ motif/lib/Xm/Xpmparse.c | 2 +- motif/lib/Xm/Xpmrgb.c | 4 ++-- motif/tools/wml/Makefile.in | 14 +++++++------- motif/tools/wml/wmldbcreate.c | 2 ++ motif/tools/wml/wmluiltok.l | 2 ++ 28 files changed, 121 insertions(+), 72 deletions(-) diff --git a/motif/Makefile.in b/motif/Makefile.in index f22faeed..43ba9e20 100644 --- a/motif/Makefile.in +++ b/motif/Makefile.in @@ -390,8 +390,7 @@ SUBDIRS = bindings bitmaps \ include \ tools \ clients \ - doc \ - demos + doc AUTOMAKE_OPTIONS = 1.4 ACLOCAL_AMFLAGS = -I . diff --git a/motif/clients/mwm/WmMenu.c b/motif/clients/mwm/WmMenu.c index 2045c18a..ffd64a45 100644 --- a/motif/clients/mwm/WmMenu.c +++ b/motif/clients/mwm/WmMenu.c @@ -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 diff --git a/motif/clients/mwm/WmResParse.c b/motif/clients/mwm/WmResParse.c index 14c8f0e4..fe93ab18 100644 --- a/motif/clients/mwm/WmResParse.c +++ b/motif/clients/mwm/WmResParse.c @@ -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; diff --git a/motif/clients/mwm/WmXSMP.c b/motif/clients/mwm/WmXSMP.c index 6d83161d..52d165e6 100644 --- a/motif/clients/mwm/WmXSMP.c +++ b/motif/clients/mwm/WmXSMP.c @@ -381,7 +381,7 @@ setClientDBName(void) for (p1 = ++ptr; *p1 != '\0'; p1++) { - if (!isdigit(*p1)) + if (!isdigit((unsigned char)*p1)) break; } diff --git a/motif/clients/uil/UilDB.c b/motif/clients/uil/UilDB.c index 12788581..02ca69e3 100644 --- a/motif/clients/uil/UilDB.c +++ b/motif/clients/uil/UilDB.c @@ -59,7 +59,16 @@ static char rcsid[] = "$XConsortium: UilDB.c /main/11 1996/11/21 20:03:11 drk $" #include #endif - +#if defined(__NetBSD__) +#include +# 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" diff --git a/motif/clients/uil/UilDefI.h b/motif/clients/uil/UilDefI.h index aad7e2de..b87431d1 100644 --- a/motif/clients/uil/UilDefI.h +++ b/motif/clients/uil/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" diff --git a/motif/clients/uil/UilDiags.c b/motif/clients/uil/UilDiags.c index 4ac4ed64..df64a69a 100644 --- a/motif/clients/uil/UilDiags.c +++ b/motif/clients/uil/UilDiags.c @@ -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 ) ); diff --git a/motif/clients/uil/UilSymStor.c b/motif/clients/uil/UilSymStor.c index ea89f85e..3a98af1e 100644 --- a/motif/clients/uil/UilSymStor.c +++ b/motif/clients/uil/UilSymStor.c @@ -1716,7 +1716,7 @@ output_text(XmConst int length, XmConst char *text) for (i=0; i= 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'); diff --git a/motif/lib/Xm/DataF.c b/motif/lib/Xm/DataF.c index 33a39faa..a1166246 100644 --- a/motif/lib/Xm/DataF.c +++ b/motif/lib/Xm/DataF.c @@ -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; diff --git a/motif/lib/Xm/Picture.c b/motif/lib/Xm/Picture.c index 5da88c08..9b6ac299 100644 --- a/motif/lib/Xm/Picture.c +++ b/motif/lib/Xm/Picture.c @@ -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; diff --git a/motif/lib/Xm/RepType.c b/motif/lib/Xm/RepType.c index 2636b212..8361d794 100644 --- a/motif/lib/Xm/RepType.c +++ b/motif/lib/Xm/RepType.c @@ -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 diff --git a/motif/lib/Xm/ResConvert.c b/motif/lib/Xm/ResConvert.c index 63041acd..66f81324 100644 --- a/motif/lib/Xm/ResConvert.c +++ b/motif/lib/Xm/ResConvert.c @@ -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) { diff --git a/motif/lib/Xm/Scale.c b/motif/lib/Xm/Scale.c index 76843d13..b0cbc883 100644 --- a/motif/lib/Xm/Scale.c +++ b/motif/lib/Xm/Scale.c @@ -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 +#ifdef __DARWIN__ +#include /* Xlocale.h doesn't define struct lconv */ +#endif #ifdef __cplusplus } /* Close scope of 'extern "C"' declaration */ #endif /* __cplusplus */ diff --git a/motif/lib/Xm/TextF.c b/motif/lib/Xm/TextF.c index f66076da..cf11d66d 100644 --- a/motif/lib/Xm/TextF.c +++ b/motif/lib/Xm/TextF.c @@ -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. diff --git a/motif/lib/Xm/XmRenderT.c b/motif/lib/Xm/XmRenderT.c index 5ecd38be..8b966df4 100644 --- a/motif/lib/Xm/XmRenderT.c +++ b/motif/lib/Xm/XmRenderT.c @@ -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; diff --git a/motif/lib/Xm/Xmfuncs.h b/motif/lib/Xm/Xmfuncs.h index 2c44be8a..4fba3734 100644 --- a/motif/lib/Xm/Xmfuncs.h +++ b/motif/lib/Xm/Xmfuncs.h @@ -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 +#endif /* __sun */ + #endif /* _XFUNCS_H_ */ diff --git a/motif/lib/Xm/Xmos.c b/motif/lib/Xm/Xmos.c index 92cc795f..4d09bb29 100644 --- a/motif/lib/Xm/Xmos.c +++ b/motif/lib/Xm/Xmos.c @@ -75,6 +75,17 @@ extern int regex(); #include +#if defined(__NetBSD__) +#include +# 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 diff --git a/motif/lib/Xm/XpmI.h b/motif/lib/Xm/XpmI.h index 5d690fa1..ac1ab0f6 100644 --- a/motif/lib/Xm/XpmI.h +++ b/motif/lib/Xm/XpmI.h @@ -193,6 +193,18 @@ extern FILE *popen(); boundCheckingCalloc((long)(nelem),(long) (elsize)) #endif +#if defined(SCO) || defined(__USLC__) +#include /* For SIZE_MAX */ +#endif +#include +#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; diff --git a/motif/lib/Xm/Xpmparse.c b/motif/lib/Xm/Xpmparse.c index a54bca94..9b498822 100644 --- a/motif/lib/Xm/Xpmparse.c +++ b/motif/lib/Xm/Xpmparse.c @@ -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); diff --git a/motif/lib/Xm/Xpmrgb.c b/motif/lib/Xm/Xpmrgb.c index 1234042f..ee09cfeb 100644 --- a/motif/lib/Xm/Xpmrgb.c +++ b/motif/lib/Xm/Xpmrgb.c @@ -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++; } diff --git a/motif/tools/wml/Makefile.in b/motif/tools/wml/Makefile.in index da4e164c..328de5d0 100644 --- a/motif/tools/wml/Makefile.in +++ b/motif/tools/wml/Makefile.in @@ -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@ diff --git a/motif/tools/wml/wmldbcreate.c b/motif/tools/wml/wmldbcreate.c index 878220e8..008f63b5 100644 --- a/motif/tools/wml/wmldbcreate.c +++ b/motif/tools/wml/wmldbcreate.c @@ -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); diff --git a/motif/tools/wml/wmluiltok.l b/motif/tools/wml/wmluiltok.l index f02d9fec..1bdfe707 100644 --- a/motif/tools/wml/wmluiltok.l +++ b/motif/tools/wml/wmluiltok.l @@ -55,6 +55,8 @@ %a 9999 /* transitions */ +%option main + %{ #include