I updated my FreeBSD box to 2.2.6 version, yesterday.
Martin Buchholz <martin(a)xemacs.org> writes:
>>>>> "S" == SAKIYAMA Nobuo
<nobuo(a)db3.so-net.or.jp> writes:
S> Another solution is to set the variables in C ,not in elisp, if
S> FLT_RADIX, FLT_ROUNDS
S> DBL_MANT_DIG, DBL_EPSILON,
S> DBL_DIG, DBL_MIN_EXP,
S> DBL_MIN, DBL_MIN_10_EXP
S> DBL_MAX_EXP, DBL_MAX
S> DBL_MAX_10_EXP
S> (included from <float.h>) is usable for the purpose.
Yes. XEmacs assumes an ANSI-C environment, and all the above values
can be expected to exist, even without a configure test. So all these
values should be accessed using C, and exported to lisp where
necessary.
This is another area where the K&R C heritage of Emacs shows through.
We should strive to modernize all of these.
Martin
For the time being (in Japanese, I mean that "toriaezu"), I added a
condition which avoids FPE in make_float (in src/alloc.c).
It is simple but still working (I'm writing this on it).
I'm _not_ sure that my approach is correct or not...
The condition is; if the temacs is running (dumping time), and if the
float_value is greater or smaller than limited value using FLT_MIN and
FLT_MAX, then set it to 0.
(I afraid of testing running-temacs-p makes things slower)
XEmacs Build Report as generated
by build-report-version 1.35 follows:
Contents of /blah/src/emacs/xemacs-beta/Installation:
(Output from most recent run of ./configure)
uname -a: FreeBSD skywalk.jsys.co.jp 2.2.6-RELEASE FreeBSD 2.2.6-RELEASE #0: Wed Mar 25
02:28:49 GMT 1998 jkh@time.cdrom.com:/usr/src/sys/compile/GENERIC i386
./configure '--with-mule' '--site-includes=/usr/local/include
/usr/X11R6/include' '--site-libraries=/usr/local/lib /usr/X11R6/lib'
'--with-xfs' '--with-pop' '--gung-ho' '--with-gnu-make'
'--with-xim=no'
XEmacs 21.0-b40 "Saanen" configured for `i386-unknown-freebsd2.2.6'.
Where should the build process find the source code? /blah/src/emacs/xemacs-beta
What installation prefix should install use? /usr/local
What operating system and machine description files should XEmacs use?
`s/freebsd.h' and `m/intel386.h'
What compiler should XEmacs be built with? /usr/bin/cc -g -O2 -Wall
-Wno-switch
Should XEmacs use the GNU version of malloc? yes
Should XEmacs use the relocating allocator for buffers? yes
What window system should XEmacs use? x11
Where do we find X Windows header files? /usr/X11R6/include
Where do we find X Windows libraries? /usr/X11R6/lib
Additional header files: /usr/local/include
/usr/X11R6/include
Additional libraries: /usr/local/lib /usr/X11R6/lib
Runtime library search path: /usr/local/lib
Compiling in support for XAUTH.
Compiling in support for XPM images.
Compiling in support for X-Face message headers.
Compiling in support for GIF image conversion.
Compiling in support for JPEG image conversion.
Compiling in support for PNG image conversion.
Compiling in support for TIFF image conversion.
Compiling in native sound support.
Compiling in support for Berkeley DB.
Compiling in support for GNU DBM.
Compiling in Mule (multi-lingual) support.
Using XFontSet to provide bilingual menubar.
Compiling in support for Canna on Mule.
Compiling in support for the WNN input method on Mule.
Using WNN version 6.
Compiling in support for OffiX.
Compiling in support for Drag'n'Drop ( OffiX ).
Compiling in support for proper session-management.
Using Lucid menubars.
Using Lucid scrollbars.
Using Athena dialog boxes.
Compiling in DLL support.
movemail will use "flock" for locking mail spool files.
Using POP for mail access
Using Lisp_Objects with minimal tagbits.
Using indexed lrecord implementation.
Compiling in extra code for debugging.
Compiling in code for checking XEmacs memory usage.
WARNING: ---------------------------------------------------------
WARNING: Compiling in support for runtime error checking.
WARNING: XEmacs will run noticeably more slowly as a result.
WARNING: Error checking is on by default for XEmacs beta releases.
WARNING: ---------------------------------------------------------
Contents of /blah/src/emacs/xemacs-beta/beta.err
keeping lines matching
"^--\[\[\|\]\]$\|make\[\|error\|warn\|pure.*\(space\|size\)\|hides\b\|strange\|shadowings\|^Compilation\|not\s-+found"
and then deleting lines matching
"confl.*with.*auto-inlining\|/blah/src/emacs/xemacs-beta/lisp/[^
]+ hides
"
/blah/src/emacs/xemacs-beta/lib-src/ootags.c:1912: warning: array subscript has type
`char'
/blah/src/emacs/xemacs-beta/lib-src/ootags.c:1912: warning: array subscript has type
`char'
mule-canna.c:433: warning: implicit declaration of function `wcKanjiControl'
mule-canna.c:782: warning: `endp' might be used uninitialized in this function
mule-canna.c:801: warning: `_obj' might be used uninitialized in this function
event-tty.c:132: warning: implicit declaration of function `select'
fileio.c:1292: warning: implicit declaration of function `xrealpath'
search.c:2265: warning: `prev' might be used uninitialized in this function
search.c:2325: warning: `_obj' might be used uninitialized in this function
redisplay-x.c:2262: warning: implicit declaration of function `select'
window.c:4382: warning: control reaches end of non-void function
window.c:993: warning: `window_right_toolbar_width' defined but not used