/*
- * Copyright (c) 1996, 1998-2005, 2007-2016
+ * Copyright (c) 1996, 1998-2005, 2007-2018
* Todd C. Miller <Todd.Miller@sudo.ws>
*
* Permission to use, copy, modify, and distribute this software for any
#include "sudo_lbuf.h"
#include <gram.h>
-#ifdef HAVE_FNMATCH
-# include <fnmatch.h>
-#else
-# include "compat/fnmatch.h"
-#endif /* HAVE_FNMATCH */
-
#ifndef YYDEBUG
# define YYDEBUG 0
#endif
static int testsudoers_error(const char *msg);
static int testsudoers_output(const char *buf);
+/* tsgetgrpw.c */
extern void setgrfile(const char *);
extern void setgrent(void);
extern void endgrent(void);
extern struct passwd *getpwnam(const char *);
extern struct passwd *getpwuid(uid_t);
+/* gram.y */
extern int (*trace_print)(const char *msg);
/*
bindtextdomain("sudoers", LOCALEDIR); /* XXX - should have own domain */
textdomain("sudoers");
+ /* No word wrap on output. */
sudo_lbuf_init(&lbuf, testsudoers_output, 0, NULL, 0);
/* Initialize the debug subsystem. */