Move #pragmas out of the source files when possible. Depend on occ

command line flags.
This commit is contained in:
gdr 1997-09-21 06:05:01 +00:00
parent b94726dc62
commit 8f24a49223
21 changed files with 21 additions and 107 deletions

View File

@ -1,7 +1,7 @@
/* /*
* These routines were written by Devin Reade for GNO v2.0.4. * These routines were written by Devin Reade for GNO v2.0.4.
* *
* $Id: basename.c,v 1.2 1997/09/05 06:09:50 gdr Exp $ * $Id: basename.c,v 1.3 1997/09/21 06:04:59 gdr Exp $
* *
* This file is formatted for tabs every 8 columns. * This file is formatted for tabs every 8 columns.
*/ */
@ -10,10 +10,6 @@
segment "libc_gen__"; segment "libc_gen__";
#endif #endif
#pragma optimize 0
#pragma debug 0
#pragma memorymodel 0
#include <sys/syslimits.h> #include <sys/syslimits.h>
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>

View File

@ -1,5 +1,5 @@
/* /*
* $Id: bmem.c,v 1.1 1997/02/28 05:12:43 gdr Exp $ * $Id: bmem.c,v 1.2 1997/09/21 06:04:59 gdr Exp $
* *
* This file is formatted with tabs every 8 columns. * This file is formatted with tabs every 8 columns.
*/ */
@ -8,10 +8,6 @@
segment "libc_gen__"; segment "libc_gen__";
#endif #endif
#pragma optimize 0
#pragma debug 0
#pragma memorymodel 0
#include <string.h> #include <string.h>
void void

View File

@ -2,7 +2,7 @@
* These functions really belong in a separate library, libcompat, if * These functions really belong in a separate library, libcompat, if
* we're trying to be BSD-ish. They are all obsolete functions. * we're trying to be BSD-ish. They are all obsolete functions.
* *
* $Id: compat.c,v 1.1 1997/02/28 05:12:43 gdr Exp $ * $Id: compat.c,v 1.2 1997/09/21 06:04:59 gdr Exp $
* *
* This file is formatted with tabs every 8 characters. * This file is formatted with tabs every 8 characters.
*/ */
@ -11,10 +11,6 @@
segment "libc_gen__"; segment "libc_gen__";
#endif #endif
#pragma optimize 0
#pragma debug 0
#pragma memorymodel 0
#include <sgtty.h> #include <sgtty.h>
int int
@ -26,4 +22,3 @@ int
stty (int filedes, struct sgttyb *argp) { stty (int filedes, struct sgttyb *argp) {
return ioctl(filedes,TIOCSETP,argp); return ioctl(filedes,TIOCSETP,argp);
} }

View File

@ -5,7 +5,7 @@
* January 19-22, 1992 by Jawaid Bazyar * January 19-22, 1992 by Jawaid Bazyar
* Copyright 1992-1997, Procyon Inc. * Copyright 1992-1997, Procyon Inc.
* *
* $Id: crypt.c,v 1.1 1997/02/28 05:12:43 gdr Exp $ * $Id: crypt.c,v 1.2 1997/09/21 06:04:59 gdr Exp $
* *
* This file is formatted with tab stops every 8 columns. * This file is formatted with tab stops every 8 columns.
*/ */
@ -14,10 +14,6 @@
/* segment "libc_gen__"; *//* don't segment this until crypt.asm is done */ /* segment "libc_gen__"; *//* don't segment this until crypt.asm is done */
#endif #endif
#pragma optimize 0
#pragma debug 0
#pragma memorymodel 0
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

View File

@ -3,7 +3,7 @@
* were by Derek Taubert and Jawaid Bazyar. Reimplemented from scratch * were by Derek Taubert and Jawaid Bazyar. Reimplemented from scratch
* by Devin Reade. * by Devin Reade.
* *
* $Id: dirent.c,v 1.1 1997/02/28 05:12:43 gdr Exp $ * $Id: dirent.c,v 1.2 1997/09/21 06:04:59 gdr Exp $
* *
* This file is formatted with tab stops every 8 characters. * This file is formatted with tab stops every 8 characters.
*/ */
@ -12,10 +12,6 @@
segment "libc_gen__"; segment "libc_gen__";
#endif #endif
#pragma optimize 0
#pragma debug 0
#pragma memorymodel 0
#define __LIBC_DIRENT /* needed for decls in <dirent.h> */ #define __LIBC_DIRENT /* needed for decls in <dirent.h> */
#include <sys/types.h> #include <sys/types.h>

