Changeset 3140 for trunk/src/kmk/expreval.c
- Timestamp:
- Mar 14, 2018, 10:28:10 PM (7 years ago)
- Location:
- trunk/src/kmk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk
-
Property svn:mergeinfo
set to
/vendor/gnumake/current merged eligible
-
Property svn:mergeinfo
set to
-
trunk/src/kmk/expreval.c
r3065 r3140 28 28 * Header Files * 29 29 *******************************************************************************/ 30 #include "make .h"30 #include "makeint.h" 31 31 #include <assert.h> 32 32 … … 162 162 const char *psz; 163 163 /** The current file location, used for errors. */ 164 const structfloc *pFileLoc;164 const floc *pFileLoc; 165 165 /** Pending binary operator. */ 166 166 PCEXPROP pPending; … … 213 213 va_end(va); 214 214 215 fatal(pThis->pFileLoc, "%s", szTmp);215 OS(fatal,pThis->pFileLoc, "%s", szTmp); 216 216 } 217 217 … … 284 284 * Skip blanks. 285 285 */ 286 while ( isblank(*psz))286 while (ISBLANK(*psz)) 287 287 psz++; 288 288 … … 305 305 * Recognize some exsotic prefixes here in addition to the two standard ones. 306 306 */ 307 if (*psz != '0' || psz[1] == '\0' || isblank((unsigned int)psz[1]))307 if (*psz != '0' || psz[1] == '\0' || ISBLANK(psz[1])) 308 308 uBase = 10; 309 309 else if (psz[1] == 'x' || psz[1] == 'X') … … 370 370 default: 371 371 /* is the rest white space? */ 372 while ( isspace((unsigned int)*psz))372 while (ISSPACE(*psz)) 373 373 psz++; 374 374 if (*psz != '\0') … … 745 745 EXPRINT64 iVal; 746 746 char const *psz = pVar->uVal.psz; 747 while ( isblank((unsigned char)*psz))747 while (ISBLANK(*psz)) 748 748 psz++; 749 749 if ( *psz … … 1773 1773 1774 1774 /* spaces */ 1775 while ( isspace((unsigned int)*psz))1775 while (ISSPACE(*psz)) 1776 1776 psz++; 1777 1777 /* see what we've got. */ … … 1837 1837 * Eat white space and make sure there is something after it. 1838 1838 */ 1839 while ( isspace((unsigned int)*psz))1839 while (ISSPACE(*psz)) 1840 1840 psz++; 1841 1841 if (!*psz) … … 1935 1935 break; 1936 1936 } 1937 if ( isspace((unsigned char)ch))1937 if (ISSPACE(ch)) 1938 1938 break; 1939 1939 } … … 2081 2081 * @param flocp The file location, used for errors. 2082 2082 */ 2083 int expr_eval_if_conditionals(const char *line, const structfloc *flocp)2083 int expr_eval_if_conditionals(const char *line, const floc *flocp) 2084 2084 { 2085 2085 /*
Note:
See TracChangeset
for help on using the changeset viewer.