comparison src/lisp.h @ 493:8b101799ff37

*** empty log message ***
author Jim Blandy <jimb@redhat.com>
date Tue, 14 Jan 1992 08:05:08 +0000
parents 350065270fc8
children ccadad491483
comparison
equal deleted inserted replaced
492:7d92947cce7d 493:8b101799ff37
507 /* Data type checking */ 507 /* Data type checking */
508 508
509 #ifdef NULL 509 #ifdef NULL
510 #undef NULL 510 #undef NULL
511 #endif 511 #endif
512 #define NULL(x) (XFASTINT (x) == XFASTINT (Qnil)) 512 #define NILP(x) (XFASTINT (x) == XFASTINT (Qnil))
513 513
514 /* #define LISTP(x) (XTYPE ((x)) == Lisp_Cons)*/ 514 /* #define LISTP(x) (XTYPE ((x)) == Lisp_Cons)*/
515 #define CONSP(x) (XTYPE ((x)) == Lisp_Cons) 515 #define CONSP(x) (XTYPE ((x)) == Lisp_Cons)
516 #define EQ(x, y) (XFASTINT (x) == XFASTINT (y)) 516 #define EQ(x, y) (XFASTINT (x) == XFASTINT (y))
517 517
518 #define CHECK_LIST(x, i) \ 518 #define CHECK_LIST(x, i) \
519 { if ((XTYPE ((x)) != Lisp_Cons) && !NULL (x)) x = wrong_type_argument (Qlistp, (x)); } 519 { if ((XTYPE ((x)) != Lisp_Cons) && !NILP (x)) x = wrong_type_argument (Qlistp, (x)); }
520 520
521 #define CHECK_STRING(x, i) \ 521 #define CHECK_STRING(x, i) \
522 { if (XTYPE ((x)) != Lisp_String) x = wrong_type_argument (Qstringp, (x)); } 522 { if (XTYPE ((x)) != Lisp_String) x = wrong_type_argument (Qstringp, (x)); }
523 523
524 #define CHECK_CONS(x, i) \ 524 #define CHECK_CONS(x, i) \
696 extern char *stack_bottom; 696 extern char *stack_bottom;
697 697
698 /* Check quit-flag and quit if it is non-nil. */ 698 /* Check quit-flag and quit if it is non-nil. */
699 699
700 #define QUIT \ 700 #define QUIT \
701 if (!NULL (Vquit_flag) && NULL (Vinhibit_quit)) \ 701 if (!NILP (Vquit_flag) && NILP (Vinhibit_quit)) \
702 { Vquit_flag = Qnil; Fsignal (Qquit, Qnil); } 702 { Vquit_flag = Qnil; Fsignal (Qquit, Qnil); }
703 703
704 /* Nonzero if ought to quit now. */ 704 /* Nonzero if ought to quit now. */
705 705
706 #define QUITP (!NULL (Vquit_flag) && NULL (Vinhibit_quit)) 706 #define QUITP (!NILP (Vquit_flag) && NILP (Vinhibit_quit))
707 707
708 /* 1 if CH is upper case. */ 708 /* 1 if CH is upper case. */
709 709
710 #define UPPERCASEP(CH) \ 710 #define UPPERCASEP(CH) \
711 (XSTRING (current_buffer->downcase_table)->data[CH] != (CH)) 711 (XSTRING (current_buffer->downcase_table)->data[CH] != (CH))
1077 extern Lisp_Object Fprocess_status (), Fkill_process (); 1077 extern Lisp_Object Fprocess_status (), Fkill_process ();
1078 1078
1079 /* defined in callproc.c */ 1079 /* defined in callproc.c */
1080 extern Lisp_Object Vexec_path, Vexec_directory, Vdata_directory; 1080 extern Lisp_Object Vexec_path, Vexec_directory, Vdata_directory;
1081 1081
1082 #ifdef MAINTAIN_ENVIRONMENT
1083 /* defined in environ.c */
1084 extern int size_of_current_environ ();
1085 extern void get_current_environ ();
1086 /* extern void current_environ (); */
1087 extern Lisp_Object Fgetenv ();
1088 #endif /* MAINTAIN_ENVIRONMENT */
1089
1090 /* defined in doc.c */ 1082 /* defined in doc.c */
1091 extern Lisp_Object Vdoc_file_name; 1083 extern Lisp_Object Vdoc_file_name;
1092 extern Lisp_Object Fsubstitute_command_keys (); 1084 extern Lisp_Object Fsubstitute_command_keys ();
1093 extern Lisp_Object Fdocumentation (), Fdocumentation_property (); 1085 extern Lisp_Object Fdocumentation (), Fdocumentation_property ();
1094 1086
1108 extern void debugger (); 1100 extern void debugger ();
1109 1101
1110 extern char *malloc (), *realloc (), *getenv (), *ctime (), *getwd (); 1102 extern char *malloc (), *realloc (), *getenv (), *ctime (), *getwd ();
1111 extern long *xmalloc (), *xrealloc (); 1103 extern long *xmalloc (), *xrealloc ();
1112 1104
1113 #ifdef MAINTAIN_ENVIRONMENT 1105 extern char *egetenv ();
1114 extern unsigned char *egetenv ();
1115 #else
1116 #define egetenv getenv
1117 #endif