View File

@ -1,7 +1,7 @@
/* /*
* This file is formatted with tab stops every 8 columns. * This file is formatted with tab stops every 8 columns.
* *
* $Id: err.c,v 1.1 1997/02/28 05:12:43 gdr Exp $ * $Id: err.c,v 1.2 1997/09/21 06:04:59 gdr Exp $
*/ */
/*- /*-
* Copyright (c) 1993 * Copyright (c) 1993
@ -40,11 +40,8 @@
segment "libc_gen__"; segment "libc_gen__";
#endif #endif
#pragma memorymodel 0 /* need bit 3 and 6 (minimum) for variadic function definitions */
#pragma optimize 78
/* need bit 3 for variadic function definitions */
#pragma optimize 8
#pragma debug 0
#include <err.h> #include <err.h>
#include <errno.h> #include <errno.h>

View File

@ -38,7 +38,7 @@
* This implementation uses recursion. It should be rewritten to avoid * This implementation uses recursion. It should be rewritten to avoid
* it due to stack limitations on the IIgs. * it due to stack limitations on the IIgs.
* *
* $Id: fnmatch.c,v 1.1 1997/02/28 05:12:44 gdr Exp $ * $Id: fnmatch.c,v 1.2 1997/09/21 06:05:00 gdr Exp $
* *
* This file is formatted for tab stops every 8 characters. * This file is formatted for tab stops every 8 characters.
*/ */
@ -47,10 +47,6 @@
segment "libc_gen__"; segment "libc_gen__";
#endif #endif
#pragma optimize 0
#pragma debug 0
#pragma memorymodel 0
#if defined(LIBC_SCCS) && !defined(lint) #if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)fnmatch.c 8.2 (Berkeley) 4/16/94"; static char sccsid[] = "@(#)fnmatch.c 8.2 (Berkeley) 4/16/94";
#endif /* LIBC_SCCS and not lint */ #endif /* LIBC_SCCS and not lint */

View File

@ -35,10 +35,6 @@
segment "libc_gen_2"; segment "libc_gen_2";
#endif #endif
#pragma optimize 0
#pragma debug 0
#pragma memorymodel 0
#if defined(LIBC_SCCS) && !defined(lint) #if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)fts.c 8.4 (Berkeley) 4/16/94"; static char sccsid[] = "@(#)fts.c 8.4 (Berkeley) 4/16/94";
#endif /* LIBC_SCCS and not lint */ #endif /* LIBC_SCCS and not lint */

View File

@ -3,15 +3,11 @@
* Modified for BSD 4.4 compatibility and dynamically allocated structs * Modified for BSD 4.4 compatibility and dynamically allocated structs
* by Devin Reade. * by Devin Reade.
* *
* $Id: getcwd.c,v 1.2 1997/02/28 05:43:29 gdr Exp $ * $Id: getcwd.c,v 1.3 1997/09/21 06:05:00 gdr Exp $
* *
* This file is formatted for tabs every 8 columns. * This file is formatted for tabs every 8 columns.
*/ */
#pragma optimize 0
#pragma debug 0
#pragma memorymodel 0
#ifdef __ORCAC__ #ifdef __ORCAC__
segment "libc_gen__"; segment "libc_gen__";
#endif #endif

View File

@ -34,17 +34,13 @@
/* /*
* This file is formatted with tab stops every 8 columns. * This file is formatted with tab stops every 8 columns.
* *
* $Id: getgrent.c,v 1.1 1997/02/28 05:12:44 gdr Exp $ * $Id: getgrent.c,v 1.2 1997/09/21 06:05:00 gdr Exp $
*/ */
#ifdef __ORCAC__ #ifdef __ORCAC__
segment "libc_gen__"; segment "libc_gen__";
#endif #endif
#pragma optimize 0
#pragma debug 0
#pragma memorymodel 0
#if defined(LIBC_SCCS) && !defined(lint) #if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)getgrent.c 8.2 (Berkeley) 3/21/94"; static char sccsid[] = "@(#)getgrent.c 8.2 (Berkeley) 3/21/94";
#endif /* LIBC_SCCS and not lint */ #endif /* LIBC_SCCS and not lint */

View File

