xref: /original-bsd/usr.bin/m4/misc.h (revision c6ddb5f9)
1 /*-
2  * Copyright (c) 1991 The Regents of the University of California.
3  * All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)misc.h	5.1 (Berkeley) 09/03/91
8  */
9 
10 #ifdef __STDC__
11 #define proto(s) s
12 #else
13 #define proto(s) ()
14 #endif
15 
16 int indx proto((char *s1, char *s2));
17 void putback proto((int c));
18 void pbstr proto((char *s));
19 void pbnum proto((int n));
20 void chrsave proto((int c));
21 void getdiv proto((int ind));
22 void oops proto((char *s1, char *s2));
23 void onintr proto((void));
24 void killdiv proto((void));
25 char *xalloc proto((unsigned long n));
26 char *strdup proto((char *s));
27 char *basename proto((char *s));
28 void usage proto((void));
29 
30 #ifdef GETOPT
31 int getopt proto((int argc, char *argv[], char *optstring));
32 #endif
33 
34 #ifdef DUFFCP
35 int memcpy proto((char *to, char *from, int count));
36 #endif
37 
38 #undef proto
39