Ignore:
Timestamp:
Dec 17, 2006, 4:59:33 AM (19 years ago)
Author:
bird
Message:

Added a variation on the $(comp-vars) function called $(comp-cmds) which compares command by command instead of the string as a whole ignoring spaces and job control chars.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gmake/variable.c

    r721 r730  
    10361036  /* Define KMK_FEATURES to indicate various working KMK features. */
    10371037# if defined(CONFIG_WITH_TOUPPER_TOLOWER) \
     1038  && defined(CONFIG_WITH_ABSPATHEX) \
    10381039  && defined(CONFIG_WITH_VALUE_LENGTH) && defined(CONFIG_WITH_COMPARE) \
    10391040  && defined(CONFIG_WITH_STACK) \
    10401041  && defined(KMK_HELPERS)
    10411042  (void) define_variable ("KMK_FEATURES", 12,
    1042                           "abspath"
     1043                          "abspath abspathex"
    10431044                          " toupper tolower"
    1044                           " comp-vars"
     1045                          " comp-vars comp-cmds"
    10451046                          " stack "
    10461047                          " kb-src-tool kb-obj-base kb-obj-suff kb-src-prop kb-src-one"
     
    10481049# else /* MSC can't deal with strings mixed with #if/#endif, thus the slow way. */
    10491050  strcpy(buf, "abspath");
     1051#  if defined(CONFIG_WITH_ABSPATHEX)
     1052  strcat(buf, " abspathex");
     1053#  endif
    10501054#  if defined(CONFIG_WITH_TOUPPER_TOLOWER)
    10511055  strcat(buf, " toupper tolower");
    10521056#  endif
    10531057#  if defined(CONFIG_WITH_VALUE_LENGTH) && defined(CONFIG_WITH_COMPARE)
    1054   strcat(buf, " comp-vars");
     1058  strcat(buf, " comp-vars comp-cmds");
    10551059#  endif
    10561060#  if defined(CONFIG_WITH_STACK)
Note: See TracChangeset for help on using the changeset viewer.