Skip to content

Commit

Permalink
Changed AF_LOCAL to AF_LOCAL_XX so as not to conflict with 4.4 socket.h
Browse files Browse the repository at this point in the history
Added casts to shutup warnings in doio.c
  • Loading branch information
Gary Clark II authored and Gary Clark II committed Sep 11, 1994
1 parent 4cdee75 commit 5ada09a
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 150 deletions.
7 changes: 5 additions & 2 deletions gnu/usr.bin/perl/perl/arg.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
/* $RCSfile: arg.h,v $$Revision: 1.1.1.1 $$Date: 1993/08/23 21:29:34 $
/* $RCSfile: arg.h,v $$Revision: 1.1.1.1 $$Date: 1994/09/10 06:27:34 $
*
* Copyright (c) 1991, Larry Wall
*
* You may distribute under the terms of either the GNU General Public
* License or the Artistic License, as specified in the README file.
*
* $Log: arg.h,v $
* Revision 1.1.1.1 1994/09/10 06:27:34 gclarkii
* Initial import of Perl 4.046 bmaked
*
* Revision 1.1.1.1 1993/08/23 21:29:34 nate
* PERL!
*
Expand Down Expand Up @@ -685,7 +688,7 @@ struct arg {
#define AF_COMMON 16 /* left and right have symbols in common */
#define AF_DEPR 32 /* an older form of the construct */
#define AF_LISTISH 64 /* turn into list if important */
#define AF_LOCAL 128 /* list of local variables */
#define AF_LOCAL_XX 128 /* list of local variables */

/*
* Most of the ARG pointers are used as pointers to arrays of ARG. When
Expand Down
139 changes: 8 additions & 131 deletions gnu/usr.bin/perl/perl/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,8 @@
/*SUPPRESS 460*/


/* EUNICE
* This symbol, if defined, indicates that the program is being compiled
* under the EUNICE package under VMS. The program will need to handle
* things like files that don't go away the first time you unlink them,
* due to version numbering. It will also need to compensate for lack
* of a respectable link() command.
*/
/* VMS
* This symbol, if defined, indicates that the program is running under
* VMS. It is currently only set in conjunction with the EUNICE symbol.
*/
/*#undef EUNICE /**/
/*#undef VMS /**/
/*#undef EUNICE */
/*#undef VMS */

/* LOC_SED
* This symbol holds the complete pathname to the sed program.
Expand Down Expand Up @@ -112,13 +101,13 @@
* is up to the package author to declare sprintf correctly based on the
* symbol.
*/
/*#undef CHARSPRINTF /**/
/*#undef CHARSPRINTF */

/* HAS_CHSIZE
* This symbol, if defined, indicates that the chsize routine is available
* to truncate files. You might need a -lx to get this routine.
*/
/*#undef HAS_CHSIZE /**/
/*#undef HAS_CHSIZE */

/* HAS_CRYPT
* This symbol, if defined, indicates that the crypt routine is available
Expand All @@ -145,7 +134,7 @@
* subprocesses to which it must pass the filename rather than the
* file descriptor of the script to be executed.
*/
/*#undef DOSUID /**/
/*#undef DOSUID */

/* HAS_DUP2
* This symbol, if defined, indicates that the dup2 routine is available
Expand Down Expand Up @@ -194,7 +183,7 @@
* This symbol, if defined, indicates that the gethostent() routine is
* available to lookup host names in some data base or other.
*/
/*#undef HAS_GETHOSTENT /**/
/*#undef HAS_GETHOSTENT */

/* HAS_GETPGRP
* This symbol, if defined, indicates that the getpgrp() routine is
Expand All @@ -206,7 +195,7 @@
* This symbol, if defined, indicates that the getpgrp2() (as in DG/UX)
* routine is available to get the current process group.
*/
/*#undef HAS_GETPGRP2 /**/
/*#undef HAS_GETPGRP2 */

/* HAS_GETPRIORITY
* This symbol, if defined, indicates that the getpriority() routine is
Expand Down Expand Up @@ -243,8 +232,6 @@
* This preprocessor symbol is defined, along with index, if the system
* uses the strchr and strrchr routines instead.
*/
/*#undef index strchr /* cultural */
/*#undef rindex strrchr /* differences? */

/* HAS_ISASCII
* This symbol, if defined, indicates that the isascii routine is available
Expand Down Expand Up @@ -305,35 +292,6 @@
*/
#define HAS_MKDIR /**/

/* HAS_MSG
* This symbol, if defined, indicates that the entire msg*(2) library is
* supported.
*/
/*#undef HAS_MSG /**/

/* HAS_MSGCTL
* This symbol, if defined, indicates that the msgctl() routine is
* available to control message passing.
*/
/*#undef HAS_MSGCTL /**/

/* HAS_MSGGET
* This symbol, if defined, indicates that the msgget() routine is
* available to get messages.
*/
/*#undef HAS_MSGGET /**/

