]> Savannah Git Hosting - gnulib.git/commit
glob: Use enum for __glob_pattern_type result
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 6 Sep 2017 04:14:51 +0000 (21:14 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 6 Sep 2017 04:15:55 +0000 (21:15 -0700)
commit8ffefc19a6d30f3979a13fa9d37007aeaca40fdf
tree605abfeafae44f78792f8a40b5532306cfdbb63e
parentef5de27602b0dfe288e21e925e2b8a09babdb41d
glob: Use enum for __glob_pattern_type result

From a patch proposed by Adhemerval Zanella in:
https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
* lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
(GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
* lib/glob_internal.h (__glob_pattern_type):
* lib/glob.c (glob):
* lib/glob_pattern_p.c (__glob_pattern_p):
Use them.
ChangeLog
lib/glob.c
lib/glob_internal.h
lib/glob_pattern_p.c