comparison src/data.c @ 5871:58e72e27fb81

Don't rely on zero termination for Vfixnum_to_char_map, thank you Vin. lisp/ChangeLog addition: (vars_of_data): Don't rely on zero termination here for Vfixnum_to_char_map, give an explicit bytecount. Again, thank you Vin!
author Aidan Kehoe <kehoea@parhasard.net>
date Tue, 17 Mar 2015 00:47:48 +0000
parents df50aaeddca5
children 5a311f1f46aa
comparison
equal deleted inserted replaced
5870:df50aaeddca5 5871:58e72e27fb81
4300 } 4300 }
4301 4301
4302 /* Sigh, we can't call build_fixnum_to_char_map() on Vdigit_fixnum_map, 4302 /* Sigh, we can't call build_fixnum_to_char_map() on Vdigit_fixnum_map,
4303 this is too early in the boot sequence to map across a char table. Do 4303 this is too early in the boot sequence to map across a char table. Do
4304 it by hand. */ 4304 it by hand. */
4305 Vfixnum_to_char_map = build_ascstring (fixnum_tab); 4305 ASSERT_ASCTEXT_ASCII_LEN (fixnum_tab, 36 * MAX_ICHAR_LEN);
4306 Vfixnum_to_char_map
4307 = make_string ((const Ibyte*) fixnum_tab, 36 * MAX_ICHAR_LEN);
4306 staticpro (&Vfixnum_to_char_map); 4308 staticpro (&Vfixnum_to_char_map);
4307 } 4309 }
4308 4310
4309 #ifdef DEBUG_XEMACS 4311 #ifdef DEBUG_XEMACS
4310 DEFVAR_BOOL ("debug-issue-ebola-notices", &debug_issue_ebola_notices /* 4312 DEFVAR_BOOL ("debug-issue-ebola-notices", &debug_issue_ebola_notices /*