Mercurial > emacs
comparison src/lread.c @ 10606:97b210b19217
(defvar_display): New function.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Tue, 31 Jan 1995 01:26:09 +0000 |
parents | 899f5bd94bbb |
children | a43d97d12de3 |
comparison
equal
deleted
inserted
replaced
10605:bc37b55fcbb9 | 10606:97b210b19217 |
---|---|
1815 } | 1815 } |
1816 #endif /* NOTDEF */ | 1816 #endif /* NOTDEF */ |
1817 | 1817 |
1818 /* Define an "integer variable"; a symbol whose value is forwarded | 1818 /* Define an "integer variable"; a symbol whose value is forwarded |
1819 to a C variable of type int. Sample call: */ | 1819 to a C variable of type int. Sample call: */ |
1820 /* DEFVARINT ("indent-tabs-mode", &indent_tabs_mode, "Documentation"); */ | 1820 /* DEFVAR_INT ("indent-tabs-mode", &indent_tabs_mode, "Documentation"); */ |
1821 void | 1821 void |
1822 defvar_int (namestring, address) | 1822 defvar_int (namestring, address) |
1823 char *namestring; | 1823 char *namestring; |
1824 int *address; | 1824 int *address; |
1825 { | 1825 { |
1904 slot of buffer_local_flags */ | 1904 slot of buffer_local_flags */ |
1905 abort (); | 1905 abort (); |
1906 } | 1906 } |
1907 | 1907 |
1908 #endif /* standalone */ | 1908 #endif /* standalone */ |
1909 | |
1910 /* Similar but define a variable whose value is the Lisp Object stored | |
1911 at a particular offset in the current perdisplay object. */ | |
1912 | |
1913 void | |
1914 defvar_display (namestring, offset) | |
1915 char *namestring; | |
1916 int offset; | |
1917 { | |
1918 Lisp_Object sym, val; | |
1919 sym = intern (namestring); | |
1920 val = allocate_misc (); | |
1921 XMISC (val)->type = Lisp_Misc_Display_Objfwd; | |
1922 XDISPLAY_OBJFWD (val)->offset = offset; | |
1923 XSYMBOL (sym)->value = val; | |
1924 } | |
1909 | 1925 |
1910 init_lread () | 1926 init_lread () |
1911 { | 1927 { |
1912 char *normal; | 1928 char *normal; |
1913 | 1929 |