-/* $OpenBSD: conv.c,v 1.9 2013/02/09 02:46:03 krw Exp $ */
+/* $OpenBSD: conv.c,v 1.10 2014/04/19 09:28:20 sobrado Exp $ */
/* $NetBSD: conv.c,v 1.7 2001/12/07 15:14:29 bjh21 Exp $ */
/*
goto strpr;
/* case '\a': */
case '\007':
- if (deprecated) /* od didn't know about \a */
+ if (odmode) /* od didn't know about \a */
break;
str = "\\a";
goto strpr;
str = "\\t";
goto strpr;
case '\v':
- if (deprecated)
+ if (odmode)
break;
str = "\\v";
goto strpr;
/* od used nl, not lf */
if (*p <= 0x1f) {
*pr->cchar = 's';
- if (deprecated && *p == 0x0a)
+ if (odmode && *p == 0x0a)
(void)printf(pr->fmt, "nl");
else
(void)printf(pr->fmt, list[*p]);
} else if (*p == 0x7f) {
*pr->cchar = 's';
(void)printf(pr->fmt, "del");
- } else if (deprecated && *p == 0x20) { /* od replaced space with sp */
+ } else if (odmode && *p == 0x20) { /* od replaced space with sp */
*pr->cchar = 's';
(void)printf(pr->fmt, " sp");
} else if (isprint(*p)) {
-/* $OpenBSD: hexdump.h,v 1.9 2010/10/12 17:23:21 millert Exp $ */
+/* $OpenBSD: hexdump.h,v 1.10 2014/04/19 09:28:20 sobrado Exp $ */
/* $NetBSD: hexdump.h,v 1.7 2001/12/07 15:14:29 bjh21 Exp $ */
/*
enum _vflag { ALL, DUP, FIRST, WAIT }; /* -v values */
extern int blocksize; /* data block size */
-extern int deprecated; /* od compatibility */
+extern int odmode; /* od compatibility */
extern FU *endfu; /* format at end-of-data */
extern int exitval; /* final exit value */
extern FS *fshead; /* head of format strings list */
-/* $OpenBSD: odsyntax.c,v 1.24 2014/04/15 15:35:24 sobrado Exp $ */
+/* $OpenBSD: odsyntax.c,v 1.25 2014/04/19 09:28:20 sobrado Exp $ */
/* $NetBSD: odsyntax.c,v 1.15 2001/12/07 15:14:29 bjh21 Exp $ */
/*-
#define PADDING " "
-int deprecated;
+int odmode;
static void odoffset(int, char ***);
static void posixtypes(char *);
add("\"%07.7_Ao\n\"");
add("\"%07.7_ao \"");
- deprecated = 1;
+ odmode = 1;
argv = *argvp;
while ((ch = getopt(argc, argv,
"A:aBbcDdeFfHhIij:LlN:Oost:vXx")) != -1)