diff options
author | Heikki Korpela <heko@cvs.openbsd.org> | 2001-08-12 12:03:04 +0000 |
---|---|---|
committer | Heikki Korpela <heko@cvs.openbsd.org> | 2001-08-12 12:03:04 +0000 |
commit | 8733d65e598e20f5a4415a710e9c51ab3a3d323d (patch) | |
tree | 39173461770e11f8ad331e9aa18365fc4ab2d19f /sys/netiso/xebec | |
parent | bbbc80b14c0c9c05eb40dfe595d4893002a710bf (diff) |
#(endif|else) foo is incorrect, make it #endif /* foo */
deraadt@ ok
Diffstat (limited to 'sys/netiso/xebec')
-rw-r--r-- | sys/netiso/xebec/debug.h | 4 | ||||
-rw-r--r-- | sys/netiso/xebec/llparse.c | 8 | ||||
-rw-r--r-- | sys/netiso/xebec/llscan.c | 4 | ||||
-rw-r--r-- | sys/netiso/xebec/main.c | 16 | ||||
-rw-r--r-- | sys/netiso/xebec/malloc.c | 6 | ||||
-rw-r--r-- | sys/netiso/xebec/procs.c | 18 | ||||
-rw-r--r-- | sys/netiso/xebec/xebec.c | 4 |
7 files changed, 30 insertions, 30 deletions
diff --git a/sys/netiso/xebec/debug.h b/sys/netiso/xebec/debug.h index 05daceb3eae..d2ed5992039 100644 --- a/sys/netiso/xebec/debug.h +++ b/sys/netiso/xebec/debug.h @@ -1,4 +1,4 @@ -/* $OpenBSD: debug.h,v 1.2 1996/03/04 10:37:01 mickey Exp $ */ +/* $OpenBSD: debug.h,v 1.3 2001/08/12 12:03:03 heko Exp $ */ /* $NetBSD: debug.h,v 1.4 1994/06/29 06:41:00 cgd Exp $ */ #define OUT stdout @@ -18,5 +18,5 @@ extern int column; #define IFDEBUG(letter) //*beginning of comment*/STAR #define ENDDEBUG STAR/*end of comment*// -#endif DEBUG +#endif /* DEBUG */ diff --git a/sys/netiso/xebec/llparse.c b/sys/netiso/xebec/llparse.c index bfb61a04cb4..43d25fb3b68 100644 --- a/sys/netiso/xebec/llparse.c +++ b/sys/netiso/xebec/llparse.c @@ -1,4 +1,4 @@ -/* $OpenBSD: llparse.c,v 1.2 1996/03/04 10:37:03 mickey Exp $ */ +/* $OpenBSD: llparse.c,v 1.3 2001/08/12 12:03:03 heko Exp $ */ /* $NetBSD: llparse.c,v 1.4 1994/06/29 06:41:02 cgd Exp $ */ /* @@ -350,8 +350,8 @@ dump_parse_stack() } } -#endif DEBUG -#endif LINT +#endif /* DEBUG */ +#endif /* LINT */ prt_token(t) LLtoken *t; @@ -363,5 +363,5 @@ LLtoken *t; #ifdef LINT /* to make lint shut up */ fprintf(stdout, "", llnterms, llnsyms, llnprods, llinfinite); -#endif LINT +#endif /* LINT */ } diff --git a/sys/netiso/xebec/llscan.c b/sys/netiso/xebec/llscan.c index 12ae482582d..c55c1b51e37 100644 --- a/sys/netiso/xebec/llscan.c +++ b/sys/netiso/xebec/llscan.c @@ -1,4 +1,4 @@ -/* $OpenBSD: llscan.c,v 1.2 1996/03/04 10:37:07 mickey Exp $ */ +/* $OpenBSD: llscan.c,v 1.3 2001/08/12 12:03:03 heko Exp $ */ /* $NetBSD: llscan.c,v 1.5 1994/06/29 06:41:05 cgd Exp $ */ /* @@ -382,7 +382,7 @@ again: getstr('"', '"'); TVAL.FSTRING.address = stash(buffer[currentbuf]); break; -#endif T_FSTRING +#endif /* T_FSTRING */ case '(': t->llterm = T_PREDICATE; diff --git a/sys/netiso/xebec/main.c b/sys/netiso/xebec/main.c index 7bdd55bd26b..f95800ba5d1 100644 --- a/sys/netiso/xebec/main.c +++ b/sys/netiso/xebec/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.3 1997/08/18 03:11:27 millert Exp $ */ +/* $OpenBSD: main.c,v 1.4 2001/08/12 12:03:03 heko Exp $ */ /* $NetBSD: main.c,v 1.5 1994/06/29 06:41:07 cgd Exp $ */ /* @@ -97,7 +97,7 @@ register char *proto; IFDEBUG(X) #ifdef DEBUG DOIT(astringfile); -#endif DEBUG +#endif /* DEBUG */ fprintf(astringfile, "#ifndef _NFILE\n#include <stdio.h>\n#endif _NFILE\n" ); ENDDEBUG @@ -197,7 +197,7 @@ char *argv[]; actfile_name = (char *)strcpy(actfile_name,name); #ifdef LINT name = -#endif LINT +#endif /* LINT */ strcat(actfile_name, ".c"); fprintf(stdout, "debugging file is %s\n",actfile_name); break; @@ -213,7 +213,7 @@ char *argv[]; astringfile_name = (char *)strcpy(astringfile_name,name); #ifdef LINT name = -#endif LINT +#endif /* LINT */ strcat(astringfile_name, ".c"); fprintf(OUT, "option %c, astringfile name %s\n",c, name); break; @@ -223,7 +223,7 @@ char *argv[]; eventfile_h_name = (char *)strcpy(eventfile_h_name,name); #ifdef LINT name = -#endif LINT +#endif /* LINT */ strcat(eventfile_h_name, ".h"); fprintf(stdout, "event files is %s\n",eventfile_h_name); break; @@ -233,7 +233,7 @@ char *argv[]; statevalfile_name = (char *)strcpy(statevalfile_name,name); #ifdef LINT name = -#endif LINT +#endif /* LINT */ strcat(statevalfile_name, ".init"); fprintf(stdout, "state table initial values file is %s\n",statevalfile_name); break; @@ -243,7 +243,7 @@ char *argv[]; statefile_name = (char *)strcpy(statefile_name,name); #ifdef LINT name = -#endif LINT +#endif /* LINT */ strcat(statefile_name, ".h"); fprintf(stdout, "state file is %s\n",statefile_name); break; @@ -292,7 +292,7 @@ char *argv[]; fprintf(OUT, "Option K overrides option X\n"); debug['X'] = 0; } -#endif notdef +#endif /* notdef */ if(strlen(kerneldirname)<1) { fprintf(OUT, "K option: dir name too short!\n"); exit(-1); diff --git a/sys/netiso/xebec/malloc.c b/sys/netiso/xebec/malloc.c index c977c4eb62e..25657d67278 100644 --- a/sys/netiso/xebec/malloc.c +++ b/sys/netiso/xebec/malloc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: malloc.c,v 1.3 2000/06/16 21:47:18 provos Exp $ */ +/* $OpenBSD: malloc.c,v 1.4 2001/08/12 12:03:03 heko Exp $ */ /* $NetBSD: malloc.c,v 1.4 1994/06/29 06:41:10 cgd Exp $ */ /* @@ -28,13 +28,13 @@ init_alloc() #ifdef LINT hiwat = 0; highend = 0; -#else LINT +#else /* LINT */ extern char *sbrk(); hiwat = (char *) sbrk(0); hiwat = (char *)((unsigned)(hiwat + 3) & ~0x3); highend = hiwat; -#endif LINT +#endif /* LINT */ } HIWAT(s) diff --git a/sys/netiso/xebec/procs.c b/sys/netiso/xebec/procs.c index a1813952e10..9ff626759e4 100644 --- a/sys/netiso/xebec/procs.c +++ b/sys/netiso/xebec/procs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: procs.c,v 1.3 1997/08/18 03:11:27 millert Exp $ */ +/* $OpenBSD: procs.c,v 1.4 2001/08/12 12:03:03 heko Exp $ */ /* $NetBSD: procs.c,v 1.4 1994/06/29 06:41:12 cgd Exp $ */ /* @@ -243,7 +243,7 @@ int action, newstate; event, state, Index, str); fflush(stdout); ENDDEBUG -#endif LINT +#endif /* LINT */ for( ((q = &Predlist[(event<<Eventshift)+state]), (p = Predlist[(event<<Eventshift)+state])); p ; p = p->p_next ) { @@ -300,7 +300,7 @@ FILE *f; fprintf(stdout, " Xebec used %8d bytes of storage, wasted %8d bytes\n", bytesmalloced, byteswasted); -#endif notdef +#endif /* notdef */ fprintf(stdout, " %8d states\n %8d events\n %8d transitions\n", Nstates, Nevents, Ntrans); @@ -369,9 +369,9 @@ FILE *f; fprintf(f, "default: return 0;\n} /* end switch */\n"); #ifdef notdef fprintf(f, "/*NOTREACHED*/return 0;\n} /* _Xebec_index() */\n"); -#else notdef +#else /* notdef */ fprintf(f, "} /* _Xebec_index() */\n"); -#endif notdef +#endif /* notdef */ fprintf(f, "static int inx[%d][%d] = { {", Nevents+1,Nstates); for(s = 0; s< Nstates; s++) fprintf(f, "0,"); /* event 0 */ fprintf(f, "},\n"); @@ -392,7 +392,7 @@ FILE *f; } fprintf(f, "};"); } -#endif LINT +#endif /* LINT */ char * stash(buf) @@ -406,7 +406,7 @@ char *buf; c = Malloc(len+1); #ifdef LINT c = -#endif LINT +#endif /* LINT */ strcpy(c, buf); IFDEBUG(z) @@ -431,8 +431,8 @@ int event,state; "dump_pentry for event 0x%x, state 0x%x is 0x%x\n", event, state, p); ENDDEBUG -#endif LINT +#endif /* LINT */ q = &p->p_next; } } -#endif notdef +#endif /* notdef */ diff --git a/sys/netiso/xebec/xebec.c b/sys/netiso/xebec/xebec.c index 31bd3161af0..73808aeab05 100644 --- a/sys/netiso/xebec/xebec.c +++ b/sys/netiso/xebec/xebec.c @@ -1,11 +1,11 @@ -/* $OpenBSD: xebec.c,v 1.2 1996/03/04 10:37:30 mickey Exp $ */ +/* $OpenBSD: xebec.c,v 1.3 2001/08/12 12:03:03 heko Exp $ */ /* $NetBSD: xebec.c,v 1.4 1994/06/29 06:41:23 cgd Exp $ */ #include "xebec.h" #include "llparse.h" #ifndef E_TABLE #define E_TABLE "xebec.e" -#endif E_TABLE +#endif /* E_TABLE */ #include "main.h" #include "sets.h" |