/[man-db]/man-db/src/ult_src.c
ViewVC logotype

Diff of /man-db/src/ult_src.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.15 by cjwatson, Thu Aug 14 23:16:30 2003 UTC revision 1.16 by cjwatson, Sun Nov 16 18:46:47 2003 UTC
# Line 186  static char *ult_softlink (const char *f Line 186  static char *ult_softlink (const char *f
186  static char *test_for_include (const char *buffer)  static char *test_for_include (const char *buffer)
187  {  {
188          /* strip out any leading whitespace (if any) */          /* strip out any leading whitespace (if any) */
189          while (isspace ((int) *buffer))          while (CTYPE (isspace, *buffer))
190                  buffer++;                  buffer++;
191    
192          /* see if the `command' is a .so */          /* see if the `command' is a .so */
# Line 195  static char *test_for_include (const cha Line 195  static char *test_for_include (const cha
195    
196                  /* strip out any whitespace between the command and                  /* strip out any whitespace between the command and
197                     it's argumant */                     it's argumant */
198                  while (isspace ((int) *buffer))                  while (CTYPE (isspace, *buffer))
199                          buffer++;                          buffer++;
200    
201                  /* If .so's argument is an absolute filename, it could be                  /* If .so's argument is an absolute filename, it could be
# Line 209  static char *test_for_include (const cha Line 209  static char *test_for_include (const cha
209                   * ultimate source file */                   * ultimate source file */
210                  if (*buffer != '/') {                  if (*buffer != '/') {
211                          const char *end = buffer;                          const char *end = buffer;
212                          while (*end && !isspace (*end))                          while (*end && !CTYPE (isspace, *end))
213                                  ++end;                                  ++end;
214                          return xstrndup (buffer, end - buffer);                          return xstrndup (buffer, end - buffer);
215                  }                  }

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26