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

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

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

revision 1.19 by cjwatson, Wed Aug 27 23:19:20 2003 UTC revision 1.20 by cjwatson, Sun Nov 16 18:46:47 2003 UTC
# Line 121  static int parse_layout (const char *lay Line 121  static int parse_layout (const char *lay
121                  char *upper_layout = xstrdup (layout);                  char *upper_layout = xstrdup (layout);
122                  char *layoutp;                  char *layoutp;
123                  for (layoutp = upper_layout; *layoutp; layoutp++)                  for (layoutp = upper_layout; *layoutp; layoutp++)
124                          *layoutp = toupper (*layoutp);                          *layoutp = CTYPE (toupper, *layoutp);
125    
126                  if (strstr (layout, "GNU"))                  if (strstr (layout, "GNU"))
127                          flags |= LAYOUT_GNU;                          flags |= LAYOUT_GNU;
# Line 290  char **look_for_file (const char *unesc_ Line 290  char **look_for_file (const char *unesc_
290    
291          /* allow lookups like "3x foo" to match "../man3/foo.3x" */          /* allow lookups like "3x foo" to match "../man3/foo.3x" */
292    
293          if ((layout & LAYOUT_GNU) && isdigit (*sec) && sec[1] != '\0') {          if ((layout & LAYOUT_GNU) && CTYPE (isdigit, *sec) && sec[1] != '\0') {
294                  path = strappend (path, hier, cat ? "/cat" : "/man", "\t",                  path = strappend (path, hier, cat ? "/cat" : "/man", "\t",
295                                    NULL);                                    NULL);
296                  *strrchr (path, '\t') = *sec;                  *strrchr (path, '\t') = *sec;

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

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