VirtualBox

Changeset 1615 in kBuild


Ignore:
Timestamp:
May 12, 2008 5:05:52 PM (17 years ago)
Author:
bird
Message:

Added a space between the which results.

File:
1 edited

Legend:

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

    r1519 r1615  
    15381538}
    15391539
    1540 /* A mix of func_eval and func_value, saves memory for the expansion. 
     1540/* A mix of func_eval and func_value, saves memory for the expansion.
    15411541  This implements both evalval and evalvalctx, the latter has its own
    15421542  variable context just like evalctx. */
     
    22802280
    22812281#ifdef CONFIG_WITH_ABSPATHEX
    2282 /* Same as abspath except that the current path may be given as the 
     2282/* Same as abspath except that the current path may be given as the
    22832283   2nd argument. */
    22842284static char *
     
    22872287  char *cwd = argv[1];
    22882288
    2289   /* cwd needs leading spaces chopped and may be optional, 
     2289  /* cwd needs leading spaces chopped and may be optional,
    22902290     in which case we're exactly like $(abspath ). */
    22912291  while (isblank(*cwd))
     
    23032303      PATH_VAR (in);
    23042304      PATH_VAR (out);
    2305    
     2305
    23062306      while ((path = find_next_token (&p, &len)) != 0)
    23072307        {
     
    23302330                  in[len] = '\0';
    23312331                }
    2332    
     2332
    23332333              if (abspath (in, out))
    23342334                {
     
    23392339            }
    23402340        }
    2341    
     2341
    23422342      /* Kill last space.  */
    23432343      if (doneany)
    23442344        --o;
    23452345    }
    2346  
     2346
    23472347   return o;
    23482348}
     
    26682668
    26692669  comp-cmds will compare command by command, ignoring not only leading
    2670   and trailing spaces on each line but also leading one leading '@', 
     2670  and trailing spaces on each line but also leading one leading '@',
    26712671  '-', '+' and '%'
    26722672*/
     
    27952795  $(comp-cmds-ex cmds1,cmds2,not-equal-return)
    27962796
    2797   Compares the two strings and return the string in the third argument 
     2797  Compares the two strings and return the string in the third argument
    27982798  if not equal. If equal, nothing is returned.
    27992799
    2800   The comparision will be performed command by command, ignoring not 
    2801   only leading and trailing spaces on each line but also leading one 
     2800  The comparision will be performed command by command, ignoring not
     2801  only leading and trailing spaces on each line but also leading one
    28022802  leading '@', '-', '+' and '%'.
    28032803*/
     
    30003000  struct variable *path_var;
    30013001  unsigned i;
     3002  int first = 1;
    30023003  PATH_VAR (buf);
    30033004
     
    30553056                      if (func_which_test_x (buf))
    30563057                        {
     3058                          if (!first)
     3059                            o = variable_buffer_output (o, " ", 1);
    30573060                          o = variable_buffer_output (o, buf, strlen (buf));
     3061                          first = 0;
    30583062                          break;
    30593063                        }
     
    35813585  if (!argv[0] || (!argv[0][0] && !argv[1]))
    35823586    {
    3583       len = sprintf (buf, "alloc-cur: %5lu %6luKB (/%3luMB)  hash: %5lu %2lu%%", 
    3584                      make_stats_allocations, 
    3585                      make_stats_allocated / 1024, 
    3586                      make_stats_allocated_sum / (1024*1024), 
     3587      len = sprintf (buf, "alloc-cur: %5lu %6luKB (/%3luMB)  hash: %5lu %2lu%%",
     3588                     make_stats_allocations,
     3589                     make_stats_allocated / 1024,
     3590                     make_stats_allocated_sum / (1024*1024),
    35873591                     make_stats_ht_lookups,
    35883592                     (make_stats_ht_collisions * 100) / make_stats_ht_lookups);
     
    35903594    }
    35913595  else
    3592     { 
     3596    {
    35933597      /* selective */
    35943598      int i;
     
    36113615            val = (make_stats_ht_collisions * 100) / make_stats_ht_lookups;
    36123616          else
    3613             { 
     3617            {
    36143618              o = variable_buffer_output (o, argv[i], strlen (argv[i]));
    36153619              continue;
     
    36263630#ifdef CONFIG_WITH_COMMANDS_FUNC
    36273631/* Gets all the commands for a target, separated by newlines.
    3628  
     3632
    36293633   This is useful when creating and checking target dependencies since
    36303634   it reduces the amount of work and the memory consuption. A new prefix
    3631    character '%' has been introduced for skipping certain lines, like 
     3635   character '%' has been introduced for skipping certain lines, like
    36323636   for instance the one calling this function and pushing to a dep file.
    36333637   Blank lines are also skipped.
    36343638
    3635    The commands function takes exactly one argument, which is the name of 
    3636    the target which commands should be returned. 
    3637 
    3638    The commands-sc is identical to commands except that it uses a ';' to 
     3639   The commands function takes exactly one argument, which is the name of
     3640   the target which commands should be returned.
     3641
     3642   The commands-sc is identical to commands except that it uses a ';' to
    36393643   separate the commands.
    36403644
     
    36783682      chop_commands (cmds);
    36793683
    3680       for (i = 0; i < cmds->ncommand_lines; i++) 
     3684      for (i = 0; i < cmds->ncommand_lines; i++)
    36813685        {
    36823686          char *p;
     
    36893693          while (isblank ((unsigned char)*p))
    36903694            p++;
    3691           if (*p == '\0') 
     3695          if (*p == '\0')
    36923696            continue;
    36933697
     
    37943798          /* Skip it if it has a '%' prefix or is blank. */
    37953799          p = o;
    3796           while (isblank ((unsigned char)*o) 
     3800          while (isblank ((unsigned char)*o)
    37973801              || *o == '@'
    37983802              || *o == '-'
     
    42044208      /* Expand the body in the context of the arguments, adding the result to
    42054209         the variable buffer.  */
    4206    
     4210
    42074211      v->exp_count = EXP_COUNT_MAX;
    42084212      o = variable_expand_string (o, body, flen+3);
     
    42184222      if (!strcmp (funcname, "evalcall"))
    42194223        {
    4220           /* Evaluate the variable value without expanding it. We 
     4224          /* Evaluate the variable value without expanding it. We
    42214225             need a copy since eval_buffer is destructive.  */
    42224226
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