From 87be5b9a417ba1d70137257e0f31210b08b6fc20 Mon Sep 17 00:00:00 2001 From: h_vogt Date: Mon, 21 Nov 2016 22:49:02 +0100 Subject: [PATCH] Do not set Bit 8 in an ANSI char, when \ or ^ occured in a string. Thus the full ANSI set is now available in ngspice strings. The setting of Bit 8 was not exploitet anywhere, but did not allow using the characters from extended ANSI. --- src/include/ngspice/wordlist.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/include/ngspice/wordlist.h b/src/include/ngspice/wordlist.h index 6fa8f6633..1d9af7df8 100644 --- a/src/include/ngspice/wordlist.h +++ b/src/include/ngspice/wordlist.h @@ -35,11 +35,16 @@ wordlist *wl_find(const char *string, const wordlist *wlist); void wl_delete_slice(wordlist *from, wordlist *to); +#ifdef QUOTE_CHAR /* For quoting individual characters. '' strings are all quoted, but * `` and "" strings are maintained as single words with the quotes * around them. Note that this won't work on non-ascii machines. */ #define quote(c) ((c) | 0200) #define strip(c) ((c) & 0177) +#else +#define quote(c) (c) +#define strip(c) (c) +#endif #endif