Mercurial > hg > xemacs-beta
view netinstall/resource.h @ 4885:6772ce4d982b
Fix hash tables, #'member*, #'assoc*, #'eql compiler macros if bignums
lisp/ChangeLog addition:
2010-01-24 Aidan Kehoe <kehoea@parhasard.net>
Correct the semantics of #'member*, #'eql, #'assoc* in the
presence of bignums; change the integerp byte code to fixnump
semantics.
* bytecomp.el (fixnump, integerp, byte-compile-integerp):
Change the integerp byte code to fixnump; add a byte-compile
method to integerp using fixnump and numberp and avoiding a
funcall most of the time, since in the non-core contexts where
integerp is used, it's mostly distinguishing between fixnums and
things that are not numbers at all.
* byte-optimize.el (side-effect-free-fns, byte-after-unbind-ops)
(byte-compile-side-effect-and-error-free-ops):
Replace the integerp bytecode with fixnump; add fixnump to the
side-effect-free-fns. Add the other extended number type
predicates to the list in passing.
* obsolete.el (floatp-safe): Mark this as obsolete.
* cl.el (eql): Go into more detail in the docstring here. Don't
bother checking whether both arguments are numbers; one is enough,
#'equal will fail correctly if they have distinct types.
(subst): Replace a call to #'integerp (deciding whether to use
#'memq or not) with one to #'fixnump.
Delete most-positive-fixnum, most-negative-fixnum from this file;
they're now always in C, so they can't be modified from Lisp.
* cl-seq.el (member*, assoc*, rassoc*):
Correct these functions in the presence of bignums.
* cl-macs.el (cl-make-type-test): The type test for a fixnum is
now fixnump. Ditch floatp-safe, use floatp instead.
(eql): Correct this compiler macro in the presence of bignums.
(assoc*): Correct this compiler macro in the presence of bignums.
* simple.el (undo):
Change #'integerp to #'fixnump here, since we use #'delq with the
same value as ELT a few lines down.
src/ChangeLog addition:
2010-01-24 Aidan Kehoe <kehoea@parhasard.net>
Fix problems with #'eql, extended number types, and the hash table
implementation; change the Bintegerp bytecode to fixnump semantics
even on bignum builds, since #'integerp can have a fast
implementation in terms of #'fixnump for most of its extant uses,
but not vice-versa.
* lisp.h: Always #include number.h; we want the macros provided in
it, even if the various number types are not available.
* number.h (NON_FIXNUM_NUMBER_P): New macro, giving 1 when its
argument is of non-immediate number type. Equivalent to FLOATP if
WITH_NUMBER_TYPES is not defined.
* elhash.c (lisp_object_eql_equal, lisp_object_eql_hash):
Use NON_FIXNUM_NUMBER_P in these functions, instead of FLOATP,
giving more correct behaviour in the presence of the extended
number types.
* bytecode.c (Bfixnump, execute_optimized_program):
Rename Bintegerp to Bfixnump; change its semantics to reflect the
new name on builds with bignum support.
* data.c (Ffixnump, Fintegerp, syms_of_data, vars_of_data):
Always make #'fixnump available, even on non-BIGNUM builds;
always implement #'integerp in this file, even on BIGNUM builds.
Move most-positive-fixnum, most-negative-fixnum here from
number.c, so they are Lisp constants even on builds without number
types, and attempts to change or bind them error.
Use the NUMBERP and INTEGERP macros even on builds without
extended number types.
* data.c (fixnum_char_or_marker_to_int):
Rename this function from integer_char_or_marker_to_int, to better
reflect the arguments it accepts.
* number.c (Fevenp, Foddp, syms_of_number):
Never provide #'integerp in this file. Remove #'oddp,
#'evenp; their implementations are overridden by those in cl.el.
* number.c (vars_of_number):
most-positive-fixnum, most-negative-fixnum are no longer here.
man/ChangeLog addition:
2010-01-23 Aidan Kehoe <kehoea@parhasard.net>
Generally: be careful to say fixnum, not integer, when talking
about fixed-precision integral types. I'm sure I've missed
instances, both here and in the docstrings, but this is a decent
start.
* lispref/text.texi (Columns):
Document where only fixnums, not integers generally, are accepted.
(Registers):
Remove some ancient char-int confoundance here.
* lispref/strings.texi (Creating Strings, Creating Strings):
Be more exact in describing where fixnums but not integers in
general are accepted.
(Creating Strings): Use a more contemporary example to illustrate
how concat deals with lists including integers about #xFF. Delete
some obsolete documentation on same.
(Char Table Types): Document that only fixnums are accepted as
values in syntax tables.
* lispref/searching.texi (String Search, Search and Replace):
Be exact in describing where fixnums but not integers in general
are accepted.
* lispref/range-tables.texi (Range Tables): Be exact in describing
them; only fixnums are accepted to describe ranges.
* lispref/os.texi (Killing XEmacs, User Identification)
(Time of Day, Time Conversion):
Be more exact about using fixnum where only fixed-precision
integers are accepted.
* lispref/objects.texi (Integer Type): Be more exact (and
up-to-date) about the possible values for
integers. Cross-reference to documentation of the bignum extension.
(Equality Predicates):
(Range Table Type):
(Array Type): Use fixnum, not integer, to describe a
fixed-precision integer.
(Syntax Table Type): Correct some English syntax here.
* lispref/numbers.texi (Numbers): Change the phrasing here to use
fixnum to mean the fixed-precision integers normal in emacs.
Document that our terminology deviates from that of Common Lisp,
and that we're working on it.
(Compatibility Issues): Reiterate the Common Lisp versus Emacs
Lisp compatibility issues.
(Comparison of Numbers, Arithmetic Operations):
* lispref/commands.texi (Command Loop Info, Working With Events):
* lispref/buffers.texi (Modification Time):
Be more exact in describing where fixnums but not integers in
general are accepted.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Sun, 24 Jan 2010 15:21:27 +0000 |
parents | 943eaba38521 |
children |
line wrap: on
line source
//{{NO_DEPENDENCIES}} // Microsoft Developer Studio generated include file. // Used by res.rc // #define IDS_ROOT_SLASH 1 #define IDS_ROOT_SPACE 2 #define IDS_CWD_NONEMPTY 3 #define IDS_MIRROR_LST 6 #define IDS_DIALOG_FAILED 7 #define IDS_CYGWIN_FUNC_MISSING 8 #define IDS_DOWNLOAD_SHORT 9 #define IDS_ERR_OPEN_WRITE 10 #define IDS_SETUPINI_MISSING 11 #define IDS_OLD_SETUPINI 12 #define IDS_ERR_RENAME 13 #define IDS_NOTHING_INSTALLED 14 #define IDS_INSTALL_COMPLETE 15 #define IDS_ERR_OPEN_READ 16 #define IDS_ROOT_ABSOLUTE 17 #define IDS_DOWNLOAD_COMPLETE 18 #define IDS_CVSID 19 #define IDS_NOLOGFILE 20 #define IDS_UNINSTALL_COMPLETE 21 #define IDS_WININET 22 #define IDS_ERR_CHDIR 23 #define IDS_OLD_SETUP_VERSION 24 #define IDS_DOWNLOAD_FAILED 25 #define IDS_DOWNLOAD_INCOMPLETE 26 #define IDS_INSTALL_INCOMPLETE 27 #define IDS_ROOT_NOCYGWIN 28 #define IDS_CREATE_DIR 29 #define IDD_ROOT 101 #define IDD_SOURCE 102 #define IDD_OTHER_URL 103 #define IDD_SITE 104 #define IDD_NET 105 #define IDD_DLSTATUS 106 #define IDD_S_LOAD_INI 107 #define IDD_S_FROM_CWD 108 #define IDD_CHOOSE 109 #define IDD_S_DOWNLOAD 110 #define IDD_S_INSTALL 111 #define IDD_INSTATUS 112 #define IDD_DESKTOP 113 #define IDD_PROXY_AUTH 114 #define IDD_S_POSTINSTALL 115 #define IDD_NET_AUTH 116 #define IDD_SPLASH 117 #define IDB_SPIN 118 #define IDB_RTARROW 119 #define IDI_SPIN 120 #define IDI_XEMACS 121 #define IDD_LOCAL_DIR 122 #define IDB_CHECK_YES 123 #define IDB_CHECK_NO 124 #define IDB_CHECK_NA 125 #define IDB_GNU 126 #define IDD_UNINSTALL 127 #define IDC_SOURCE_DOWNLOAD 1000 #define IDC_SOURCE_NETINST 1001 #define IDC_SOURCE_CWD 1002 #define IDC_ROOT_DIR 1003 #define IDC_ROOT_BROWSE 1004 #define IDC_ROOT_TEXT 1005 #define IDC_ROOT_BINARY 1006 #define IDC_URL_LIST 1007 #define IDC_SITE_NEXT 1008 #define IDC_BACK 1009 #define IDC_OTHER_URL 1010 #define IDC_NET_IE5 1011 #define IDC_NET_DIRECT 1012 #define IDC_NET_PROXY 1013 #define IDC_PROXY_HOST 1014 #define IDC_PROXY_PORT 1015 #define IDC_PROXY_USER 1016 #define IDC_DLS_PROGRESS 1019 #define IDC_DLS_URL 1020 #define IDC_DLS_RATE 1021 #define IDC_INS_PKG 1022 #define IDC_INS_FILE 1023 #define IDC_INS_DISKFULL 1024 #define IDC_INS_IPROGRESS 1025 #define IDC_INS_PPROGRESS 1026 #define IDC_ROOT_SYSTEM 1028 #define IDC_ROOT_USER 1029 #define IDC_NET_USER 1030 #define IDC_NET_PASSWD 1031 #define IDC_VERSION 1033 #define IDC_LISTVIEW_POS 1034 #define IDC_CHOOSE_FULLPART 1035 #define IDC_CHOOSE_EXP 1036 #define IDC_CHOOSE_CURR 1037 #define IDC_CHOOSE_PREV 1038 #define IDC_CHOOSE_LIST 1039 #define IDC_INS_ACTION 1040 #define IDC_ROOT_DESKTOP 1041 #define IDC_ROOT_MENU 1042 #define IDC_LOCAL_DIR_BROWSE 1043 #define IDC_TXT_TYPE 1043 #define IDC_LOCAL_DIR 1044 #define IDC_JAVA_TYPE 1044 #define IDC_INSTALL_NATIVE 1045 #define IDC_C_TYPE 1045 #define IDC_INSTALL_CYGWIN 1046 #define IDC_CPP_TYPE 1046 #define IDC_UNINS_PKG 1047 #define IDC_ELISP_TYPE 1047 #define IDC_UNINS_FILE 1048 #define IDC_IDL_TYPE 1048 #define IDC_UNINS_DISKFULL 1049 #define IDC_UNINS_IPROGRESS 1050 #define IDC_UNINS_PPROGRESS 1051 #define IDC_UNINS_ACTION 1052 #define IDC_STATIC -1 // Next default values for new objects // #ifdef APSTUDIO_INVOKED #ifndef APSTUDIO_READONLY_SYMBOLS #define _APS_NO_MFC 1 #define _APS_3D_CONTROLS 1 #define _APS_NEXT_RESOURCE_VALUE 127 #define _APS_NEXT_COMMAND_VALUE 40003 #define _APS_NEXT_CONTROL_VALUE 1050 #define _APS_NEXT_SYMED_VALUE 101 #endif #endif