comparison src/emodules.c @ 5581:56144c8593a8

Mechanically change INT to FIXNUM in our sources. src/ChangeLog addition: 2011-10-09 Aidan Kehoe <kehoea@parhasard.net> [...] Mechanically change INT (where it refers to non-bignum Lisp integers) to FIXNUM in our sources. Done for the following functions, enums, and macros: Lisp_Type_Int_Even, Lisp_Type_Int_Odd, INT_GCBITS, INT_VALBITS, make_int(), INTP(), XINT(), CHECK_INT(), XREALINT(), INT_PLUS(), INT_MINUS(), EMACS_INT_MAX (to MOST_POSITIVE_FIXNUM), EMACS_INT_MIN (to MOST_NEGATIVE_FIXNUM), NUMBER_FITS_IN_AN_EMACS_INT() to NUMBER_FITS_IN_A_FIXNUM(), XFLOATINT, XCHAR_OR_INT, INT_OR_FLOAT. The EMACS_INT typedef was not changed, it does not describe non-bignum Lisp integers. Script that did the change available in http://mid.gmane.org/20067.17650.181273.12014@parhasard.net . modules/ChangeLog addition: 2011-10-09 Aidan Kehoe <kehoea@parhasard.net> [...] Mechanically change INT to FIXNUM, where the usage describes non-bignum Lisp integers. See the src/ChangeLog entry for more details. man/ChangeLog addition: 2011-10-09 Aidan Kehoe <kehoea@parhasard.net> * internals/internals.texi (How Lisp Objects Are Represented in C): * internals/internals.texi (Integers and Characters): Mechanically change INT to FIXNUM, where the usage describes non-bignum Lisp integers.
author Aidan Kehoe <kehoea@parhasard.net>
date Sun, 09 Oct 2011 09:51:57 +0100
parents b9167d522a9a
children 574f0cded429
comparison
equal deleted inserted replaced
5580:a0e81357194e 5581:56144c8593a8
113 mver = (const Ibyte *) ""; 113 mver = (const Ibyte *) "";
114 else 114 else
115 mver = XSTRING_DATA (version); 115 mver = XSTRING_DATA (version);
116 116
117 dlhandle = 0; 117 dlhandle = 0;
118 record_unwind_protect (module_load_unwind, make_int(modnum)); 118 record_unwind_protect (module_load_unwind, make_fixnum(modnum));
119 emodules_load (mod, mname, mver); 119 emodules_load (mod, mname, mver);
120 unbind_to (speccount); 120 unbind_to (speccount);
121 121
122 return Qt; 122 return Qt;
123 } 123 }
281 dll_close (dlhandle); 281 dll_close (dlhandle);
282 dlhandle = 0; 282 dlhandle = 0;
283 283
284 if (CONSP (upto)) 284 if (CONSP (upto))
285 { 285 {
286 if (INTP (XCAR (upto))) 286 if (FIXNUMP (XCAR (upto)))
287 l = XINT (XCAR (upto)); 287 l = XFIXNUM (XCAR (upto));
288 free_cons (upto); 288 free_cons (upto);
289 } 289 }
290 else 290 else
291 l = XINT (upto); 291 l = XFIXNUM (upto);
292 292
293 /* 293 /*
294 * Here we need to go through and dlclose() (IN REVERSE ORDER!) any 294 * Here we need to go through and dlclose() (IN REVERSE ORDER!) any
295 * modules that were loaded as part of this load chain. We only mark 295 * modules that were loaded as part of this load chain. We only mark
296 * the slots as closed if the dlclose() succeeds. 296 * the slots as closed if the dlclose() succeeds.