convert-rxgen-to-afsconfig-20010623
authorNathan Neulinger <nneul@umr.edu>
Sat, 23 Jun 2001 16:14:37 +0000 (16:14 +0000)
committerDerrick Brashear <shadow@dementia.org>
Sat, 23 Jun 2001 16:14:37 +0000 (16:14 +0000)
switch to afsconfig for some configuration; add RCSID

src/rxgen/Makefile
src/rxgen/rpc_clntout.c
src/rxgen/rpc_cout.c
src/rxgen/rpc_hout.c
src/rxgen/rpc_main.c
src/rxgen/rpc_parse.c
src/rxgen/rpc_scan.c
src/rxgen/rpc_svcout.c
src/rxgen/rpc_util.c
src/rxgen/rpc_util.h

index bac5c93..bf186b8 100644 (file)
@@ -18,7 +18,7 @@ OBJS= rpc_main.o rpc_hout.o rpc_cout.o rpc_parse.o rpc_scan.o rpc_util.o \
        rpc_svcout.o rpc_clntout.o
 
 GOAL=rxgen
-CFLAGS = ${DBUG} -I. -I${DESTDIR}include ${XCFLAGS}
+CFLAGS = ${DBUG} -I. -I${DESTDIR}include -I${TOP_SRCDIR}/config ${XCFLAGS}
 
 USNS=cellname
 SD=../../../src/CML
index 40f52dc..01394d9 100644 (file)
  * 2550 Garcia Avenue
  * Mountain View, California  94043
  */
-#ifndef lint
-static char sccsid[] = "@(#)rpc_clntout.c 1.2 87/06/24 (C) 1987 SMI";
-#endif
 
 /*
  * rpc_clntout.c, Client-stub outputter for the RPC protocol compiler
  * Copyright (C) 1987, Sun Microsytsems, Inc.
  */
 #include <afs/param.h>
+#include <afsconfig.h>
 #include <stdio.h>
-#if defined(AFS_SUN5_ENV) || defined(AFS_NT40_ENV)
 #include <string.h>
-#else
-#include <strings.h>
-#endif
 #include "rpc_parse.h"
 #include "rpc_util.h"
 
+RCSID("$Header$");
+
 #define DEFAULT_TIMEOUT 25     /* in seconds */
 
 static write_program();
index 0b2820e..e529e8b 100644 (file)
  * Copyright (C) 1987, Sun Microsystems, Inc. 
  */
 #include <afs/param.h>
+#include <afsconfig.h>
 #include <stdio.h>
-#if defined(AFS_SUN5_ENV) || defined(AFS_NT40_ENV)
+#include <stdlib.h>
+#ifdef HAVE_STRING_H
 #include <string.h>
-#else
+#endif
+#ifdef HAVE_STRINGS_H
 #include <strings.h>
 #endif
 #include "rpc_util.h"
 #include "rpc_parse.h"
 
+RCSID("$Header$");
+
 static print_header();
 static print_trailer();
 static space();
index 5c7853b..8c21bce 100644 (file)
  * rpc_hout.c, Header file outputter for the RPC protocol compiler 
  * Copyright (C) 1987, Sun Microsystems, Inc. 
  */
+#include <afs/param.h>
+#include <afsconfig.h>
 #include <stdio.h>
 #include <ctype.h>
 #include "rpc_util.h"
 #include "rpc_parse.h"
 
+RCSID("$Header$");
+
 static pconstdef();
 static pstructdef();
 static puniondef();
index 640f81e..01ad71b 100644 (file)
  */
 
 #include <afs/param.h>
+#include <afsconfig.h>
 #include <limits.h>
 #include <stdio.h>
-#ifdef AFS_AIX32_ENV
-#include <signal.h>
-#endif
+#include <stdlib.h>
 #include <ctype.h>
-#if defined(AFS_SUN5_ENV) || defined(AFS_NT40_ENV)
+#ifdef HAVE_STRING_H
 #include <string.h>
-#else
+#endif
+#ifdef HAVE_STRINGS_H
 #include <strings.h>
 #endif
-#ifndef AFS_NT40_ENV
+#ifdef HAVE_SIGNAL_H
+#include <signal.h>
+#endif
+#ifdef HAVE_SYS_FILE_H
 #include <sys/file.h>
 #endif
 #include "rpc_util.h"
 #include "rpc_parse.h"
 #include "rpc_scan.h"
 
