comparison src/syntax.c @ 17126:f8d7263cce09

(init_syntax_once): Add trick to avoid compiler warning of "comparison is always 1 ...".
author Kenichi Handa <handa@m17n.org>
date Fri, 28 Feb 1997 01:38:57 +0000
parents dfe4f98935c4
children 36483a1ada24
comparison
equal deleted inserted replaced
17125:4a6c43010388 17126:f8d7263cce09
1849 Qnil)))))))); 1849 Qnil))))))));
1850 } 1850 }
1851 1851
1852 init_syntax_once () 1852 init_syntax_once ()
1853 { 1853 {
1854 register int i; 1854 register int i, c;
1855 Lisp_Object temp; 1855 Lisp_Object temp;
1856 1856
1857 /* This has to be done here, before we call Fmake_char_table. */ 1857 /* This has to be done here, before we call Fmake_char_table. */
1858 Qsyntax_table = intern ("syntax-table"); 1858 Qsyntax_table = intern ("syntax-table");
1859 staticpro (&Qsyntax_table); 1859 staticpro (&Qsyntax_table);
1905 SET_RAW_SYNTAX_ENTRY (Vstandard_syntax_table, '\\', 1905 SET_RAW_SYNTAX_ENTRY (Vstandard_syntax_table, '\\',
1906 Fcons (make_number ((int) Sescape), Qnil)); 1906 Fcons (make_number ((int) Sescape), Qnil));
1907 1907
1908 temp = XVECTOR (Vsyntax_code_object)->contents[(int) Ssymbol]; 1908 temp = XVECTOR (Vsyntax_code_object)->contents[(int) Ssymbol];
1909 for (i = 0; i < 10; i++) 1909 for (i = 0; i < 10; i++)
1910 SET_RAW_SYNTAX_ENTRY (Vstandard_syntax_table, "_-+*/&|<>="[i], temp); 1910 {
1911 c = "_-+*/&|<>="[i];
1912 SET_RAW_SYNTAX_ENTRY (Vstandard_syntax_table, c, temp);
1913 }
1911 1914
1912 temp = XVECTOR (Vsyntax_code_object)->contents[(int) Spunct]; 1915 temp = XVECTOR (Vsyntax_code_object)->contents[(int) Spunct];
1913 for (i = 0; i < 12; i++) 1916 for (i = 0; i < 12; i++)
1914 SET_RAW_SYNTAX_ENTRY (Vstandard_syntax_table, ".,;:?!#@~^'`"[i], temp); 1917 {
1918 c = ".,;:?!#@~^'`"[i];
1919 SET_RAW_SYNTAX_ENTRY (Vstandard_syntax_table, c, temp);
1920 }
1915 } 1921 }
1916 1922
1917 syms_of_syntax () 1923 syms_of_syntax ()
1918 { 1924 {
1919 Qsyntax_table_p = intern ("syntax-table-p"); 1925 Qsyntax_table_p = intern ("syntax-table-p");