aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer <[email protected]>1997-04-03 21:34:11 +0000
committerKarl Heuer <[email protected]>1997-04-03 21:34:11 +0000
commit7ad11f7e0d5888f582d734f9a88eced848d4f314 (patch)
treeaea45d64521a84989fce78fcd48225f4a6ac1815
parentf7d47e20236f69df265cae6bacb4626180d3e55d (diff)
(CHAR_TABLE_REF): Fix syntax error.
(LOWERCASEP): Use NOCASEP instead of its expansion. (UPCASE): Use UPPERCASEP instead of its expansion.
-rw-r--r--src/lisp.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/lisp.h b/src/lisp.h
index d8232501bc..ac351d88af 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -592,7 +592,7 @@ struct Lisp_Vector
(CHAR_TABLE_P (CT) && IDX >= 0 && IDX < CHAR_TABLE_SINGLE_BYTE_SLOTS \
? (!NILP (XCHAR_TABLE (CT)->contents[IDX]) \
? XCHAR_TABLE (CT)->contents[IDX] \
- : XCHAR_TABLE (CT)->default) \
+ : XCHAR_TABLE (CT)->defalt) \
: Faref (CT, IDX))
/* Equivalent to Faset (CT, IDX, VAL) with optimization for ASCII and
@@ -1290,9 +1290,7 @@ extern char *stack_bottom;
/* 1 if CH is lower case. */
-#define LOWERCASEP(CH) \
- (!UPPERCASEP (CH) \
- && XCHAR_TABLE (current_buffer->upcase_table)->contents[CH] != (CH))
+#define LOWERCASEP(CH) (!UPPERCASEP (CH) && !NOCASEP(CH))
/* 1 if CH is neither upper nor lower case. */
@@ -1301,9 +1299,7 @@ extern char *stack_bottom;
/* Upcase a character, or make no change if that cannot be done. */
-#define UPCASE(CH) \
- (XCHAR_TABLE (current_buffer->downcase_table)->contents[CH] == (CH) \
- ? UPCASE1 (CH) : (CH))
+#define UPCASE(CH) (!UPPERCASEP (CH) ? UPCASE1 (CH) : (CH))
/* Upcase a character known to be not upper case. */