shithub: sl

Download patch

ref: fd0240210b708674a1c473384a0146536f5f24c7
parent: 8b662fbc57beda8a55b68b4baad6ecf49afef454
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Wed Jul 12 15:20:46 EDT 2023

symchar: move the string inside strchr call

--- a/read.h
+++ b/read.h
@@ -9,8 +9,7 @@
 // exceptions are '.', which is an ordinary symbol character
 // unless it's the only character in the symbol, and '#', which is
 // an ordinary symbol character unless it's the first character.
-#define symchar(c) (!strchr(symspecials, (c)))
-static char symspecials[] = "()[]'\";`,\\| \a\b\f\n\r\t\v";
+#define symchar(c) (!strchr("()[]'\";`,\\| \a\b\f\n\r\t\v", (c)))
 
 #endif
 
--