changeset 490:a54a07015253

*** empty log message ***
author Jim Blandy <jimb@redhat.com>
date Tue, 14 Jan 1992 07:14:12 +0000
parents 3d2d0362a496
children 77c38d1bc8a8
files src/config.in src/data.c src/s/usg5-3.h
diffstat 3 files changed, 34 insertions(+), 24 deletions(-) [+]
line wrap: on
line diff
--- a/src/config.in	Tue Jan 14 04:41:51 1992 +0000
+++ b/src/config.in	Tue Jan 14 07:14:12 1992 +0000
@@ -25,14 +25,14 @@
    See the file ../share-lib/MACHINES for a list of systems and
    the names of the s- files to use for them.
    See s-template.h for documentation on writing s- files.  */
-#include "opsystem.h"
+#include "@opsystem@"
 
 /* The configuration script links machine.h to a m- file that
    describes the machine and system you use.
    See the file ../share-lib/MACHINES for a list of machines and
    the names of the m- files to use for them.
    See m-template.h for info on what m- files should define.  */
-#include "machine.h"
+#include "@machine@"
 
 /* Load in the conversion definitions if this system
    needs them and the source file being compiled has not
@@ -105,12 +105,6 @@
 /* #define HIGHPRI */
 #endif
 
-/* support `getenv' and `setenv' in Emacs (unix only) */
-
-#ifndef MAINTAIN_ENVIRONMENT
-/* #define MAINTAIN_ENVIRONMENT */
-#endif
-
 /* Define LISP_FLOAT_TYPE if you want emacs to support floating-point
    numbers. */
 
@@ -170,3 +164,13 @@
 #else
 #define GLYPH unsigned char
 #endif
+
+/* Define the return type of signal handlers if the s-xxx file
+   did not already do so.  */
+#ifndef SIGTYPE
+#ifdef __STDC__
+#define SIGTYPE void
+#else
+#define SIGTYPE int
+#endif
+#endif
--- a/src/data.c	Tue Jan 14 04:41:51 1992 +0000
+++ b/src/data.c	Tue Jan 14 07:14:12 1992 +0000
@@ -73,7 +73,7 @@
       value = Fsignal (Qwrong_type_argument, Fcons (predicate, Fcons (value, Qnil)));
       tem = call1 (predicate, value);
     }
-  while (NULL (tem));
+  while (NILP (tem));
   return value;
 }
 
@@ -140,7 +140,7 @@
   (obj)
      Lisp_Object obj;
 {
-  if (NULL (obj))
+  if (NILP (obj))
     return Qt;
   return Qnil;
 }
@@ -167,7 +167,7 @@
   (obj)
      Lisp_Object obj;
 {
-  if (XTYPE (obj) == Lisp_Cons || NULL (obj))
+  if (XTYPE (obj) == Lisp_Cons || NILP (obj))
     return Qt;
   return Qnil;
 }
@@ -176,7 +176,7 @@
   (obj)
      Lisp_Object obj;
 {
-  if (XTYPE (obj) == Lisp_Cons || NULL (obj))
+  if (XTYPE (obj) == Lisp_Cons || NILP (obj))
     return Qnil;
   return Qt;
 }
