aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
authorPaul Eggert2018-12-17 09:31:08 -0800
committerPaul Eggert2018-12-17 09:31:53 -0800
commit4d77c4ac3b9c40c62b1505bcaa1e0377d63a4956 (patch)
tree6ee9aff2af6310152d545996fbc52dee6915d884 /src/coding.c
parent739dca7818514f1b7c318fd195f90535a416f57f (diff)
downloademacs-4d77c4ac3b9c40c62b1505bcaa1e0377d63a4956.tar.gz
emacs-4d77c4ac3b9c40c62b1505bcaa1e0377d63a4956.zip
Assume ‘emacs’ is defined in Emacs-only code
* src/charset.c, src/coding.c, src/coding.h, src/gmalloc.c: * src/ralloc.c, src/regex-emacs.c: Simplify slightly by assuming that ‘emacs’ is defined. These modules have long been specific to Emacs, and are not used elsewhere.
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/coding.c b/src/coding.c
index c2945707e23..ba060878c7d 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -307,16 +307,12 @@ Lisp_Object Vcoding_system_hash_table;
307 file and process), not for in-buffer or Lisp string encoding. */ 307 file and process), not for in-buffer or Lisp string encoding. */
308static Lisp_Object system_eol_type; 308static Lisp_Object system_eol_type;
309 309
310#ifdef emacs
311
312/* Coding-systems are handed between Emacs Lisp programs and C internal 310/* Coding-systems are handed between Emacs Lisp programs and C internal
313 routines by the following three variables. */ 311 routines by the following three variables. */
314/* Coding system to be used to encode text for terminal display when 312/* Coding system to be used to encode text for terminal display when
315 terminal coding system is nil. */ 313 terminal coding system is nil. */
316struct coding_system safe_terminal_coding; 314struct coding_system safe_terminal_coding;
317 315
318#endif /* emacs */
319
320/* Two special coding systems. */ 316/* Two special coding systems. */
321static Lisp_Object Vsjis_coding_system; 317static Lisp_Object Vsjis_coding_system;
322static Lisp_Object Vbig5_coding_system; 318static Lisp_Object Vbig5_coding_system;
@@ -8478,7 +8474,6 @@ to_unicode (Lisp_Object str, Lisp_Object *buf)
8478#endif /* WINDOWSNT || CYGWIN */ 8474#endif /* WINDOWSNT || CYGWIN */
8479 8475
8480 8476
8481#ifdef emacs
8482/*** 8. Emacs Lisp library functions ***/ 8477/*** 8. Emacs Lisp library functions ***/
8483 8478
8484DEFUN ("coding-system-p", Fcoding_system_p, Scoding_system_p, 1, 1, 0, 8479DEFUN ("coding-system-p", Fcoding_system_p, Scoding_system_p, 1, 1, 0,
@@ -10732,8 +10727,6 @@ coding system whose eol-type is N. */)
10732 return make_fixnum (n); 10727 return make_fixnum (n);
10733} 10728}
10734 10729
10735#endif /* emacs */
10736
10737 10730
10738/*** 9. Post-amble ***/ 10731/*** 9. Post-amble ***/
10739 10732
@@ -10777,8 +10770,6 @@ init_coding_once (void)
10777 emacs_mule_bytes[EMACS_MULE_LEADING_CODE_PRIVATE_22] = 4; 10770 emacs_mule_bytes[EMACS_MULE_LEADING_CODE_PRIVATE_22] = 4;
10778} 10771}
10779 10772
10780#ifdef emacs
10781
10782void 10773void
10783syms_of_coding (void) 10774syms_of_coding (void)
10784{ 10775{
@@ -11321,4 +11312,3 @@ internal character representation. */);
11321#endif 11312#endif
11322 staticpro (&system_eol_type); 11313 staticpro (&system_eol_type);
11323} 11314}
11324#endif /* emacs */