#define NONCHAR(c) ((c) > CHAR_MAX)
#define NNONCHAR (CODEMAX-CHAR_MAX)
#ifdef REDEBUG
-static void print(struct match *, char *, states, int, FILE *);
+static void print(struct match *, const char *, states, int, FILE *);
#endif
#ifdef REDEBUG
-static void at(struct match *, char *, char *, char *, sopno, sopno);
+static void at(
+ struct match *, const char *, const char *, const char *, sopno, sopno);
#endif
#ifdef REDEBUG
static char *pchar(int);
- print - print a set of states
*/
static void
-print(struct match *m, char *caption, states st, int ch, FILE *d)
+print(struct match *m, const char *caption, states st, int ch, FILE *d)
{
struct re_guts *g = m->g;
int i;
- at - print current situation
*/
static void
-at(struct match *m, char *title, char *start, char *stop, sopno startst,
- sopno stopst)
+at(struct match *m, const char *title, const char *start, const char *stop,
+ sopno startst, sopno stopst)
{
if (!(m->eflags®_TRACE))
return;
{
static char pbuf[10];
- if (isPrint(ch) || ch == ' ')
+ if (isprint(ch) || ch == ' ')
(void)snprintf(pbuf, sizeof pbuf, "%c", ch);
else
(void)snprintf(pbuf, sizeof pbuf, "\\%o", ch);