diff options
| author | Paul Eggert | 2011-06-18 17:06:17 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-06-18 17:06:17 -0700 |
| commit | eb49b13608d6cf06af52c7d9fe88928a48f48cee (patch) | |
| tree | d83b93d6c315ab4a4d216934476a00d3bfb0f88b /src | |
| parent | 9a8e8d9b22be9652ed2f2e8acc02e1139b34d9dd (diff) | |
| download | emacs-eb49b13608d6cf06af52c7d9fe88928a48f48cee.tar.gz emacs-eb49b13608d6cf06af52c7d9fe88928a48f48cee.zip | |
* lisp.h (DEFUN): Remove bogus use of sizeof (struct Lisp_Subr).
This didn't break anything, but it didn't help either.
It's confusing to put a bogus integer in a place where the actual
value does not matter.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/lisp.h | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index aa0a0a39bb8..1b4edb91d1a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2011-06-19 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | * lisp.h (DEFUN): Remove bogus use of sizeof (struct Lisp_Subr). | ||
| 4 | This didn't break anything, but it didn't help either. | ||
| 5 | It's confusing to put a bogus integer in a place where the actual | ||
| 6 | value does not matter. | ||
| 7 | |||
| 1 | 2011-06-18 Paul Eggert <eggert@cs.ucla.edu> | 8 | 2011-06-18 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 9 | ||
| 3 | * lisp.h (union Lisp_Object.i): EMACS_INT, not EMACS_UINT. | 10 | * lisp.h (union Lisp_Object.i): EMACS_INT, not EMACS_UINT. |
diff --git a/src/lisp.h b/src/lisp.h index 2dcf73b7506..e065bad10d0 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -1890,7 +1890,7 @@ typedef struct { | |||
| 1890 | #define DEFUN(lname, fnname, sname, minargs, maxargs, intspec, doc) \ | 1890 | #define DEFUN(lname, fnname, sname, minargs, maxargs, intspec, doc) \ |
| 1891 | Lisp_Object fnname DEFUN_ARGS_ ## maxargs ; \ | 1891 | Lisp_Object fnname DEFUN_ARGS_ ## maxargs ; \ |
| 1892 | static DECL_ALIGN (struct Lisp_Subr, sname) = \ | 1892 | static DECL_ALIGN (struct Lisp_Subr, sname) = \ |
| 1893 | { PVEC_SUBR | (sizeof (struct Lisp_Subr) / sizeof (EMACS_INT)), \ | 1893 | { PVEC_SUBR, \ |
| 1894 | { .a ## maxargs = fnname }, \ | 1894 | { .a ## maxargs = fnname }, \ |
| 1895 | minargs, maxargs, lname, intspec, 0}; \ | 1895 | minargs, maxargs, lname, intspec, 0}; \ |
| 1896 | Lisp_Object fnname | 1896 | Lisp_Object fnname |