/* HAS_MSGRCV
* This symbol, if defined, indicates that the msgrcv() routine is
* available to receive messages.
*/
/*#undef HAS_MSGRCV /**/

/* HAS_MSGSND
* This symbol, if defined, indicates that the msgsnd() routine is
* available to send messages.
*/
/*#undef HAS_MSGSND /**/

/* HAS_NDBM
* This symbol, if defined, indicates that ndbm.h exists and should
Expand All @@ -345,7 +303,6 @@
* This symbol, if defined, indicates that dbm.h exists and should
* be included.
*/
/*#undef HAS_ODBM /**/

/* HAS_OPEN3
* This manifest constant lets the C program know that the three
Expand Down Expand Up @@ -391,30 +348,6 @@
*/
#define HAS_SELECT /**/

/* HAS_SEM
* This symbol, if defined, indicates that the entire sem*(2) library is
* supported.
*/
/*#undef HAS_SEM /**/

/* HAS_SEMCTL
* This symbol, if defined, indicates that the semctl() routine is
* available to control semaphores.
*/
/*#undef HAS_SEMCTL /**/

/* HAS_SEMGET
* This symbol, if defined, indicates that the semget() routine is
* available to get semaphores ids.
*/
/*#undef HAS_SEMGET /**/

/* HAS_SEMOP
* This symbol, if defined, indicates that the semop() routine is
* available to perform semaphore operations.
*/
/*#undef HAS_SEMOP /**/

/* HAS_SETEGID
* This symbol, if defined, indicates that the setegid routine is available
* to change the effective gid of the current program.
Expand All @@ -437,7 +370,6 @@
* This symbol, if defined, indicates that the setpgrp2() (as in DG/UX)
* routine is available to set the current process group.
*/
/*#undef HAS_SETPGRP2 /**/

/* HAS_SETPRIORITY
* This symbol, if defined, indicates that the setpriority() routine is
Expand All @@ -455,7 +387,6 @@
* program.
*/
#define HAS_SETREGID /**/
/*#undef HAS_SETRESGID /**/

/* HAS_SETREUID
* This symbol, if defined, indicates that the setreuid routine is
Expand All @@ -467,7 +398,6 @@
* program.
*/
#define HAS_SETREUID /**/
/*#undef HAS_SETRESUID /**/

/* HAS_SETRGID
* This symbol, if defined, indicates that the setrgid routine is available
Expand All @@ -481,41 +411,6 @@
*/
#define HAS_SETRUID /**/

/* HAS_SHM
* This symbol, if defined, indicates that the entire shm*(2) library is
* supported.
*/
/*#undef HAS_SHM /**/

/* HAS_SHMAT
* This symbol, if defined, indicates that the shmat() routine is
* available to attach a shared memory segment.
*/
/* VOID_SHMAT
* This symbol, if defined, indicates that the shmat() routine
* returns a pointer of type void*.
*/
/*#undef HAS_SHMAT /**/

/*#undef VOIDSHMAT /**/

/* HAS_SHMCTL
* This symbol, if defined, indicates that the shmctl() routine is
* available to control a shared memory segment.
*/
/*#undef HAS_SHMCTL /**/

/* HAS_SHMDT
* This symbol, if defined, indicates that the shmdt() routine is
* available to detach a shared memory segment.
*/
/*#undef HAS_SHMDT /**/

/* HAS_SHMGET
* This symbol, if defined, indicates that the shmget() routine is
* available to get a shared memory segment id.
*/
/*#undef HAS_SHMGET /**/

/* HAS_SOCKET
* This symbol, if defined, indicates that the BSD socket interface is
Expand All @@ -533,7 +428,6 @@

#define HAS_SOCKETPAIR /**/

/*#undef OLDSOCKET /**/

/* STATBLOCKS
* This symbol is defined if this system has a stat structure declaring
Expand All @@ -545,7 +439,6 @@
* This symbol is defined if this system has a FILE structure declaring
* _ptr and _cnt in stdio.h.
*/
/*#undef STDSTDIO /**/

/* STRUCTCOPY
* This symbol, if defined, indicates that this C compiler knows how
Expand Down Expand Up @@ -622,7 +515,6 @@
* symbol.
*/
#define HAS_VPRINTF /**/
/*#undef CHARVSPRINTF /**/

/* HAS_WAIT4
* This symbol, if defined, indicates that wait4() exists.
Expand All @@ -644,18 +536,16 @@
* This symbol has a value like gid_t, int, ushort, or whatever type is
* used in the return value of getgroups().
*/
#define GROUPSTYPE int /**/
#define GROUPSTYPE gid_t /**/

/* I_FCNTL
* This manifest constant tells the C program to include <fcntl.h>.
*/
/*#undef I_FCNTL /**/

