comparison src/lisp.h @ 462:0784d089fdc9 r21-2-46

Import from CVS: tag r21-2-46
author cvs
date Mon, 13 Aug 2007 11:44:37 +0200
parents c33ae14dd6d0
children 38fb9ae12edd
comparison
equal deleted inserted replaced
461:120ed4009e51 462:0784d089fdc9
265 /*#endif*/ 265 /*#endif*/
266 266
267 267
268 /* EMACS_INT is the underlying integral type into which a Lisp_Object must fit. 268 /* EMACS_INT is the underlying integral type into which a Lisp_Object must fit.
269 In particular, it must be large enough to contain a pointer. 269 In particular, it must be large enough to contain a pointer.
270 config.h can override this, e.g. to use `long long' for bigger lisp ints. */ 270 config.h can override this, e.g. to use `long long' for bigger lisp ints.
271
272 #### In point of fact, it would NOT be a good idea for config.h to mess
273 with EMACS_INT. A lot of code makes the basic assumption that EMACS_INT
274 is the size of a pointer. */
271 275
272 #ifndef SIZEOF_EMACS_INT 276 #ifndef SIZEOF_EMACS_INT
273 # define SIZEOF_EMACS_INT SIZEOF_VOID_P 277 # define SIZEOF_EMACS_INT SIZEOF_VOID_P
274 #endif 278 #endif
275 279
352 Bufbytes for its representation in a buffer. */ 356 Bufbytes for its representation in a buffer. */
353 357
354 typedef int Emchar; 358 typedef int Emchar;
355 359
356 /* Different ways of referring to a position in a buffer. We use 360 /* Different ways of referring to a position in a buffer. We use
357 the typedefs in preference to 'int' to make it clearer what 361 the typedefs in preference to 'EMACS_INT' to make it clearer what
358 sort of position is being used. See extents.c for a description 362 sort of position is being used. See extents.c for a description
359 of the different positions. We put them here instead of in 363 of the different positions. We put them here instead of in
360 buffer.h (where they rightfully belong) to avoid syntax errors 364 buffer.h (where they rightfully belong) to avoid syntax errors
361 in function prototypes. */ 365 in function prototypes. */
362 366
3247 extern Lisp_Object Qvalues; 3251 extern Lisp_Object Qvalues;
3248 extern Lisp_Object Qvariable_documentation, Qvariable_domain; 3252 extern Lisp_Object Qvariable_documentation, Qvariable_domain;
3249 extern Lisp_Object Qvoid_function, Qvoid_variable; 3253 extern Lisp_Object Qvoid_function, Qvoid_variable;
3250 extern Lisp_Object Qwindow_live_p, Qwrong_number_of_arguments; 3254 extern Lisp_Object Qwindow_live_p, Qwrong_number_of_arguments;
3251 extern Lisp_Object Qwrong_type_argument, Qyes_or_no_p; 3255 extern Lisp_Object Qwrong_type_argument, Qyes_or_no_p;
3256 extern Lisp_Object Qgtk;
3252 3257
3253 #define SYMBOL(fou) extern Lisp_Object fou 3258 #define SYMBOL(fou) extern Lisp_Object fou
3254 #define SYMBOL_KEYWORD(la_cle_est_fou) extern Lisp_Object la_cle_est_fou 3259 #define SYMBOL_KEYWORD(la_cle_est_fou) extern Lisp_Object la_cle_est_fou
3255 #define SYMBOL_GENERAL(tout_le_monde, est_fou) \ 3260 #define SYMBOL_GENERAL(tout_le_monde, est_fou) \
3256 extern Lisp_Object tout_le_monde 3261 extern Lisp_Object tout_le_monde