[BACK]Return to str.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / make

Diff for /src/usr.bin/make/str.c between version 1.31 and 1.32

version 1.31, 2014/05/18 08:08:50 version 1.32, 2019/05/21 17:21:02
Line 83 
Line 83 
  *      are ignored.   *      are ignored.
  *   *
  * returns --   * returns --
  *      Pointer to the array of pointers to the words.  To make life easier,   *      Pointer to the array of pointers to the words.  Fills up
  *      the first word is always the value of the .MAKE variable.   *      store_args with its size.
    *      The returned parameters are allocated in a single buffer,
    *      return as *buffer, to be freed later.
  */   */
 char **  char **
 brk_string(const char *str, int *store_argc, char **buffer)  brk_string(const char *str, int *store_argc, char **buffer)
Line 95 
Line 97 
         const char *p;          const char *p;
         char *start, *t;          char *start, *t;
         size_t len;          size_t len;
         int argmax = 50;          int argmax = 50;        /* start at 50 */
         size_t curlen = 0;          size_t curlen = 0;
         char **argv = ereallocarray(NULL, argmax + 1, sizeof(char *));          char **argv = ereallocarray(NULL, argmax + 1, sizeof(char *));
   

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.32