#include "bsd_glob.h"
+/* XXX: need some thread awareness */
static int GLOB_ERROR = 0;
-static int
-not_here(char *s)
-{
- croak("%s not implemented on this architecture", s);
- return -1;
-}
-
-
static double
constant(char *name, int arg)
{
#endif
break;
case 'N':
+ if (strEQ(name, "GLOB_NOCASE"))
+#ifdef GLOB_NOCASE
+ return GLOB_NOCASE;
+#else
+ goto not_there;
+#endif
if (strEQ(name, "GLOB_NOCHECK"))
#ifdef GLOB_NOCHECK
return GLOB_NOCHECK;
void
doglob(pattern,...)
char *pattern
-PROTOTYPE:
+PROTOTYPE: $;$
PREINIT:
glob_t pglob;
int i;
constant(name,arg)
char *name
int arg
-PROTOTYPE:
+PROTOTYPE: $$