VirtualBox

Changeset 3561 in kBuild for trunk


Ignore:
Timestamp:
Mar 8, 2022 10:01:30 AM (3 years ago)
Author:
bird
Message:

kmk: build fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/function.c

    r3545 r3561  
    8282#endif /* CONFIG_WITH_OS2_LIBPATH */
    8383
    84 #ifdef KMK
     84#if defined(KMK) || defined(CONFIG_WITH_LAZY_DEPS_VARS)
    8585/** Checks if the @a_cch characters (bytes) in @a a_psz equals @a a_szConst. */
    8686# define STR_N_EQUALS(a_psz, a_cch, a_szConst) \
    8787    ( (a_cch) == sizeof (a_szConst) - 1 && !strncmp ((a_psz), (a_szConst), sizeof (a_szConst) - 1) )
    88 
     88#endif
     89
     90#ifdef KMK
    8991# ifdef _MSC_VER
    9092#  include "kmkbuiltin/mscfakes.h"
     
    54045406}
    54055407
     5408#endif /* KMK */
     5409#if defined (KMK) || defined (CONFIG_WITH_LAZY_DEPS_VARS)
     5410
    54065411/* Helper for performer GNU make style quoting of one filename. */
    54075412
     
    54895494}
    54905495
     5496# ifdef KMK
     5497
    54915498/* Helper for func_quote_make that checks if there are more arguments
    54925499   that produces output or not. */
     
    55625569  return o;
    55635570}
     5571
     5572# endif /* KMK */
    55645573
    55655574/* Worker for func_quote_shell() for escaping a string that's inside
     
    55965605}
    55975606
     5607# ifdef KMK
    55985608/* quote-sh-dq */
    55995609
     
    56025612  return func_escape_shell_in_dq (o, argv[0], strlen (argv[0]));
    56035613}
    5604 
     5614# endif
    56055615
    56065616/* Worker for func_quote_shell() for escaping a string that's inside
     
    56265636}
    56275637
     5638# ifdef KMK
    56285639/* quote-sh-dq */
    56295640
     
    56325643  return func_escape_shell_in_sq (o, argv[0], strlen (argv[0]));
    56335644}
     5645#endif
    56345646
    56355647/* Output a shell argument with quoting as needed. */
     
    56805692}
    56815693
     5694# ifdef KMK
     5695
    56825696/* Takes zero or more plain strings and escapes/quotes spaces and other
    56835697   problematic characters, bourne make style.
     
    57265740    }
    57275741}
     5742
     5743# endif /* KMK */
    57285744
    57295745/* Decoded style options for the $(q* ) and $(*file* ) functions. */
     
    57645780#endif
    57655781
    5766 
     5782# ifdef KMK
    57675783/* Decodes the optional style argument.  This is chiefly for the return
    57685784   style, but can also pick the input and space styles (just because we can).  */
     
    58495865  return intstyle;
    58505866}
     5867# endif /* KMK */
    58515868
    58525869/* Output (returns) a separator according to STYLE. */
     
    59485965}
    59495966
     5967#endif /* KMK || CONFIG_WITH_LAZY_DEPS_VARS */
     5968#ifdef KMK
     5969
    59505970/* Outputs (returns) the given CHAIN and frees it. */
    59515971
     
    70867106        {
    70877107          if (pp->percent)
    7088             for (wp = wordhead; wp != 0; wp = wp->next)
    7089               if (!wp->matched
    7090                   && pattern_matches_ex (pp->str, pp->percent, pp->sfxlen,
    7091                                          wp->str, wp->length))
    7092                 {
    7093                   wp->matched = 1;
    7094                   if (is_filter)
    7095                     words_len += wp->length + 1;
    7096                   else
    7097                     words_len -= wp->length + 1;
    7098                 }
     7108            {
     7109              for (wp = wordhead; wp != 0; wp = wp->next)
     7110                if (!wp->matched
     7111                    && pattern_matches_ex (pp->str, pp->percent, pp->sfxlen,
     7112                                           wp->str, wp->length))
     7113                  {
     7114                    wp->matched = 1;
     7115                    if (is_filter)
     7116                      words_len += wp->length + 1;
     7117                    else
     7118                      words_len -= wp->length + 1;
     7119                  }
     7120            }
    70997121          else if (hashing)
    71007122            {
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette