Mercurial > emacs
diff src/lisp.h @ 112434:9de5a68b57e1
Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
| author | Paul Eggert <eggert@cs.ucla.edu> |
|---|---|
| date | Sat, 22 Jan 2011 18:56:06 -0800 |
| parents | 42e22c4f06b7 |
| children |
line wrap: on
line diff
--- a/src/lisp.h Sat Jan 22 17:09:09 2011 -0800 +++ b/src/lisp.h Sat Jan 22 18:56:06 2011 -0800 @@ -635,6 +635,9 @@ #define SCHARS(string) (XSTRING (string)->size + 0) #define SBYTES(string) (STRING_BYTES (XSTRING (string)) + 0) +/* Avoid "differ in sign" warnings. */ +#define SSDATA(x) ((char *) SDATA (x)) + #define STRING_SET_CHARS(string, newsize) \ (XSTRING (string)->size = (newsize)) @@ -1844,7 +1847,7 @@ /* Macros we use to define forwarded Lisp variables. These are used in the syms_of_FILENAME functions. - + An ordinary (not in buffer_defaults, per-buffer, or per-keyboard) lisp variable is actually a field in `struct emacs_globals'. The field's name begins with "f_", which is a convention enforced by
