Mercurial > emacs
comparison src/lisp.h @ 90054:f2ebccfa87d4
Revision: miles@gnu.org--gnu-2004/emacs--unicode--0--patch-74
Merge from emacs--cvs-trunk--0
Patches applied:
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-709
Update from CVS: src/indent.c (Fvertical_motion): Fix last change.
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-710
- miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-715
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-716
Merge from gnus--rel--5.10
* miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-74
Update from CVS
author | Miles Bader <miles@gnu.org> |
---|---|
date | Wed, 08 Dec 2004 05:02:30 +0000 |
parents | b637c617432f f8cddae7d959 |
children | fb79180b618d |
comparison
equal
deleted
inserted
replaced
90053:fff5f1a61d92 | 90054:f2ebccfa87d4 |
---|---|
33 /* Define this temporarily to hunt a bug. If defined, the size of | 33 /* Define this temporarily to hunt a bug. If defined, the size of |
34 strings is redundantly recorded in sdata structures so that it can | 34 strings is redundantly recorded in sdata structures so that it can |
35 be compared to the sizes recorded in Lisp strings. */ | 35 be compared to the sizes recorded in Lisp strings. */ |
36 | 36 |
37 #define GC_CHECK_STRING_BYTES 1 | 37 #define GC_CHECK_STRING_BYTES 1 |
38 | |
39 /* Define this to check for short string overrun. */ | |
40 | |
41 #define GC_CHECK_STRING_OVERRUN 1 | |
42 | |
43 /* Define this to check the string free list. */ | |
44 | |
45 #define GC_CHECK_STRING_FREE_LIST 1 | |
46 | |
47 /* Define this to check for malloc buffer overrun. */ | |
48 | |
49 #define XMALLOC_OVERRUN_CHECK 1 | |
50 | |
51 /* Define this to check for errors in cons list. */ | |
52 /* #define GC_CHECK_CONS_LIST 1 */ | |
53 | |
38 #endif /* 0 */ | 54 #endif /* 0 */ |
39 | 55 |
40 | 56 |
41 /* These are default choices for the types to use. */ | 57 /* These are default choices for the types to use. */ |
42 #ifdef _LP64 | 58 #ifdef _LP64 |
303 as the two special buffers buffer_defaults and buffer_local_symbols. */ | 319 as the two special buffers buffer_defaults and buffer_local_symbols. */ |
304 | 320 |
305 /* First, try and define DECL_ALIGN(type,var) which declares a static | 321 /* First, try and define DECL_ALIGN(type,var) which declares a static |
306 variable VAR of type TYPE with the added requirement that it be | 322 variable VAR of type TYPE with the added requirement that it be |
307 TYPEBITS-aligned. */ | 323 TYPEBITS-aligned. */ |
308 #ifndef DECL_ALIGN | 324 #ifndef NO_DECL_ALIGN |
325 # ifndef DECL_ALIGN | |
309 /* What compiler directive should we use for non-gcc compilers? -stef */ | 326 /* What compiler directive should we use for non-gcc compilers? -stef */ |
310 # if defined (__GNUC__) | 327 # if defined (__GNUC__) |
311 # define DECL_ALIGN(type, var) \ | 328 # define DECL_ALIGN(type, var) \ |
312 type __attribute__ ((__aligned__ (1 << GCTYPEBITS))) var | 329 type __attribute__ ((__aligned__ (1 << GCTYPEBITS))) var |
330 # endif | |
313 # endif | 331 # endif |
314 #endif | 332 #endif |
315 | 333 |
316 /* Let's USE_LSB_TAG on systems where we know malloc returns mult-of-8. */ | 334 /* Let's USE_LSB_TAG on systems where we know malloc returns mult-of-8. */ |
317 #if defined GNU_MALLOC || defined DOUG_LEA_MALLOC || defined __GLIBC__ || defined MAC_OSX | 335 #if defined GNU_MALLOC || defined DOUG_LEA_MALLOC || defined __GLIBC__ || defined MAC_OSX |
322 # define USE_LSB_TAG | 340 # define USE_LSB_TAG |
323 # endif | 341 # endif |
324 # endif | 342 # endif |
325 #endif | 343 #endif |
326 | 344 |
327 /* Just remove the alignment annotation if we don't use it. */ | 345 /* If we cannot use 8-byte alignment, make DECL_ALIGN a no-op. */ |
328 #ifndef DECL_ALIGN | 346 #ifndef DECL_ALIGN |
329 # ifdef USE_LSB_TAG | 347 # ifdef USE_LSB_TAG |
330 # error "USE_LSB_TAG used without defining DECL_ALIGN" | 348 # error "USE_LSB_TAG used without defining DECL_ALIGN" |
331 # endif | 349 # endif |
332 # define DECL_ALIGN(type, var) type var | 350 # define DECL_ALIGN(type, var) type var |
2323 extern Lisp_Object assq_no_quit P_ ((Lisp_Object, Lisp_Object)); | 2341 extern Lisp_Object assq_no_quit P_ ((Lisp_Object, Lisp_Object)); |
2324 extern void clear_string_char_byte_cache P_ ((void)); | 2342 extern void clear_string_char_byte_cache P_ ((void)); |
2325 extern int string_char_to_byte P_ ((Lisp_Object, int)); | 2343 extern int string_char_to_byte P_ ((Lisp_Object, int)); |
2326 extern int string_byte_to_char P_ ((Lisp_Object, int)); | 2344 extern int string_byte_to_char P_ ((Lisp_Object, int)); |
2327 extern Lisp_Object string_make_multibyte P_ ((Lisp_Object)); | 2345 extern Lisp_Object string_make_multibyte P_ ((Lisp_Object)); |
2346 extern Lisp_Object string_to_multibyte P_ ((Lisp_Object)); | |
2328 extern Lisp_Object string_make_unibyte P_ ((Lisp_Object)); | 2347 extern Lisp_Object string_make_unibyte P_ ((Lisp_Object)); |
2329 EXFUN (Fcopy_alist, 1); | 2348 EXFUN (Fcopy_alist, 1); |
2330 EXFUN (Fplist_get, 2); | 2349 EXFUN (Fplist_get, 2); |
2331 EXFUN (Fsafe_plist_get, 2); | 2350 EXFUN (Fsafe_plist_get, 2); |
2332 EXFUN (Fplist_put, 3); | 2351 EXFUN (Fplist_put, 3); |
2453 extern void memory_warnings P_ ((POINTER_TYPE *, void (*warnfun) ())); | 2472 extern void memory_warnings P_ ((POINTER_TYPE *, void (*warnfun) ())); |
2454 | 2473 |
2455 /* Defined in alloc.c */ | 2474 /* Defined in alloc.c */ |
2456 extern void check_pure_size P_ ((void)); | 2475 extern void check_pure_size P_ ((void)); |
2457 extern void allocate_string_data P_ ((struct Lisp_String *, int, int)); | 2476 extern void allocate_string_data P_ ((struct Lisp_String *, int, int)); |
2477 extern void reset_malloc_hooks P_ ((void)); | |
2458 extern void uninterrupt_malloc P_ ((void)); | 2478 extern void uninterrupt_malloc P_ ((void)); |
2459 extern void malloc_warning P_ ((char *)); | 2479 extern void malloc_warning P_ ((char *)); |
2460 extern void memory_full P_ ((void)); | 2480 extern void memory_full P_ ((void)); |
2461 extern void buffer_memory_full P_ ((void)); | 2481 extern void buffer_memory_full P_ ((void)); |
2462 extern int survives_gc_p P_ ((Lisp_Object)); | 2482 extern int survives_gc_p P_ ((Lisp_Object)); |
2847 /* defined in minibuf.c */ | 2867 /* defined in minibuf.c */ |
2848 | 2868 |
2849 extern Lisp_Object last_minibuf_string; | 2869 extern Lisp_Object last_minibuf_string; |
2850 extern void choose_minibuf_frame P_ ((void)); | 2870 extern void choose_minibuf_frame P_ ((void)); |
2851 EXFUN (Fcompleting_read, 8); | 2871 EXFUN (Fcompleting_read, 8); |
2852 EXFUN (Fread_from_minibuffer, 7); | 2872 EXFUN (Fread_from_minibuffer, 8); |
2853 EXFUN (Fread_variable, 2); | 2873 EXFUN (Fread_variable, 2); |
2854 EXFUN (Fread_buffer, 3); | 2874 EXFUN (Fread_buffer, 3); |
2855 EXFUN (Fread_minibuffer, 2); | 2875 EXFUN (Fread_minibuffer, 2); |
2856 EXFUN (Feval_minibuffer, 2); | 2876 EXFUN (Feval_minibuffer, 2); |
2857 EXFUN (Fread_string, 5); | 2877 EXFUN (Fread_string, 5); |