comparison src/text.h @ 1650:34abfb24e891

[xemacs-hg @ 2003-08-28 15:44:04 by james] Fix the C++ build, with many module-specific fixes.
author james
date Thu, 28 Aug 2003 15:44:30 +0000
parents 64eaceca611d
children a8d8f419b459
comparison
equal deleted inserted replaced
1649:9afdad50eaf7 1650:34abfb24e891
41 #ifndef HAVE_STRLWR 41 #ifndef HAVE_STRLWR
42 char *strlwr (char *); 42 char *strlwr (char *);
43 #endif 43 #endif
44 #ifndef HAVE_STRUPR 44 #ifndef HAVE_STRUPR
45 char *strupr (char *); 45 char *strupr (char *);
46 #endif
47
48 #ifdef __cplusplus
49 extern "C" {
46 #endif 50 #endif
47 51
48 /* ---------------------------------------------------------------------- */ 52 /* ---------------------------------------------------------------------- */
49 /* Super-basic character properties */ 53 /* Super-basic character properties */
50 /* ---------------------------------------------------------------------- */ 54 /* ---------------------------------------------------------------------- */
2449 } while (0) 2453 } while (0)
2450 2454
2451 #define eilwr(ei) EI_CASECHANGE (ei, 1) 2455 #define eilwr(ei) EI_CASECHANGE (ei, 1)
2452 #define eiupr(ei) EI_CASECHANGE (ei, 0) 2456 #define eiupr(ei) EI_CASECHANGE (ei, 0)
2453 2457
2458 #ifdef __cplusplus
2459 }
2460 #endif
2461
2454 2462
2455 /************************************************************************/ 2463 /************************************************************************/
2456 /* */ 2464 /* */
2457 /* Converting between internal and external format */ 2465 /* Converting between internal and external format */
2458 /* */ 2466 /* */
2688 DFC_TYPE_LISP_OPAQUE, 2696 DFC_TYPE_LISP_OPAQUE,
2689 DFC_TYPE_LISP_BUFFER 2697 DFC_TYPE_LISP_BUFFER
2690 }; 2698 };
2691 typedef enum dfc_conversion_type dfc_conversion_type; 2699 typedef enum dfc_conversion_type dfc_conversion_type;
2692 2700
2701 #ifdef __cplusplus
2702 extern "C" {
2703 #endif
2704
2693 /* WARNING: These use a static buffer. This can lead to disaster if 2705 /* WARNING: These use a static buffer. This can lead to disaster if
2694 these functions are not used *very* carefully. Another reason to only use 2706 these functions are not used *very* carefully. Another reason to only use
2695 TO_EXTERNAL_FORMAT() and TO_INTERNAL_FORMAT(). */ 2707 TO_EXTERNAL_FORMAT() and TO_INTERNAL_FORMAT(). */
2696 MODULE_API void 2708 MODULE_API void
2697 dfc_convert_to_external_format (dfc_conversion_type source_type, 2709 dfc_convert_to_external_format (dfc_conversion_type source_type,
2895 MODULE_API Bytecount new_dfc_convert_size (const char *srctext, const void *src, 2907 MODULE_API Bytecount new_dfc_convert_size (const char *srctext, const void *src,
2896 Bytecount src_size, 2908 Bytecount src_size,
2897 enum new_dfc_src_type type, 2909 enum new_dfc_src_type type,
2898 Lisp_Object codesys); 2910 Lisp_Object codesys);
2899 2911
2912 #ifdef __cplusplus
2913 }
2914 #endif
2915
2900 /* Version of EXTERNAL_TO_C_STRING that *RETURNS* the translated string, 2916 /* Version of EXTERNAL_TO_C_STRING that *RETURNS* the translated string,
2901 still in alloca() space. Requires some trickiness to do this, but gets 2917 still in alloca() space. Requires some trickiness to do this, but gets
2902 it done! */ 2918 it done! */
2903 2919
2904 /* NOTE: If you make two invocations of the dfc functions below in the same 2920 /* NOTE: If you make two invocations of the dfc functions below in the same