+RCSID("$Header$");
+
 #define EXTEND 1               /* alias for TRUE */
 
 struct commandline {
@@ -120,17 +125,18 @@ static char *XTRA_CPPFLAGS[] = {
 };
 #endif
 
-static c_output();
-static h_output();
-static s_output();
-static l_output();
-static do_registers();
-static parseargs();
+static int c_output();
+static int h_output();
+static int s_output();
+static int l_output();
+static int do_registers();
+static int parseargs();
 
 static int allc = sizeof(allv)/sizeof(allv[0]);
 
 #include "AFS_component_version_number.c"
 
+int
 main(argc, argv)
        int argc;
        char *argv[];
index 0d6a7fc..6656e33 100644 (file)
  * Copyright (C) 1987 Sun Microsystems, Inc.
  */
 #include <afs/param.h>
+#include <afsconfig.h>
+#include <stdlib.h>
 #include <stdio.h>
 #include <ctype.h>
-#if defined(AFS_SUN5_ENV) || defined(AFS_NT40_ENV)
 #include <string.h>
-#if defined(AFS_SUN5_ENV)
-#include <strings.h>
+#ifdef HAVE_STRING_H
+#include <string.h>
 #endif
-#else
+#ifdef HAVE_STRINGS_H
 #include <strings.h>
 #endif
 #include "rpc_util.h"
 #include "rpc_scan.h"
 #include "rpc_parse.h"
 
+RCSID("$Header$");
 
 list *proc_defined[MAX_PACKAGES], *special_defined, *typedef_defined, *uniondef_defined;
 char *SplitStart = NULL;
index 385c79a..d2d390d 100644 (file)
  * Copyright (C) 1987, Sun Microsystems, Inc. 
  */
 #include <afs/param.h>
+#include <afsconfig.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <ctype.h>
-#if defined(AFS_SUN5_ENV) || defined(AFS_NT40_ENV)
+#ifdef HAVE_STRING_H
 #include <string.h>
-#else
+#endif
+#ifdef HAVE_STRINGS_H
 #include <strings.h>
 #endif
 #include "rpc_scan.h"
 #include "rpc_util.h"
 
+RCSID("$Header$");
+
 #define startcomment(where) (where[0] == '/' && where[1] == '*')
 #define endcomment(where) (where[-1] == '*' && where[0] == '/')
 #define        verbatimstart(p) (*(p) == '@' && *((p) + 1) == '{')
index 8395227..5724ba8 100644 (file)
  * 2550 Garcia Avenue
  * Mountain View, California  94043
  */
-#ifndef lint
-static char sccsid[] = "@(#)rpc_svcout.c 1.6 87/06/24 (C) 1987 SMI";
-#endif
 
 /*
  * rpc_svcout.c, Server-skeleton outputter for the RPC protocol compiler
  * Copyright (C) 1987, Sun Microsytsems, Inc. 
  */
 #include <afs/param.h>
+#include <afsconfig.h>
 #include <stdio.h>
-#if defined(AFS_SUN5_ENV) || defined(AFS_NT40_ENV)
+#ifdef HAVE_STRING_H
 #include <string.h>
-#else
+#endif
+#ifdef HAVE_STRINGS_H
 #include <strings.h>
 #endif
 #include "rpc_parse.h"
 #include "rpc_util.h"
 
+RCSID("$Header$");
+
 static char RQSTP[] = "rqstp";
 static char TRANSP[] = "transp";
 static char ARG[] = "argument";
index 971c2ec..4b7ce3a 100644 (file)
  * Copyright (C) 1987, Sun Microsystems, Inc. 
  */
 #include <afs/param.h>
+#include <afsconfig.h>
 #include <stdio.h>
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
 #include "rpc_scan.h"
 #include "rpc_parse.h"
 #include "rpc_util.h"
 
+RCSID("$Header$");
+
 char curline[MAXLINESIZE];     /* current read line */
 char *where = curline; /* current point in line */
 int linenum = 0;       /* current line number */
index 3df9ca3..501e9bd 100644 (file)
  */
 
 #include "rxgen_consts.h"
-#ifndef AFS_NT40_ENV
-#ifdef AFS_OSF_ENV
-extern void *malloc();
-#else
-extern char *malloc();
-#endif /* osf */
-#endif /* nt40 */
 #define alloc(size)            malloc((unsigned)(size))
 #define ALLOC(object)   (object *) malloc(sizeof(object))