* numbers.h (SCM_SLOPPY_FRACTIONP): Removed. It was not used
[bpt/guile.git] / libguile / ChangeLog
CommitLineData
651f07f8
DH
12004-05-15 Dirk Herrmann <dirk@dirk-herrmanns-seiten.de>
2
3 * numbers.h (SCM_SLOPPY_FRACTIONP): Removed. It was not used
4 throughout guile, has not been part of an official release yet,
5 and the concept of sloppy predicates has never been a good idea.
6
7 (SCM_FRACTION_NUMERATOR, SCM_FRACTION_DENOMINATOR,
8 SCM_FRACTION_SET_NUMERATOR, SCM_FRACTION_SET_DENOMINATOR):
9 Simplified.
10
770e048f
DH
112004-05-15 Dirk Herrmann <dirk@dirk-herrmanns-seiten.de>
12
13 * throw.c (SETJBJMPBUF, SCM_SETJBDFRAME): Add cast to scm_t_bits
14 to make explicit what happens.
15
2ff08405
DH
162004-05-15 Dirk Herrmann <dirk@dirk-herrmanns-seiten.de>
17
18 * dynl.c (SET_DYNL_HANDLE): Add cast to scm_t_bits to make
19 explicit what happens.
20
21 * guardians.c (TCONC_IN): Use SCM_SET_CELL_OBJECT_x rather than
22 SCM_SET_CELL_WORD_x when writing scheme objets to cell elements.
23
89afb9cd
MV
242004-05-11 Marius Vollmer <mvo@zagadka.de>
25
26 * scmsigs.c (scm_sigaction_for_thread): Validate that the handler
27 is indeed a procedure when it isn't a number.
28
3d5ebfa9
MV
292004-05-10 Marius Vollmer <mvo@zagadka.de>
30
31 Convert floating point numbers into strings with an arbitrary
32 radix. Thanks to Richard Todd!
33
34 * numbers.c (FLOBUFLEN): Increase so that radix 2 strings will
35 fit.
36 (fx): Removed.
37 (scm_dblprec, fx_per_radix, init_dblprec, init_fx_radix,
38 number_chars): New, to support variable radices.
39 (idbl2str): Use above instead of the old base-10 only tables.
40 (iflo2str): Pass on new RADIX argument to idbl2str.
41 (scm_number_to_string): Pass radix to iflo2str.
42 (scm_print_real, scm_print_complex): Explicitly pass radix 10 to
43 iflo2str.
44 (scm_init_numbers): Call init_dblprec and init_fx_radix for all
45 possible radices.
46
3ae69bb4
KR
472004-05-10 Kevin Ryde <user42@zip.com.au>
48
49 * numbers.c (scm_logbit_p): Correction to test above the end of an
50 inum. Reported by Jan Konecny.
51
27968825
MV
522004-05-06 Marius Vollmer <marius.vollmer@uni-dortmund.de>
53
54 * gc.h (scm_t_cell): Fields are now of type SCM instead of
55 scm_t_bits. Updated all users.
56 (SCM_GC_CARD_SIZE_MASK): Use SCM_GC_SIZEOF_CARD instead of
57 duplicating the code.
58 (SCM_CELL_OBJECT_LOC): New.
59 (SCM_CARLOC, SCM_CDRLOC): Use it instead of SCM_CELL_WORD_LOC.
60 (SCM_CELL_WORD_LOC): Moved to "deprecated.h".
61
62 * smob.h (SCM_SMOB_DATA_2, SCM_SMOB_DATA_3, SCM_SMOB_FLAGS,
63 SCM_SET_SMOB_DATA_2, SCM_SET_SMOB_DATA_3, SCM_SET_SMOB_FLAGS,
64 SCM_SMOB_OBJECT, SCM_SMOB_OBJECT_2, SCM_SMOB_OBJECT_3,
65 SCM_SET_SMOB_OBJECT, SCM_SET_SMOB_OBJECT_2, SCM_SET_SMOB_OBJECT_3,
66 SCM_SMOB_OBJECT_LOC, SCM_SMOB_OBJECT_2_LOC,
67 SCM_SMOB_OBJECT_3_LOC): New.
68 * smob.c (scm_i_set_smob_flags): New function.
69
70 * dynl.c, dynwind.c, eval.h, fluids.h, futures.h, hashtab.h,
71 hooks.h, keywords.h, macros.h, macros.c, mallocs.c, mallocs.h,
72 random.h, regex-posix.h, root.h, srcprop.h, srcprop.c, threads.h:
73 Use SCM_SMOB_* instead of SCM_CELL_* as appropriate. Use
74 SCM_SMOB_FLAGS and SCM_SET_SMOB_FLAGS instead of accessing the
75 zeroth word directly. Use SCM_SMOB_PREDICATE as appropriate.
76
77 * numbers.h (SCM_I_BIG_MPZ): Use SCM_CELL_OBJECT_LOC instead of
78 taking the address of SCM_CELL_WORD_1, the latter being no longer
79 an lvalue.
80
81 * variable.h (SCM_VARIABLE_LOC): Use SCM_CELL_OBJECT_LOC instead
82 of casting SCM_CELL_WORD_LOC.
83
3cf17ef0
KR
842004-05-02 Kevin Ryde <user42@zip.com.au>
85
37026925
KR
86 * eval.c (scm_macroexp): Add prototype, since it's not in eval.h under
87