@ -34,7 +34,7 @@
/* /*
* GDR: This file could probably be cleaned up a bit ... * GDR: This file could probably be cleaned up a bit ...
* *
* $Id: getpass.c,v 1.1 1997/02/28 05:12:44 gdr Exp $ * $Id: getpass.c,v 1.2 1997/09/21 06:05:00 gdr Exp $
* *
* This file is formatted for tab stops every 8 characters. * This file is formatted for tab stops every 8 characters.
*/ */
@ -43,10 +43,6 @@
segment "libc_gen__"; segment "libc_gen__";
#endif #endif
#pragma optimize 0
#pragma debug 0
#pragma memorymodel 0
#if defined(LIBC_SCCS) && !defined(lint) #if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)getpass.c 5.9 (Berkeley) 5/6/91"; static char sccsid[] = "@(#)getpass.c 5.9 (Berkeley) 5/6/91";
#endif /* LIBC_SCCS and not lint */ #endif /* LIBC_SCCS and not lint */

View File

@ -35,7 +35,7 @@
* This is an old implementation and needs to be replaced; just not quite * This is an old implementation and needs to be replaced; just not quite
* yet -- gdr * yet -- gdr
* *
* $Id: getpwent.c,v 1.1 1997/02/28 05:12:44 gdr Exp $ * $Id: getpwent.c,v 1.2 1997/09/21 06:05:00 gdr Exp $
* *
* This file is formatted with tab stops every 8 characters. * This file is formatted with tab stops every 8 characters.
*/ */
@ -44,10 +44,6 @@
segment "libc_gen__"; segment "libc_gen__";
#endif #endif
#pragma optimize 0
#pragma debug 0
#pragma memorymodel 0
#define _PATH_PASSWD "/etc/passwd" #define _PATH_PASSWD "/etc/passwd"
#if defined(LIBC_SCCS) && !defined(lint) #if defined(LIBC_SCCS) && !defined(lint)

View File

@ -1,15 +1,11 @@
/* /*
* $Id: hostname.c,v 1.1 1997/02/28 05:12:44 gdr Exp $ * $Id: hostname.c,v 1.2 1997/09/21 06:05:00 gdr Exp $
*/ */
#ifdef __ORCAC__ #ifdef __ORCAC__
segment "libc_gen__"; segment "libc_gen__";
#endif #endif
#pragma optimize 0
#pragma debug 0
#pragma memorymodel 0
#include <sys/param.h> #include <sys/param.h>
#include <unistd.h> #include <unistd.h>
#include <errno.h> #include <errno.h>
@ -80,4 +76,3 @@ gethostname(char *name, int namelen) {
DisposeHandle(message); DisposeHandle(message);
return 0; return 0;
} }

View File

@ -10,7 +10,7 @@
* *
* Phillip Vandry, August 1993. * Phillip Vandry, August 1993.
* *
* $Id: oldlog.c,v 1.1 1997/02/28 05:12:44 gdr Exp $ * $Id: oldlog.c,v 1.2 1997/09/21 06:05:00 gdr Exp $
* *
* This file is formatted with tab stops every 8 columns. * This file is formatted with tab stops every 8 columns.
*/ */
@ -19,10 +19,6 @@
segment "libc_gen__"; segment "libc_gen__";
#endif #endif
#pragma optimize 0
#pragma debug 0
#pragma memorymodel 0
#include <stdio.h> #include <stdio.h>
#include <fcntl.h> #include <fcntl.h>
#include <memory.h> #include <memory.h>

View File

@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* $Id: psignal.c,v 1.2 1997/09/05 06:09:50 gdr Exp $ * $Id: psignal.c,v 1.3 1997/09/21 06:05:01 gdr Exp $
* *
* This file is formatted for tab stops every 8 columns. * This file is formatted for tab stops every 8 columns.
*/ */
@ -39,10 +39,6 @@
segment "libc_gen__"; segment "libc_gen__";
#endif #endif
#pragma optimize 0
#pragma debug 0
#pragma memorymodel 0
#if defined(LIBC_SCCS) && !defined(lint) #if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)psignal.c 8.1 (Berkeley) 6/4/93"; static char sccsid[] = "@(#)psignal.c 8.1 (Berkeley) 6/4/93";
#endif /* LIBC_SCCS and not lint */ #endif /* LIBC_SCCS and not lint */

View File

@ -35,10 +35,6 @@
segment "libc_gen__"; segment "libc_gen__";
#endif #endif
#pragma optimize 0
#pragma debug 0
#pragma memorymodel 0
#if defined(LIBC_SCCS) && !defined(lint) #if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)pwcache.c 8.1 (Berkeley) 6/4/93"; static char sccsid[] = "@(#)pwcache.c 8.1 (Berkeley) 6/4/93";
#endif /* LIBC_SCCS and not lint */ #endif /* LIBC_SCCS and not lint */

