aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-06-02 02:21:48 +0000
committerRichard M. Stallman1997-06-02 02:21:48 +0000
commite704cb4bc665c7db0bd662f69980f83f11047713 (patch)
tree46a988c6a68030fde6ece225572c30836de6ef50
parent2fd7a4a4e2a66b2c216d1161e821f1ca8e6a99fc (diff)
downloademacs-e704cb4bc665c7db0bd662f69980f83f11047713.tar.gz
emacs-e704cb4bc665c7db0bd662f69980f83f11047713.zip
(Fsyntax_table_p, check_syntax_table): Use EQ.
(Fmodify_syntax_entry): Use XINT to access c. (describe_syntax): Use XINT to access first.
-rw-r--r--src/syntax.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/syntax.c b/src/syntax.c
index 76428999ea1..0df8851c0bd 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -498,7 +498,7 @@ Currently, any char-table counts as a syntax table.")
498 Lisp_Object object; 498 Lisp_Object object;
499{ 499{
500 if (CHAR_TABLE_P (object) 500 if (CHAR_TABLE_P (object)
501 && XCHAR_TABLE (object)->purpose == Qsyntax_table) 501 && EQ (XCHAR_TABLE (object)->purpose, Qsyntax_table))
502 return Qt; 502 return Qt;
503 return Qnil; 503 return Qnil;
504} 504}
@@ -508,7 +508,7 @@ check_syntax_table (obj)
508 Lisp_Object obj; 508 Lisp_Object obj;
509{ 509{
510 if (!(CHAR_TABLE_P (obj) 510 if (!(CHAR_TABLE_P (obj)
511 && XCHAR_TABLE (obj)->purpose == Qsyntax_table)) 511 && EQ (XCHAR_TABLE (obj)->purpose, Qsyntax_table)))
512 wrong_type_argument (Qsyntax_table_p, obj); 512 wrong_type_argument (Qsyntax_table_p, obj);
513} 513}
514 514
@@ -735,11 +735,11 @@ DEFUN ("modify-syntax-entry", Fmodify_syntax_entry, Smodify_syntax_entry, 2, 3,
735 p = XSTRING (newentry)->data; 735 p = XSTRING (newentry)->data;
736 code = (enum syntaxcode) syntax_spec_code[*p++]; 736 code = (enum syntaxcode) syntax_spec_code[*p++];
737 if (((int) code & 0377) == 0377) 737 if (((int) code & 0377) == 0377)
738 error ("invalid syntax description letter: %c", c); 738 error ("invalid syntax description letter: %c", XINT (c));
739 739
740 if (code == Sinherit) 740 if (code == Sinherit)
741 { 741 {
742 SET_RAW_SYNTAX_ENTRY (syntax_table, c, Qnil); 742 SET_RAW_SYNTAX_ENTRY (syntax_table, XINT (c), Qnil);
743 return Qnil; 743 return Qnil;
744 } 744 }
745 745
@@ -791,7 +791,7 @@ DEFUN ("modify-syntax-entry", Fmodify_syntax_entry, Smodify_syntax_entry, 2, 3,
791 /* Since we can't use a shared object, let's make a new one. */ 791 /* Since we can't use a shared object, let's make a new one. */
792 newentry = Fcons (make_number (val), match); 792 newentry = Fcons (make_number (val), match);
793 793
794 SET_RAW_SYNTAX_ENTRY (syntax_table, c, newentry); 794 SET_RAW_SYNTAX_ENTRY (syntax_table, XINT (c), newentry);
795 795
796 return Qnil; 796 return Qnil;
797} 797}
@@ -836,7 +836,7 @@ describe_syntax (value)
836 return; 836 return;
837 } 837 }
838 838
839 code = (enum syntaxcode) (first & 0377); 839 code = (enum syntaxcode) (XINT (first) & 0377);
840 start1 = (XINT (first) >> 16) & 1; 840 start1 = (XINT (first) >> 16) & 1;
841 start2 = (XINT (first) >> 17) & 1; 841 start2 = (XINT (first) >> 17) & 1;
842 end1 = (XINT (first) >> 18) & 1; 842 end1 = (XINT (first) >> 18) & 1;