diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/config.in | 20 | ||||
| -rw-r--r-- | src/data.c | 33 | ||||
| -rw-r--r-- | src/s/usg5-3.h | 5 |
3 files changed, 34 insertions, 24 deletions
diff --git a/src/config.in b/src/config.in index 37fd3dfd465..8ce2a9a0318 100644 --- a/src/config.in +++ b/src/config.in | |||
| @@ -25,14 +25,14 @@ and this notice must be preserved on all copies. */ | |||
| 25 | See the file ../share-lib/MACHINES for a list of systems and | 25 | See the file ../share-lib/MACHINES for a list of systems and |
| 26 | the names of the s- files to use for them. | 26 | the names of the s- files to use for them. |
| 27 | See s-template.h for documentation on writing s- files. */ | 27 | See s-template.h for documentation on writing s- files. */ |
| 28 | #include "opsystem.h" | 28 | #include "@opsystem@" |
| 29 | 29 | ||
| 30 | /* The configuration script links machine.h to a m- file that | 30 | /* The configuration script links machine.h to a m- file that |
| 31 | describes the machine and system you use. | 31 | describes the machine and system you use. |
| 32 | See the file ../share-lib/MACHINES for a list of machines and | 32 | See the file ../share-lib/MACHINES for a list of machines and |
| 33 | the names of the m- files to use for them. | 33 | the names of the m- files to use for them. |
| 34 | See m-template.h for info on what m- files should define. */ | 34 | See m-template.h for info on what m- files should define. */ |
| 35 | #include "machine.h" | 35 | #include "@machine@" |
| 36 | 36 | ||
| 37 | /* Load in the conversion definitions if this system | 37 | /* Load in the conversion definitions if this system |
| 38 | needs them and the source file being compiled has not | 38 | needs them and the source file being compiled has not |
| @@ -105,12 +105,6 @@ and this notice must be preserved on all copies. */ | |||
| 105 | /* #define HIGHPRI */ | 105 | /* #define HIGHPRI */ |
| 106 | #endif | 106 | #endif |
| 107 | 107 | ||
| 108 | /* support `getenv' and `setenv' in Emacs (unix only) */ | ||
| 109 | |||
| 110 | #ifndef MAINTAIN_ENVIRONMENT | ||
| 111 | /* #define MAINTAIN_ENVIRONMENT */ | ||
| 112 | #endif | ||
| 113 | |||
| 114 | /* Define LISP_FLOAT_TYPE if you want emacs to support floating-point | 108 | /* Define LISP_FLOAT_TYPE if you want emacs to support floating-point |
| 115 | numbers. */ | 109 | numbers. */ |
| 116 | 110 | ||
| @@ -170,3 +164,13 @@ and this notice must be preserved on all copies. */ | |||
| 170 | #else | 164 | #else |
| 171 | #define GLYPH unsigned char | 165 | #define GLYPH unsigned char |
| 172 | #endif | 166 | #endif |
| 167 | |||
| 168 | /* Define the return type of signal handlers if the s-xxx file | ||
| 169 | did not already do so. */ | ||
| 170 | #ifndef SIGTYPE | ||
| 171 | #ifdef __STDC__ | ||
| 172 | #define SIGTYPE void | ||
| 173 | #else | ||
| 174 | #define SIGTYPE int | ||
| 175 | #endif | ||
| 176 | #endif | ||
diff --git a/src/data.c b/src/data.c index dba7d254aeb..184cfba3a32 100644 --- a/src/data.c +++ b/src/data.c | |||
| @@ -73,7 +73,7 @@ wrong_type_argument (predicate, value) | |||
| 73 | value = Fsignal (Qwrong_type_argument, Fcons (predicate, Fcons (value, Qnil))); | 73 | value = Fsignal (Qwrong_type_argument, Fcons (predicate, Fcons (value, Qnil))); |
| 74 | tem = call1 (predicate, value); | 74 | tem = call1 (predicate, value); |
| 75 | } | 75 | } |
| 76 | while (NULL (tem)); | 76 | while (NILP (tem)); |
| 77 | return value; | 77 | return value; |
| 78 | } | 78 | } |
| 79 | 79 | ||
| @@ -140,7 +140,7 @@ DEFUN ("null", Fnull, Snull, 1, 1, 0, "T if OBJECT is nil.") | |||
| 140 | (obj) | 140 | (obj) |
| 141 | Lisp_Object obj; | 141 | Lisp_Object obj; |
| 142 | { | 142 | { |
| 143 | if (NULL (obj)) | 143 | if (NILP (obj)) |
| 144 | return Qt; | 144 | return Qt; |
| 145 | return Qnil; | 145 | return Qnil; |
| 146 | } | 146 | } |
| @@ -167,7 +167,7 @@ DEFUN ("listp", Flistp, Slistp, 1, 1, 0, "T if OBJECT is a list. This includes | |||
| 167 | (obj) | 167 | (obj) |
| 168 | Lisp_Object obj; | 168 | Lisp_Object obj; |
| 169 | { | 169 | { |
| 170 | if (XTYPE (obj) == Lisp_Cons || NULL (obj)) | 170 | if (XTYPE (obj) == Lisp_Cons || NILP (obj)) |
| 171 | return Qt; | 171 | return Qt; |
| 172 | return Qnil; | 172 | return Qnil; |
| 173 | } | 173 | } |
| @@ -176,7 +176,7 @@ DEFUN ("nlistp", Fnlistp, Snlistp, 1, 1, 0, "T if OBJECT is not a list. Lists i | |||
| 176 | (obj) | 176 | (obj) |
| 177 | Lisp_Object obj; | 177 | Lisp_Object obj; |
| 178 | { | 178 | { |
| 179 | if (XTYPE (obj) == Lisp_Cons || NULL (obj)) | 179 | if (XTYPE (obj) == Lisp_Cons || NILP (obj)) |
| 180 | return Qnil; | 180 | return Qnil; |
| 181 | return Qt; | 181 | return Qt; |
| 182 | } | 182 | } |
| @@ -222,7 +222,7 @@ DEFUN ("sequencep", Fsequencep, Ssequencep, 1, 1, 0, | |||
| 222 | (obj) | 222 | (obj) |
| 223 | register Lisp_Object obj; | 223 | register Lisp_Object obj; |
| 224 | { | 224 | { |
| 225 | if (CONSP (obj) || NULL (obj) || | 225 | if (CONSP (obj) || NILP (obj) || |
| 226 | XTYPE (obj) == Lisp_Vector || XTYPE (obj) == Lisp_String) | 226 | XTYPE (obj) == Lisp_Vector || XTYPE (obj) == Lisp_String) |
| 227 | return Qt; | 227 | return Qt; |
| 228 | return Qnil; | 228 | return Qnil; |
| @@ -463,7 +463,7 @@ DEFUN ("makunbound", Fmakunbound, Smakunbound, 1, 1, 0, "Make SYMBOL's value be | |||
| 463 | register Lisp_Object sym; | 463 | register Lisp_Object sym; |
| 464 | { | 464 | { |
| 465 | CHECK_SYMBOL (sym, 0); | 465 | CHECK_SYMBOL (sym, 0); |
| 466 | if (NULL (sym) || EQ (sym, Qt)) | 466 | if (NILP (sym) || EQ (sym, Qt)) |
| 467 | return Fsignal (Qsetting_constant, Fcons (sym, Qnil)); | 467 | return Fsignal (Qsetting_constant, Fcons (sym, Qnil)); |
| 468 | Fset (sym, Qunbound); | 468 | Fset (sym, Qunbound); |
| 469 | return sym; | 469 | return sym; |
| @@ -514,7 +514,7 @@ DEFUN ("fset", Ffset, Sfset, 2, 2, 0, | |||
| 514 | register Lisp_Object sym, newdef; | 514 | register Lisp_Object sym, newdef; |
| 515 | { | 515 | { |
| 516 | CHECK_SYMBOL (sym, 0); | 516 | CHECK_SYMBOL (sym, 0); |
| 517 | if (!NULL (Vautoload_queue) && !EQ (XSYMBOL (sym)->function, Qunbound)) | 517 | if (!NILP (Vautoload_queue) && !EQ (XSYMBOL (sym)->function, Qunbound)) |
| 518 | Vautoload_queue = Fcons (Fcons (sym, XSYMBOL (sym)->function), | 518 | Vautoload_queue = Fcons (Fcons (sym, XSYMBOL (sym)->function), |
| 519 | Vautoload_queue); | 519 | Vautoload_queue); |
| 520 | XSYMBOL (sym)->function = newdef; | 520 | XSYMBOL (sym)->function = newdef; |
| @@ -589,7 +589,7 @@ store_symval_forwarding (sym, valcontents, newval) | |||
| 589 | break; | 589 | break; |
| 590 | 590 | ||
| 591 | case Lisp_Boolfwd: | 591 | case Lisp_Boolfwd: |
| 592 | *XINTPTR (valcontents) = NULL(newval) ? 0 : 1; | 592 | *XINTPTR (valcontents) = NILP(newval) ? 0 : 1; |
| 593 | break; | 593 | break; |
| 594 | 594 | ||
| 595 | case Lisp_Objfwd: | 595 | case Lisp_Objfwd: |
| @@ -635,12 +635,12 @@ swap_in_symval_forwarding (sym, valcontents) | |||
| 635 | register Lisp_Object tem1; | 635 | register Lisp_Object tem1; |
| 636 | tem1 = XCONS (XCONS (valcontents)->cdr)->car; | 636 | tem1 = XCONS (XCONS (valcontents)->cdr)->car; |
| 637 | 637 | ||
| 638 | if (NULL (tem1) || current_buffer != XBUFFER (tem1)) | 638 | if (NILP (tem1) || current_buffer != XBUFFER (tem1)) |
| 639 | { | 639 | { |
| 640 | tem1 = XCONS (XCONS (XCONS (valcontents)->cdr)->cdr)->car; | 640 | tem1 = XCONS (XCONS (XCONS (valcontents)->cdr)->cdr)->car; |
| 641 | Fsetcdr (tem1, do_symval_forwarding (XCONS (valcontents)->car)); | 641 | Fsetcdr (tem1, do_symval_forwarding (XCONS (valcontents)->car)); |
| 642 | tem1 = assq_no_quit (sym, current_buffer->local_var_alist); | 642 | tem1 = assq_no_quit (sym, current_buffer->local_var_alist); |
| 643 | if (NULL (tem1)) | 643 | if (NILP (tem1)) |
| 644 | tem1 = XCONS (XCONS (valcontents)->cdr)->cdr; | 644 | tem1 = XCONS (XCONS (valcontents)->cdr)->cdr; |
| 645 | XCONS (XCONS (XCONS (valcontents)->cdr)->cdr)->car = tem1; | 645 | XCONS (XCONS (XCONS (valcontents)->cdr)->cdr)->car = tem1; |
| 646 | XSET (XCONS (XCONS (valcontents)->cdr)->car, Lisp_Buffer, current_buffer); | 646 | XSET (XCONS (XCONS (valcontents)->cdr)->car, Lisp_Buffer, current_buffer); |
| @@ -716,7 +716,7 @@ DEFUN ("set", Fset, Sset, 2, 2, 0, | |||
| 716 | #endif /* RTPC_REGISTER_BUG */ | 716 | #endif /* RTPC_REGISTER_BUG */ |
| 717 | 717 | ||
| 718 | CHECK_SYMBOL (sym, 0); | 718 | CHECK_SYMBOL (sym, 0); |
| 719 | if (NULL (sym) || EQ (sym, Qt)) | 719 | if (NILP (sym) || EQ (sym, Qt)) |
| 720 | return Fsignal (Qsetting_constant, Fcons (sym, Qnil)); | 720 | return Fsignal (Qsetting_constant, Fcons (sym, Qnil)); |
| 721 | valcontents = XSYMBOL (sym)->value; | 721 | valcontents = XSYMBOL (sym)->value; |
| 722 | 722 | ||
| @@ -753,7 +753,7 @@ DEFUN ("set", Fset, Sset, 2, 2, 0, | |||
| 753 | Fsetcdr (current_alist_element, do_symval_forwarding (XCONS (valcontents)->car)); | 753 | Fsetcdr (current_alist_element, do_symval_forwarding (XCONS (valcontents)->car)); |
| 754 | 754 | ||
| 755 | tem1 = Fassq (sym, current_buffer->local_var_alist); | 755 | tem1 = Fassq (sym, current_buffer->local_var_alist); |
| 756 | if (NULL (tem1)) | 756 | if (NILP (tem1)) |
| 757 | /* This buffer sees the default value still. | 757 | /* This buffer sees the default value still. |
| 758 | If type is Lisp_Some_Buffer_Local_Value, set the default value. | 758 | If type is Lisp_Some_Buffer_Local_Value, set the default value. |
| 759 | If type is Lisp_Buffer_Local_Value, give this buffer a local value | 759 | If type is Lisp_Buffer_Local_Value, give this buffer a local value |
| @@ -917,7 +917,7 @@ not have their own values for this variable.") | |||
| 917 | register Lisp_Object val, sym; | 917 | register Lisp_Object val, sym; |
| 918 | struct gcpro gcpro1; | 918 | struct gcpro gcpro1; |
| 919 | 919 | ||
| 920 | if (NULL (args)) | 920 | if (NILP (args)) |
| 921 | return Qnil; | 921 | return Qnil; |
| 922 | 922 | ||
| 923 | args_left = args; | 923 | args_left = args; |
| @@ -930,7 +930,7 @@ not have their own values for this variable.") | |||
| 930 | Fset_default (sym, val); | 930 | Fset_default (sym, val); |
| 931 | args_left = Fcdr (Fcdr (args_left)); | 931 | args_left = Fcdr (Fcdr (args_left)); |
| 932 | } | 932 | } |
| 933 | while (!NULL (args_left)); | 933 | while (!NILP (args_left)); |
| 934 | 934 | ||
| 935 | UNGCPRO; | 935 | UNGCPRO; |
| 936 | return val; | 936 | return val; |
| @@ -1014,7 +1014,7 @@ just as if the variable were set.") | |||
| 1014 | } | 1014 | } |
| 1015 | /* Make sure this buffer has its own value of sym */ | 1015 | /* Make sure this buffer has its own value of sym */ |
| 1016 | tem = Fassq (sym, current_buffer->local_var_alist); | 1016 | tem = Fassq (sym, current_buffer->local_var_alist); |
| 1017 | if (NULL (tem)) | 1017 | if (NILP (tem)) |
| 1018 | { | 1018 | { |
| 1019 | current_buffer->local_var_alist | 1019 | current_buffer->local_var_alist |
| 1020 | = Fcons (Fcons (sym, XCONS (XCONS (XCONS (XSYMBOL (sym)->value)->cdr)->cdr)->cdr), | 1020 | = Fcons (Fcons (sym, XCONS (XCONS (XCONS (XSYMBOL (sym)->value)->cdr)->cdr)->cdr), |
| @@ -1069,7 +1069,7 @@ From now on the default value will apply in this buffer.") | |||
| 1069 | /* Get rid of this buffer's alist element, if any */ | 1069 | /* Get rid of this buffer's alist element, if any */ |
| 1070 | 1070 | ||
| 1071 | tem = Fassq (sym, current_buffer->local_var_alist); | 1071 | tem = Fassq (sym, current_buffer->local_var_alist); |
| 1072 | if (!NULL (tem)) | 1072 | if (!NILP (tem)) |
| 1073 | current_buffer->local_var_alist = Fdelq (tem, current_buffer->local_var_alist); | 1073 | current_buffer->local_var_alist = Fdelq (tem, current_buffer->local_var_alist); |
| 1074 | 1074 | ||
| 1075 | /* Make sure symbol does not think it is set up for this buffer; | 1075 | /* Make sure symbol does not think it is set up for this buffer; |
| @@ -1933,6 +1933,7 @@ syms_of_data () | |||
| 1933 | defsubr (&Slognot); | 1933 | defsubr (&Slognot); |
| 1934 | } | 1934 | } |
| 1935 | 1935 | ||
| 1936 | SIGTYPE | ||
| 1936 | arith_error (signo) | 1937 | arith_error (signo) |
| 1937 | int signo; | 1938 | int signo; |
| 1938 | { | 1939 | { |
diff --git a/src/s/usg5-3.h b/src/s/usg5-3.h index c54ec479e65..e098cfcd74f 100644 --- a/src/s/usg5-3.h +++ b/src/s/usg5-3.h | |||
| @@ -213,3 +213,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |||
| 213 | /* Enable support for shared libraries in unexec. */ | 213 | /* Enable support for shared libraries in unexec. */ |
| 214 | 214 | ||
| 215 | #define USG_SHARED_LIBRARIES | 215 | #define USG_SHARED_LIBRARIES |
| 216 | |||
| 217 | /* On USG systems signal handlers return void */ | ||
| 218 | |||
| 219 | #define SIGTYPE void | ||
| 220 | |||