Mercurial > emacs
comparison src/lisp.h @ 112359:011b1eb5c384
Change buffer_defaults to new new macro; preparation for thread patch
* lisp.h (DEFVAR_BUFFER_DEFAULTS): New macro.
* buffer.c (syms_of_buffer): Use DEFVAR_BUFFER_DEFAULTS.
author | Tom Tromey <tromey@redhat.com> |
---|---|
date | Tue, 18 Jan 2011 10:00:04 -0700 |
parents | 19348bd13f81 |
children | 42e22c4f06b7 |
comparison
equal
deleted
inserted
replaced
112358:49f47421e4c1 | 112359:011b1eb5c384 |
---|---|
1862 } while (0) | 1862 } while (0) |
1863 #define DEFVAR_INT(lname, vname, doc) \ | 1863 #define DEFVAR_INT(lname, vname, doc) \ |
1864 do { \ | 1864 do { \ |
1865 static struct Lisp_Intfwd i_fwd; \ | 1865 static struct Lisp_Intfwd i_fwd; \ |
1866 defvar_int (&i_fwd, lname, vname); \ | 1866 defvar_int (&i_fwd, lname, vname); \ |
1867 } while (0) | |
1868 | |
1869 #define DEFVAR_BUFFER_DEFAULTS(lname, vname, doc) \ | |
1870 do { \ | |
1871 static struct Lisp_Objfwd o_fwd; \ | |
1872 defvar_lisp_nopro (&o_fwd, lname, &buffer_defaults.vname); \ | |
1867 } while (0) | 1873 } while (0) |
1868 | 1874 |
1869 #define DEFVAR_KBOARD(lname, vname, doc) \ | 1875 #define DEFVAR_KBOARD(lname, vname, doc) \ |
1870 do { \ | 1876 do { \ |
1871 static struct Lisp_Kboard_Objfwd ko_fwd; \ | 1877 static struct Lisp_Kboard_Objfwd ko_fwd; \ |