comparison src/text.h @ 1743:543769b89fed

[xemacs-hg @ 2003-10-14 05:02:57 by james] New compiler.h contains compiler-specific defines. Use it everywhere.
author james
date Tue, 14 Oct 2003 05:03:13 +0000
parents a8d8f419b459
children 04bc9d2f42c7
comparison
equal deleted inserted replaced
1742:7f92ee59c996 1743:543769b89fed
43 #endif 43 #endif
44 #ifndef HAVE_STRUPR 44 #ifndef HAVE_STRUPR
45 char *strupr (char *); 45 char *strupr (char *);
46 #endif 46 #endif
47 47
48 #ifdef __cplusplus 48 BEGIN_C_DECLS
49 extern "C" {
50 #endif
51 49
52 /* ---------------------------------------------------------------------- */ 50 /* ---------------------------------------------------------------------- */
53 /* Super-basic character properties */ 51 /* Super-basic character properties */
54 /* ---------------------------------------------------------------------- */ 52 /* ---------------------------------------------------------------------- */
55 53
2453 } while (0) 2451 } while (0)
2454 2452
2455 #define eilwr(ei) EI_CASECHANGE (ei, 1) 2453 #define eilwr(ei) EI_CASECHANGE (ei, 1)
2456 #define eiupr(ei) EI_CASECHANGE (ei, 0) 2454 #define eiupr(ei) EI_CASECHANGE (ei, 0)
2457 2455
2458 #ifdef __cplusplus 2456 END_C_DECLS
2459 }
2460 #endif
2461 2457
2462 2458
2463 /************************************************************************/ 2459 /************************************************************************/
2464 /* */ 2460 /* */
2465 /* Converting between internal and external format */ 2461 /* Converting between internal and external format */
2696 DFC_TYPE_LISP_OPAQUE, 2692 DFC_TYPE_LISP_OPAQUE,
2697 DFC_TYPE_LISP_BUFFER 2693 DFC_TYPE_LISP_BUFFER
2698 }; 2694 };
2699 typedef enum dfc_conversion_type dfc_conversion_type; 2695 typedef enum dfc_conversion_type dfc_conversion_type;
2700 2696
2701 #ifdef __cplusplus 2697 BEGIN_C_DECLS
2702 extern "C" {
2703 #endif
2704 2698
2705 /* WARNING: These use a static buffer. This can lead to disaster if 2699 /* WARNING: These use a static buffer. This can lead to disaster if
2706 these functions are not used *very* carefully. Another reason to only use 2700 these functions are not used *very* carefully. Another reason to only use
2707 TO_EXTERNAL_FORMAT() and TO_INTERNAL_FORMAT(). */ 2701 TO_EXTERNAL_FORMAT() and TO_INTERNAL_FORMAT(). */
2708 MODULE_API void 2702 MODULE_API void
2907 MODULE_API Bytecount new_dfc_convert_size (const char *srctext, const void *src, 2901 MODULE_API Bytecount new_dfc_convert_size (const char *srctext, const void *src,
2908 Bytecount src_size, 2902 Bytecount src_size,
2909 enum new_dfc_src_type type, 2903 enum new_dfc_src_type type,
2910 Lisp_Object codesys); 2904 Lisp_Object codesys);
2911 2905
2912 #ifdef __cplusplus 2906 END_C_DECLS
2913 }
2914 #endif
2915 2907
2916 /* Version of EXTERNAL_TO_C_STRING that *RETURNS* the translated string, 2908 /* Version of EXTERNAL_TO_C_STRING that *RETURNS* the translated string,
2917 still in alloca() space. Requires some trickiness to do this, but gets 2909 still in alloca() space. Requires some trickiness to do this, but gets
2918 it done! */ 2910 it done! */
2919 2911