Ignore:
Timestamp:
May 16, 2005, 6:54:02 PM (20 years ago)
Author:
bird
Message:

Current make snaphot, 2005-05-16.

Location:
branches/GNU/src/gmake
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/gmake

    • Property svn:ignore
      •  

        old new  
        3434README.DOS
        3535README.W32
         36README.OS2
        3637aclocal.m4
        3738autom4te.cache
  • branches/GNU/src/gmake/misc.c

    r153 r280  
    419419
    420420
    421 /* Search string BIG (length BLEN) for an occurrence of
    422    string SMALL (length SLEN).  Return a pointer to the
    423    beginning of the first occurrence, or return nil if none found.  */
    424 
    425 char *
    426 sindex (const char *big, unsigned int blen,
    427         const char *small, unsigned int slen)
    428 {
    429   if (!blen)
    430     blen = strlen (big);
    431   if (!slen)
    432     slen = strlen (small);
    433 
    434   if (slen && blen >= slen)
    435     {
    436       register unsigned int b;
    437 
    438       /* Quit when there's not enough room left for the small string.  */
    439       --slen;
    440       blen -= slen;
    441 
    442       for (b = 0; b < blen; ++b, ++big)
    443         if (*big == *small && strneq (big + 1, small + 1, slen))
    444           return (char *)big;
    445     }
    446 
    447   return 0;
    448 }
    449421
    450422/* Limited INDEX:
     
    468440
    469441char *
    470 end_of_token (char *s)
     442end_of_token (const char *s)
    471443{
    472444  while (*s != '\0' && !isblank ((unsigned char)*s))
    473445    ++s;
    474   return s;
     446  return (char *)s;
    475447}
    476448
     
    563535
    564536
     537/* Free a chain of `struct nameseq'. Each nameseq->name is freed
     538   as well.  Can be used on `struct dep' chains.*/
     539
     540void
     541free_ns_chain (struct nameseq *n)
     542{
     543  register struct nameseq *tmp;
     544
     545  while (n != 0)
     546  {
     547    if (n->name != 0)
     548      free (n->name);
     549
     550    tmp = n;
     551
     552    n = n->next;
     553
     554    free (tmp);
     555  }
     556
     557}
     558
    565559#ifdef  iAPX286
    566560/* The losing compiler on this machine can't handle this macro.  */
Note: See TracChangeset for help on using the changeset viewer.