@@ -222,7 +222,7 @@
   (obj)
      register Lisp_Object obj;
 {
-  if (CONSP (obj) || NULL (obj) ||
+  if (CONSP (obj) || NILP (obj) ||
       XTYPE (obj) == Lisp_Vector || XTYPE (obj) == Lisp_String)
     return Qt;
   return Qnil;
@@ -463,7 +463,7 @@
      register Lisp_Object sym;
 {
   CHECK_SYMBOL (sym, 0);
-  if (NULL (sym) || EQ (sym, Qt))
+  if (NILP (sym) || EQ (sym, Qt))
     return Fsignal (Qsetting_constant, Fcons (sym, Qnil));
   Fset (sym, Qunbound);
   return sym;
@@ -514,7 +514,7 @@
      register Lisp_Object sym, newdef;
 {
   CHECK_SYMBOL (sym, 0);
-  if (!NULL (Vautoload_queue) && !EQ (XSYMBOL (sym)->function, Qunbound))
+  if (!NILP (Vautoload_queue) && !EQ (XSYMBOL (sym)->function, Qunbound))
     Vautoload_queue = Fcons (Fcons (sym, XSYMBOL (sym)->function),
 			     Vautoload_queue);
   XSYMBOL (sym)->function = newdef;
@@ -589,7 +589,7 @@
       break;
 
     case Lisp_Boolfwd:
-      *XINTPTR (valcontents) = NULL(newval) ? 0 : 1;
+      *XINTPTR (valcontents) = NILP(newval) ? 0 : 1;
       break;
 
     case Lisp_Objfwd:
@@ -635,12 +635,12 @@
   register Lisp_Object tem1;
   tem1 = XCONS (XCONS (valcontents)->cdr)->car;
 
-  if (NULL (tem1) || current_buffer != XBUFFER (tem1))
+  if (NILP (tem1) || current_buffer != XBUFFER (tem1))
     {
       tem1 = XCONS (XCONS (XCONS (valcontents)->cdr)->cdr)->car;
       Fsetcdr (tem1, do_symval_forwarding (XCONS (valcontents)->car));
       tem1 = assq_no_quit (sym, current_buffer->local_var_alist);
-      if (NULL (tem1))
+      if (NILP (tem1))
 	tem1 = XCONS (XCONS (valcontents)->cdr)->cdr;
       XCONS (XCONS (XCONS (valcontents)->cdr)->cdr)->car = tem1;
       XSET (XCONS (XCONS (valcontents)->cdr)->car, Lisp_Buffer, current_buffer);
@@ -716,7 +716,7 @@
 #endif /* RTPC_REGISTER_BUG */
 
   CHECK_SYMBOL (sym, 0);
-  if (NULL (sym) || EQ (sym, Qt))
+  if (NILP (sym) || EQ (sym, Qt))
     return Fsignal (Qsetting_constant, Fcons (sym, Qnil));
   valcontents = XSYMBOL (sym)->value;
 
@@ -753,7 +753,7 @@
           Fsetcdr (current_alist_element, do_symval_forwarding (XCONS (valcontents)->car));
 
 	  tem1 = Fassq (sym, current_buffer->local_var_alist);
-	  if (NULL (tem1))
+	  if (NILP (tem1))
 	    /* This buffer sees the default value still.
 	       If type is Lisp_Some_Buffer_Local_Value, set the default value.
 	       If type is Lisp_Buffer_Local_Value, give this buffer a local value
@@ -917,7 +917,7 @@
   register Lisp_Object val, sym;
   struct gcpro gcpro1;
 
-  if (NULL (args))
+  if (NILP (args))
     return Qnil;
 
   args_left = args;
@@ -930,7 +930,7 @@
       Fset_default (sym, val);
       args_left = Fcdr (Fcdr (args_left));
     }
-  while (!NULL (args_left));
+  while (!NILP (args_left));
 
   UNGCPRO;
   return val;
@@ -1014,7 +1014,7 @@
     }
   /* Make sure this buffer has its own value of sym */
   tem = Fassq (sym, current_buffer->local_var_alist);
-  if (NULL (tem))
+  if (NILP (tem))
     {
       current_buffer->local_var_alist
         = Fcons (Fcons (sym, XCONS (XCONS (XCONS (XSYMBOL (sym)->value)->cdr)->cdr)->cdr),
@@ -1069,7 +1069,7 @@
   /* Get rid of this buffer's alist element, if any */
 
   tem = Fassq (sym, current_buffer->local_var_alist);
-  if (!NULL (tem))
+  if (!NILP (tem))
     current_buffer->local_var_alist = Fdelq (tem, current_buffer->local_var_alist);
 
   /* Make sure symbol does not think it is set up for this buffer;
@@ -1933,6 +1933,7 @@
   defsubr (&Slognot);
 }
 
+SIGTYPE
 arith_error (signo)
      int signo;
 {
--- a/src/s/usg5-3.h	Tue Jan 14 04:41:51 1992 +0000
+++ b/src/s/usg5-3.h	Tue Jan 14 07:14:12 1992 +0000
@@ -213,3 +213,8 @@
 /* Enable support for shared libraries in unexec.  */
 
 #define USG_SHARED_LIBRARIES
+
+/* On USG systems signal handlers return void */
+
+#define SIGTYPE void
+