[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bash-4.0: fix internal_swtrmatch() prototype issues
From: |
Mike Frysinger |
Subject: |
bash-4.0: fix internal_swtrmatch() prototype issues |
Date: |
Sat, 21 Feb 2009 18:10:01 -0500 |
User-agent: |
KMail/1.11.0 (Linux/2.6.28; KDE/4.2.0; x86_64; ; ) |
the internal_wstrmatch() prototype should be moved to lib/globl/strmatch.h as
more than just strmatch.c uses this function (smatch.c uses it as well).
-mike
move prototypes around so they show up when needed
--- a/lib/glob/strmatch.c
+++ b/lib/glob/strmatch.c
@@ -25,9 +25,6 @@
#include "strmatch.h"
extern int xstrmatch __P((char *, char *, int));
-#if defined (HANDLE_MULTIBYTE)
-extern int internal_wstrmatch __P((wchar_t *, wchar_t *, int));
-#endif
int
strmatch (pattern, string, flags)
--- a/lib/glob/strmatch.h
+++ b/lib/glob/strmatch.h
@@ -57,6 +57,7 @@
#if HANDLE_MULTIBYTE
extern int wcsmatch __P((wchar_t *, wchar_t *, int));
+extern int internal_wstrmatch __P((wchar_t *, wchar_t *, int));
#endif
#endif /* _STRMATCH_H */
signature.asc
Description: This is a digitally signed message part.
- bash-4.0: fix internal_swtrmatch() prototype issues,
Mike Frysinger <=