diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lisp.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/lisp.h b/src/lisp.h index dd63c95aae8..4a26edc894c 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -604,6 +604,34 @@ typedef unsigned char UCHAR; | |||
| 604 | #define CHAR_CTL (0x400000) | 604 | #define CHAR_CTL (0x400000) |
| 605 | #define CHAR_META (0x800000) | 605 | #define CHAR_META (0x800000) |
| 606 | 606 | ||
| 607 | #ifdef USE_X_TOOLKIT | ||
| 608 | #ifdef NO_UNION_TYPE | ||
| 609 | /* Use this for turning a (void *) into a Lisp_Object, as when the | ||
| 610 | Lisp_Object is passed into a toolkit callback function. */ | ||
| 611 | #define VOID_TO_LISP(larg,varg) \ | ||
| 612 | do { ((larg) = ((Lisp_Object) (varg))); } while (0) | ||
| 613 | #define CVOID_TO_LISP VOID_TO_LISP | ||
| 614 | |||
| 615 | /* Use this for turning a Lisp_Object into a (void *), as when the | ||
| 616 | Lisp_Object is passed into a toolkit callback function. */ | ||
| 617 | #define LISP_TO_VOID(larg) ((void *) (larg)) | ||
| 618 | #define LISP_TO_CVOID(varg) ((const void *) (larg)) | ||
| 619 | |||
| 620 | #else /* not NO_UNION_TYPE */ | ||
| 621 | /* Use this for turning a (void *) into a Lisp_Object, as when the | ||
| 622 | Lisp_Object is passed into a toolkit callback function. */ | ||
| 623 | #define VOID_TO_LISP(larg,varg) \ | ||
| 624 | do { ((larg).v = (void *) (varg)); } while (0) | ||
| 625 | #define CVOID_TO_LISP(larg,varg) \ | ||
| 626 | do { ((larg).cv = (const void *) (varg)); } while (0) | ||
| 627 | |||
| 628 | /* Use this for turning a Lisp_Object into a (void *), as when the | ||
| 629 | Lisp_Object is passed into a toolkit callback function. */ | ||
| 630 | #define LISP_TO_VOID(larg) ((larg).v) | ||
| 631 | #define LISP_TO_CVOID(larg) ((larg).cv) | ||
| 632 | #endif /* not NO_UNION_TYPE */ | ||
| 633 | #endif /* USE_X_TOOLKIT */ | ||
| 634 | |||
| 607 | 635 | ||
| 608 | /* The glyph datatype, used to represent characters on the display. */ | 636 | /* The glyph datatype, used to represent characters on the display. */ |
| 609 | 637 | ||
| @@ -1300,6 +1328,7 @@ extern Lisp_Object Frubber_band_rectangle (); | |||
| 1300 | /* defined in emacs.c */ | 1328 | /* defined in emacs.c */ |
| 1301 | extern Lisp_Object decode_env_path (); | 1329 | extern Lisp_Object decode_env_path (); |
| 1302 | extern Lisp_Object Vinvocation_name, Vinvocation_directory; | 1330 | extern Lisp_Object Vinvocation_name, Vinvocation_directory; |
| 1331 | extern Lisp_Object Vinstallation_directory; | ||
| 1303 | void shut_down_emacs ( /* int signal, int no_x, Lisp_Object stuff */ ); | 1332 | void shut_down_emacs ( /* int signal, int no_x, Lisp_Object stuff */ ); |
| 1304 | /* Nonzero means don't do interactive redisplay and don't change tty modes */ | 1333 | /* Nonzero means don't do interactive redisplay and don't change tty modes */ |
| 1305 | extern int noninteractive; | 1334 | extern int noninteractive; |