aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1997-04-03 21:34:11 +0000
committerKarl Heuer1997-04-03 21:34:11 +0000
commit7ad11f7e0d5888f582d734f9a88eced848d4f314 (patch)
treeaea45d64521a84989fce78fcd48225f4a6ac1815 /src
parentf7d47e20236f69df265cae6bacb4626180d3e55d (diff)
downloademacs-7ad11f7e0d5888f582d734f9a88eced848d4f314.tar.gz
emacs-7ad11f7e0d5888f582d734f9a88eced848d4f314.zip
(CHAR_TABLE_REF): Fix syntax error.
(LOWERCASEP): Use NOCASEP instead of its expansion. (UPCASE): Use UPPERCASEP instead of its expansion.
Diffstat (limited to 'src')
-rw-r--r--src/lisp.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/lisp.h b/src/lisp.h
index d8232501bcc..ac351d88af9 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -592,7 +592,7 @@ struct Lisp_Vector
592 (CHAR_TABLE_P (CT) && IDX >= 0 && IDX < CHAR_TABLE_SINGLE_BYTE_SLOTS \ 592 (CHAR_TABLE_P (CT) && IDX >= 0 && IDX < CHAR_TABLE_SINGLE_BYTE_SLOTS \
593 ? (!NILP (XCHAR_TABLE (CT)->contents[IDX]) \ 593 ? (!NILP (XCHAR_TABLE (CT)->contents[IDX]) \
594 ? XCHAR_TABLE (CT)->contents[IDX] \ 594 ? XCHAR_TABLE (CT)->contents[IDX] \
595 : XCHAR_TABLE (CT)->default) \ 595 : XCHAR_TABLE (CT)->defalt) \
596 : Faref (CT, IDX)) 596 : Faref (CT, IDX))
597 597
598/* Equivalent to Faset (CT, IDX, VAL) with optimization for ASCII and 598/* Equivalent to Faset (CT, IDX, VAL) with optimization for ASCII and
@@ -1290,9 +1290,7 @@ extern char *stack_bottom;
1290 1290
1291/* 1 if CH is lower case. */ 1291/* 1 if CH is lower case. */
1292 1292
1293#define LOWERCASEP(CH) \ 1293#define LOWERCASEP(CH) (!UPPERCASEP (CH) && !NOCASEP(CH))
1294 (!UPPERCASEP (CH) \
1295 && XCHAR_TABLE (current_buffer->upcase_table)->contents[CH] != (CH))
1296 1294
1297/* 1 if CH is neither upper nor lower case. */ 1295/* 1 if CH is neither upper nor lower case. */
1298 1296
@@ -1301,9 +1299,7 @@ extern char *stack_bottom;
1301 1299
1302/* Upcase a character, or make no change if that cannot be done. */ 1300/* Upcase a character, or make no change if that cannot be done. */
1303 1301
1304#define UPCASE(CH) \ 1302#define UPCASE(CH) (!UPPERCASEP (CH) ? UPCASE1 (CH) : (CH))
1305 (XCHAR_TABLE (current_buffer->downcase_table)->contents[CH] == (CH) \
1306 ? UPCASE1 (CH) : (CH))
1307 1303
1308/* Upcase a character known to be not upper case. */ 1304/* Upcase a character known to be not upper case. */
1309 1305