diff options
| author | Jim Blandy | 1991-08-07 03:35:25 +0000 |
|---|---|---|
| committer | Jim Blandy | 1991-08-07 03:35:25 +0000 |
| commit | 7b15897ad58f71c56cc0916b843444b23d74cd45 (patch) | |
| tree | f43600594a7f851789148209f0b05b1d9a4a7144 /src | |
| parent | 67b6108594eca8a8d70050d42ba2fb7a3dc1fc4b (diff) | |
| download | emacs-7b15897ad58f71c56cc0916b843444b23d74cd45.tar.gz emacs-7b15897ad58f71c56cc0916b843444b23d74cd45.zip | |
*** empty log message ***
Diffstat (limited to 'src')
| -rw-r--r-- | src/lisp.h | 40 |
1 files changed, 7 insertions, 33 deletions
diff --git a/src/lisp.h b/src/lisp.h index 6dfc06ba0cb..1dfc65a6df8 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -583,35 +583,6 @@ typedef unsigned char UCHAR; | |||
| 583 | #define XFLOATINT(n) XINT((n)) | 583 | #define XFLOATINT(n) XINT((n)) |
| 584 | #endif /* LISP_FLOAT_TYPE */ | 584 | #endif /* LISP_FLOAT_TYPE */ |
| 585 | 585 | ||
| 586 | #ifdef VIRT_ADDR_VARIES | ||
| 587 | |||
| 588 | /* For machines like APOLLO where text and data can go anywhere | ||
| 589 | in virtual memory. */ | ||
| 590 | #define CHECK_IMPURE(obj) \ | ||
| 591 | { extern int pure[]; \ | ||
| 592 | if ((PNTR_COMPARISON_TYPE) XPNTR (obj) < (PNTR_COMPARISON_TYPE) ((char *) pure + PURESIZE) \ | ||
| 593 | && (PNTR_COMPARISON_TYPE) XPNTR (obj) >= (PNTR_COMPARISON_TYPE) pure) \ | ||
| 594 | pure_write_error (); } | ||
| 595 | |||
| 596 | #else /* not VIRT_ADDR_VARIES */ | ||
| 597 | #ifdef PNTR_COMPARISON_TYPE | ||
| 598 | |||
| 599 | /* when PNTR_COMPARISON_TYPE is not the default (unsigned int) */ | ||
| 600 | #define CHECK_IMPURE(obj) \ | ||
| 601 | { extern int my_edata; \ | ||
| 602 | if ((PNTR_COMPARISON_TYPE) XPNTR (obj) < (PNTR_COMPARISON_TYPE) &my_edata) \ | ||
| 603 | pure_write_error (); } | ||
| 604 | |||
| 605 | #else /* not VIRT_ADDRESS_VARIES, not PNTR_COMPARISON_TYPE */ | ||
| 606 | |||
| 607 | #define CHECK_IMPURE(obj) \ | ||
| 608 | { extern int my_edata; \ | ||
| 609 | if (XPNTR (obj) < (unsigned int) &my_edata) \ | ||
| 610 | pure_write_error (); } | ||
| 611 | |||
| 612 | #endif /* PNTR_COMPARISON_TYPE */ | ||
| 613 | #endif /* VIRT_ADDRESS_VARIES */ | ||
| 614 | |||
| 615 | /* Cast pointers to this type to compare them. Some machines want int. */ | 586 | /* Cast pointers to this type to compare them. Some machines want int. */ |
| 616 | #ifndef PNTR_COMPARISON_TYPE | 587 | #ifndef PNTR_COMPARISON_TYPE |
| 617 | #define PNTR_COMPARISON_TYPE unsigned int | 588 | #define PNTR_COMPARISON_TYPE unsigned int |
| @@ -736,12 +707,14 @@ extern char *stack_bottom; | |||
| 736 | 707 | ||
| 737 | /* 1 if CH is upper case. */ | 708 | /* 1 if CH is upper case. */ |
| 738 | 709 | ||
| 739 | #define UPPERCASEP(CH) (XSTRING (current_buffer->downcase_table)->data[CH] != (CH)) | 710 | #define UPPERCASEP(CH) \ |
| 711 | (XSTRING (current_buffer->downcase_table)->data[CH] != (CH)) | ||
| 740 | 712 | ||
| 741 | /* 1 if CH is lower case. */ | 713 | /* 1 if CH is lower case. */ |
| 742 | 714 | ||
| 743 | #define LOWERCASEP(CH) \ | 715 | #define LOWERCASEP(CH) \ |
| 744 | (!UPPERCASEP (CH) && XSTRING (current_buffer->upcase_table)->data[CH] != (CH)) | 716 | (!UPPERCASEP (CH) \ |
| 717 | && XSTRING (current_buffer->upcase_table)->data[CH] != (CH)) | ||
| 745 | 718 | ||
| 746 | /* 1 if CH is neither upper nor lower case. */ | 719 | /* 1 if CH is neither upper nor lower case. */ |
| 747 | 720 | ||
| @@ -749,8 +722,9 @@ extern char *stack_bottom; | |||
| 749 | 722 | ||
| 750 | /* Upcase a character, or make no change if that cannot be done. */ | 723 | /* Upcase a character, or make no change if that cannot be done. */ |
| 751 | 724 | ||
| 752 | #define UPCASE(CH) (XSTRING (current_buffer->downcase_table)->data[CH] == (CH) \ | 725 | #define UPCASE(CH) \ |
| 753 | ? UPCASE1 (CH) : (CH)) | 726 | (XSTRING (current_buffer->downcase_table)->data[CH] == (CH) \ |
| 727 | ? UPCASE1 (CH) : (CH)) | ||
| 754 | 728 | ||
| 755 | /* Upcase a character known to be not upper case. */ | 729 | /* Upcase a character known to be not upper case. */ |
| 756 | 730 | ||