View File

@ -34,17 +34,13 @@
/* /*
* This file is formatted for tab stops set every 8 columns. * This file is formatted for tab stops set every 8 columns.
* *
* $Id: scandir.c,v 1.1 1997/02/28 05:12:45 gdr Exp $ * $Id: scandir.c,v 1.2 1997/09/21 06:05:01 gdr Exp $
*/ */
#ifdef __ORCAC__ #ifdef __ORCAC__
segment "libc_gen__"; segment "libc_gen__";
#endif #endif
#pragma optimize 0
#pragma debug 0
#pragma memorymodel 0
#if defined(LIBC_SCCS) && !defined(lint) #if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)scandir.c 8.3 (Berkeley) 1/2/94"; static char sccsid[] = "@(#)scandir.c 8.3 (Berkeley) 1/2/94";
#endif /* LIBC_SCCS and not lint */ #endif /* LIBC_SCCS and not lint */

View File

@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* $Id: siglist.c,v 1.1 1997/07/28 03:12:37 gdr Exp $ * $Id: siglist.c,v 1.2 1997/09/21 06:05:01 gdr Exp $
* *
* This file is formatted for tab stops every 8 columns. * This file is formatted for tab stops every 8 columns.
*/ */
@ -39,10 +39,6 @@
segment "libc_gen__"; segment "libc_gen__";
#endif #endif
#pragma optimize 0
#pragma debug 0
#pragma memorymodel 0
#if defined(LIBC_SCCS) && !defined(lint) #if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)siglist.c 8.1 (Berkeley) 6/4/93"; static char sccsid[] = "@(#)siglist.c 8.1 (Berkeley) 6/4/93";
#endif /* LIBC_SCCS and not lint */ #endif /* LIBC_SCCS and not lint */

View File

@ -2,7 +2,7 @@
* The sleep(3) code is from BSD 4.3-reno, heavily modified (shorted) * The sleep(3) code is from BSD 4.3-reno, heavily modified (shorted)
* for use with GNO. * for use with GNO.
* *
* $Id: sleep.c,v 1.1 1997/02/28 05:12:45 gdr Exp $ * $Id: sleep.c,v 1.2 1997/09/21 06:05:01 gdr Exp $
* *
* This file has been formatted for tabs every 8 columns * This file has been formatted for tabs every 8 columns
*/ */
@ -11,10 +11,6 @@
segment "libc_gen__"; segment "libc_gen__";
#endif #endif
#pragma optimize 0
#pragma debug 0
#pragma memorymodel 0
#include <signal.h> #include <signal.h>
#include <unistd.h> #include <unistd.h>

View File

@ -34,17 +34,13 @@
/* /*
* This file is formatted with tab stops every 8 columns. * This file is formatted with tab stops every 8 columns.
* *
* $Id: tty.c,v 1.1 1997/02/28 05:12:45 gdr Exp $ * $Id: tty.c,v 1.2 1997/09/21 06:05:01 gdr Exp $
*/ */
#ifdef __ORCAC__ #ifdef __ORCAC__
segment "libc_gen__"; segment "libc_gen__";
#endif #endif
#pragma optimize 0
#pragma debug 0
#pragma memorymodel 0
#if defined(LIBC_SCCS) && !defined(lint) #if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)ttyslot.c 5.6 (Berkeley) 2/23/91"; static char sccsid[] = "@(#)ttyslot.c 5.6 (Berkeley) 2/23/91";
#endif /* LIBC_SCCS and not lint */ #endif /* LIBC_SCCS and not lint */
@ -121,4 +117,3 @@ isatty(int filedes) {
return 0; return 0;
} }
} }

View File

@ -1,7 +1,7 @@
/* /*
* utime, utimes. Implementation by Devin Reade. * utime, utimes. Implementation by Devin Reade.
* *
* $Id: utime.c,v 1.1 1997/02/28 05:12:45 gdr Exp $ * $Id: utime.c,v 1.2 1997/09/21 06:05:01 gdr Exp $
* *
* This file is formatted with tab stops every 8 columns. * This file is formatted with tab stops every 8 columns.
*/ */
@ -10,10 +10,6 @@
segment "libc_gen__"; segment "libc_gen__";
#endif #endif
#pragma optimize 0
#pragma debug 0
#pragma memorymodel 0
#include <sys/types.h> #include <sys/types.h>
#include <sys/time.h> #include <sys/time.h>
#include <utime.h> #include <utime.h>