diff options
| author | Richard M. Stallman | 1997-07-04 20:44:52 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-07-04 20:44:52 +0000 |
| commit | 2e34157cd9e74150e79e0ce23236252b47fb5f1a (patch) | |
| tree | 418451da8380ec73d5d46dc648c07e6ad8af845f /src/lisp.h | |
| parent | 8c239ac3ed4f636810bc08959e1318b1a6e928ba (diff) | |
| download | emacs-2e34157cd9e74150e79e0ce23236252b47fb5f1a.tar.gz emacs-2e34157cd9e74150e79e0ce23236252b47fb5f1a.zip | |
Fix bugs with inappropriate mixing of Lisp_Object with int.
Diffstat (limited to 'src/lisp.h')
| -rw-r--r-- | src/lisp.h | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/src/lisp.h b/src/lisp.h index f104af63794..ecfc0b657c2 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -608,11 +608,11 @@ struct Lisp_Vector | |||
| 608 | and 8-bit Europeans characters. For these characters, do not check | 608 | and 8-bit Europeans characters. For these characters, do not check |
| 609 | validity of CT. Do not follow parent. */ | 609 | validity of CT. Do not follow parent. */ |
| 610 | #define CHAR_TABLE_REF(CT, IDX) \ | 610 | #define CHAR_TABLE_REF(CT, IDX) \ |
| 611 | (XFASTINT (IDX) < CHAR_TABLE_SINGLE_BYTE_SLOTS \ | 611 | ((IDX) < CHAR_TABLE_SINGLE_BYTE_SLOTS \ |
| 612 | ? (!NILP (XCHAR_TABLE (CT)->contents[XFASTINT (IDX)])\ | 612 | ? (!NILP (XCHAR_TABLE (CT)->contents[IDX]) \ |
| 613 | ? XCHAR_TABLE (CT)->contents[XFASTINT (IDX)] \ | 613 | ? XCHAR_TABLE (CT)->contents[IDX] \ |
| 614 | : XCHAR_TABLE (CT)->defalt) \ | 614 | : XCHAR_TABLE (CT)->defalt) \ |
| 615 | : Faref (CT, IDX)) | 615 | : Faref (CT, make_number (IDX))) |
| 616 | 616 | ||
| 617 | /* Equivalent to Faset (CT, IDX, VAL) with optimization for ASCII and | 617 | /* Equivalent to Faset (CT, IDX, VAL) with optimization for ASCII and |
| 618 | 8-bit Europeans characters. Do not check validity of CT. */ | 618 | 8-bit Europeans characters. Do not check validity of CT. */ |
| @@ -1314,7 +1314,8 @@ extern char *stack_bottom; | |||
| 1314 | #define QUITP (!NILP (Vquit_flag) && NILP (Vinhibit_quit)) | 1314 | #define QUITP (!NILP (Vquit_flag) && NILP (Vinhibit_quit)) |
| 1315 | 1315 | ||
| 1316 | /* Variables used locally in the following case handling macros. */ | 1316 | /* Variables used locally in the following case handling macros. */ |
| 1317 | extern Lisp_Object case_temp1, case_temp2; | 1317 | extern int case_temp1; |
| 1318 | extern Lisp_Object case_temp2; | ||
| 1318 | 1319 | ||
| 1319 | /* Current buffer's map from characters to lower-case characters. */ | 1320 | /* Current buffer's map from characters to lower-case characters. */ |
| 1320 | 1321 | ||
| @@ -1484,6 +1485,7 @@ extern Lisp_Object Ffset (), Fsetplist (); | |||
| 1484 | extern Lisp_Object Fsymbol_value (), find_symbol_value (), Fset (); | 1485 | extern Lisp_Object Fsymbol_value (), find_symbol_value (), Fset (); |
| 1485 | extern Lisp_Object Fdefault_value (), Fset_default (), Fdefault_boundp (); | 1486 | extern Lisp_Object Fdefault_value (), Fset_default (), Fdefault_boundp (); |
| 1486 | extern Lisp_Object Fmake_local_variable (); | 1487 | extern Lisp_Object Fmake_local_variable (); |
| 1488 | extern Lisp_Object Flocal_variable_if_set_p (); | ||
| 1487 | 1489 | ||
| 1488 | extern Lisp_Object Faref (), Faset (); | 1490 | extern Lisp_Object Faref (), Faset (); |
| 1489 | 1491 | ||
| @@ -1517,6 +1519,7 @@ extern Lisp_Object Fend_of_line (), Fforward_char (), Fforward_line (); | |||
| 1517 | /* Defined in coding.c */ | 1519 | /* Defined in coding.c */ |
| 1518 | extern Lisp_Object Fcoding_system_p (), Fcheck_coding_system (); | 1520 | extern Lisp_Object Fcoding_system_p (), Fcheck_coding_system (); |
| 1519 | extern Lisp_Object Fread_coding_system (), Fread_non_nil_coding_system (); | 1521 | extern Lisp_Object Fread_coding_system (), Fread_non_nil_coding_system (); |
| 1522 | extern Lisp_Object Ffind_coding_system (); | ||
| 1520 | 1523 | ||
| 1521 | /* Defined in syntax.c */ | 1524 | /* Defined in syntax.c */ |
| 1522 | extern Lisp_Object Fforward_word (); | 1525 | extern Lisp_Object Fforward_word (); |
| @@ -1539,6 +1542,8 @@ extern Lisp_Object assq_no_quit (); | |||
| 1539 | extern Lisp_Object Fcopy_alist (); | 1542 | extern Lisp_Object Fcopy_alist (); |
| 1540 | extern Lisp_Object Fplist_get (); | 1543 | extern Lisp_Object Fplist_get (); |
| 1541 | extern Lisp_Object Fset_char_table_parent (); | 1544 | extern Lisp_Object Fset_char_table_parent (); |
| 1545 | extern Lisp_Object Fchar_table_extra_slot (); | ||
| 1546 | extern Lisp_Object Frassoc (); | ||
| 1542 | 1547 | ||
| 1543 | /* Defined in insdel.c */ | 1548 | /* Defined in insdel.c */ |
| 1544 | extern void move_gap (); | 1549 | extern void move_gap (); |
| @@ -1675,6 +1680,7 @@ extern Lisp_Object save_excursion_save (), save_restriction_save (); | |||
| 1675 | extern Lisp_Object save_excursion_restore (), save_restriction_restore (); | 1680 | extern Lisp_Object save_excursion_restore (), save_restriction_restore (); |
| 1676 | extern Lisp_Object Fchar_to_string (); | 1681 | extern Lisp_Object Fchar_to_string (); |
| 1677 | extern Lisp_Object Fdelete_region (), Fnarrow_to_region (), Fwiden (); | 1682 | extern Lisp_Object Fdelete_region (), Fnarrow_to_region (), Fwiden (); |
| 1683 | extern Lisp_Object Fuser_login_name (), Fsystem_name (); | ||
| 1678 | 1684 | ||
| 1679 | /* defined in buffer.c */ | 1685 | /* defined in buffer.c */ |
| 1680 | extern Lisp_Object Foverlay_start (), Foverlay_end (); | 1686 | extern Lisp_Object Foverlay_start (), Foverlay_end (); |
| @@ -1695,6 +1701,7 @@ extern Lisp_Object Ferase_buffer (); | |||
| 1695 | extern Lisp_Object Qoverlayp; | 1701 | extern Lisp_Object Qoverlayp; |
| 1696 | extern Lisp_Object get_truename_buffer (); | 1702 | extern Lisp_Object get_truename_buffer (); |
| 1697 | extern struct buffer *all_buffers; | 1703 | extern struct buffer *all_buffers; |
| 1704 | extern Lisp_Object Fprevious_overlay_change (); | ||
| 1698 | 1705 | ||
| 1699 | /* defined in marker.c */ | 1706 | /* defined in marker.c */ |
| 1700 | 1707 | ||
| @@ -1719,6 +1726,7 @@ extern Lisp_Object Ffile_accessible_directory_p (); | |||
| 1719 | extern Lisp_Object Funhandled_file_name_directory (); | 1726 | extern Lisp_Object Funhandled_file_name_directory (); |
| 1720 | extern Lisp_Object Ffile_directory_p (); | 1727 | extern Lisp_Object Ffile_directory_p (); |
| 1721 | extern Lisp_Object Fwrite_region (); | 1728 | extern Lisp_Object Fwrite_region (); |
| 1729 | extern Lisp_Object Ffile_readable_p (), Ffile_executable_p (); | ||
| 1722 | 1730 | ||
| 1723 | /* Defined in abbrev.c */ | 1731 | /* Defined in abbrev.c */ |
| 1724 | 1732 | ||
| @@ -1788,6 +1796,7 @@ extern void describe_map_tree (); | |||
| 1788 | 1796 | ||
| 1789 | /* defined in indent.c */ | 1797 | /* defined in indent.c */ |
| 1790 | extern Lisp_Object Fvertical_motion (), Findent_to (), Fcurrent_column (); | 1798 | extern Lisp_Object Fvertical_motion (), Findent_to (), Fcurrent_column (); |
| 1799 | extern Lisp_Object Fmove_to_column (); | ||
| 1791 | 1800 | ||
| 1792 | /* defined in window.c */ | 1801 | /* defined in window.c */ |
| 1793 | extern Lisp_Object Qwindowp, Qwindow_live_p; | 1802 | extern Lisp_Object Qwindowp, Qwindow_live_p; |
| @@ -1838,6 +1847,7 @@ extern Lisp_Object Fset_frame_size (); | |||
| 1838 | extern Lisp_Object Fset_frame_position (); | 1847 | extern Lisp_Object Fset_frame_position (); |
| 1839 | extern Lisp_Object Fraise_frame (); | 1848 | extern Lisp_Object Fraise_frame (); |
| 1840 | extern Lisp_Object Fredirect_frame_focus (); | 1849 | extern Lisp_Object Fredirect_frame_focus (); |
| 1850 | extern Lisp_Object frame_buffer_list (); | ||
| 1841 | 1851 | ||
| 1842 | /* defined in emacs.c */ | 1852 | /* defined in emacs.c */ |
| 1843 | extern Lisp_Object decode_env_path (); | 1853 | extern Lisp_Object decode_env_path (); |
| @@ -1891,6 +1901,8 @@ extern Lisp_Object Fprevious_single_property_change (); | |||
| 1891 | extern Lisp_Object Fget_text_property (), Fput_text_property (); | 1901 | extern Lisp_Object Fget_text_property (), Fput_text_property (); |
| 1892 | extern Lisp_Object Fset_text_properties (); | 1902 | extern Lisp_Object Fset_text_properties (); |
| 1893 | extern Lisp_Object Ftext_property_not_all (); | 1903 | extern Lisp_Object Ftext_property_not_all (); |
| 1904 | extern Lisp_Object Fprevious_char_property_change (); | ||
| 1905 | extern Lisp_Object Fnext_char_property_change (); | ||
| 1894 | 1906 | ||
| 1895 | /* defined in intervals.c */ | 1907 | /* defined in intervals.c */ |
| 1896 | extern Lisp_Object get_local_map (); | 1908 | extern Lisp_Object get_local_map (); |