~vcs-imports/gawk/master

« back to all changes in this revision

Viewing changes to missing_d/fnmatch.c

Update README.solaris.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (C) 1991, 1992, 1993, 1996, 1997, 1998, 1999, 2021,
2
 
Free Software Foundation, Inc.
 
1
/* Copyright (C) 1991, 1992, 1993, 1996, 1997, 1998, 1999 Free Software
 
2
Foundation, Inc.
3
3
This file is part of the GNU C Library.
4
4
 
5
5
This library is free software; you can redistribute it and/or
329
329
 
330
330
                    if (c == fn)
331
331
                      goto matched;
332
 
 
333
 
                    c = *p++;
334
332
                  }
335
333
                else if (c == '[' && *p == ':')
336
334
                  {
355
353
                            p += 2;
356
354
                            break;
357
355
                          }
358
 
                        if (c < 'a' || c > 'z')
 
356
                        if (c < 'a' || c >= 'z')
359
357
                          {
360
358
                            /* This cannot possibly be a character class name.
361
359
                               Match it as a normal range.  */
390
388
                        || (STREQ (str, "xdigit") && ISXDIGIT ((unsigned char) *n)))
391
389
                      goto matched;
392
390
# endif
393
 
                    c = *p++;
394
391
                  }
395
392
                else if (c == '\0')
396
393
                  /* [ (unterminated) loses.  */
401
398
                    if (FOLD (c) == fn)
402
399
                      goto matched;
403
400
 
404
 
                    cold = FOLD(c);
 
401
                    cold = c;
405
402
                    c = *p++;
406
403
 
407
404
                    if (c == '-' && *p != ']')