/* I_GDBM
* This symbol, if defined, indicates that gdbm.h exists and should
* be included.
*/
/*#undef I_GDBM /**/

/* I_GRP
* This symbol, if defined, indicates to the C program that it should
Expand All @@ -672,7 +562,6 @@
* include sys/in.h.
*/
#define I_NETINET_IN /**/
/*#undef I_SYS_IN /**/

/* I_PWD
* This symbol, if defined, indicates to the C program that it should
Expand Down Expand Up @@ -703,12 +592,9 @@
* contains pw_comment.
*/
#define I_PWD /**/
/*#undef PWQUOTA /**/
/*#undef PWAGE /**/
#define PWCHANGE /**/
#define PWCLASS /**/
#define PWEXPIRE /**/
/*#undef PWCOMMENT /**/

/* I_SYS_FILE
* This manifest constant tells the C program to include <sys/file.h>.
Expand All @@ -734,10 +620,7 @@
/* I_SYS_SELECT
* This symbol is defined if the program should include <sys/select.h>.
*/
/*#undef I_TIME /**/
#define I_SYS_TIME /**/
/*#undef SYSTIMEKERNEL /**/
/*#undef I_SYS_SELECT /**/

/* I_UTIME
* This symbol, if defined, indicates to the C program that it should
Expand All @@ -755,7 +638,6 @@
* This symbol, if defined, indicates to the C program that it should
* include vfork.h.
*/
/*#undef I_VFORK /**/

/* INTSIZE
* This symbol contains the size of an int, so that the C preprocessor
Expand Down Expand Up @@ -789,11 +671,6 @@
* you need to do strlen() on the d_name field.
*/
#define I_DIRENT /**/
/*#undef I_SYS_DIR /**/
/*#undef I_NDIR /**/
/*#undef I_SYS_NDIR /**/
/*#undef I_MY_DIR /**/
/*#undef DIRNAMLEN /**/

/* MYMALLOC
* This symbol, if defined, indicates that we're using our own malloc.
Expand Down
11 changes: 7 additions & 4 deletions gnu/usr.bin/perl/perl/consarg.c
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
/* $RCSfile: consarg.c,v $$Revision: 1.1.1.1 $$Date: 1993/08/23 21:29:35 $
/* $RCSfile: consarg.c,v $$Revision: 1.1.1.1 $$Date: 1994/09/10 06:27:32 $
*
* Copyright (c) 1991, Larry Wall
*
* You may distribute under the terms of either the GNU General Public
* License or the Artistic License, as specified in the README file.
*
* $Log: consarg.c,v $
* Revision 1.1.1.1 1994/09/10 06:27:32 gclarkii
* Initial import of Perl 4.046 bmaked
*
* Revision 1.1.1.1 1993/08/23 21:29:35 nate
* PERL!
*
Expand Down Expand Up @@ -707,8 +710,8 @@ register ARG *arg;
if (nothing_in_common(arg1,arg2))
arg->arg_flags &= ~AF_COMMON;
if (arg->arg_type == O_ASSIGN) {
if (arg1->arg_flags & AF_LOCAL)
arg->arg_flags |= AF_LOCAL;
if (arg1->arg_flags & AF_LOCAL_XX)
arg->arg_flags |= AF_LOCAL_XX;
arg[1].arg_flags |= AF_ARYOK;
arg[2].arg_flags |= AF_ARYOK;
}
Expand Down Expand Up @@ -1058,7 +1061,7 @@ ARG *
localize(arg)
ARG *arg;
{
arg->arg_flags |= AF_LOCAL;
arg->arg_flags |= AF_LOCAL_XX;
return arg;
}

Expand Down
7 changes: 5 additions & 2 deletions gnu/usr.bin/perl/perl/doarg.c
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
/* $RCSfile: doarg.c,v $$Revision: 1.1.1.1 $$Date: 1993/08/23 21:29:35 $
/* $RCSfile: doarg.c,v $$Revision: 1.1.1.1 $$Date: 1994/09/10 06:27:32 $
*
* Copyright (c) 1991, Larry Wall
*
* You may distribute under the terms of either the GNU General Public
* License or the Artistic License, as specified in the README file.
*
* $Log: doarg.c,v $
* Revision 1.1.1.1 1994/09/10 06:27:32 gclarkii
* Initial import of Perl 4.046 bmaked
*
* Revision 1.1.1.1 1993/08/23 21:29:35 nate
* PERL!
*
Expand Down Expand Up @@ -1201,7 +1204,7 @@ int *arglast;
HASH *hash;
int i;

makelocal = (arg->arg_flags & AF_LOCAL) != 0;
makelocal = (arg->arg_flags & AF_LOCAL_XX) != 0;
localizing = makelocal;
delaymagic = DM_DELAY; /* catch simultaneous items */

Expand Down
Loading

0 comments on commit 5ada09a

Please sign in to comment.