summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/conf/conf_lcl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/conf/conf_lcl.h')
-rw-r--r--src/lib/libcrypto/conf/conf_lcl.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/libcrypto/conf/conf_lcl.h b/src/lib/libcrypto/conf/conf_lcl.h
index 4e5644ed79..f9a015df57 100644
--- a/src/lib/libcrypto/conf/conf_lcl.h
+++ b/src/lib/libcrypto/conf/conf_lcl.h
@@ -71,6 +71,7 @@
71#define CONF_ALPHA_NUMERIC_PUNCT (CONF_ALPHA|CONF_NUMBER|CONF_UNDER| \ 71#define CONF_ALPHA_NUMERIC_PUNCT (CONF_ALPHA|CONF_NUMBER|CONF_UNDER| \
72 CONF_PUNCTUATION) 72 CONF_PUNCTUATION)
73 73
74#ifndef CHARSET_EBCDIC
74#define IS_COMMENT(a) (CONF_COMMENT&(CONF_type[(a)&0x7f])) 75#define IS_COMMENT(a) (CONF_COMMENT&(CONF_type[(a)&0x7f]))
75#define IS_EOF(a) ((a) == '\0') 76#define IS_EOF(a) ((a) == '\0')
76#define IS_ESC(a) ((a) == '\\') 77#define IS_ESC(a) ((a) == '\\')
@@ -81,6 +82,19 @@
81 (CONF_type[(a)&0x7f]&CONF_ALPHA_NUMERIC_PUNCT) 82 (CONF_type[(a)&0x7f]&CONF_ALPHA_NUMERIC_PUNCT)
82#define IS_QUOTE(a) (CONF_type[(a)&0x7f]&CONF_QUOTE) 83#define IS_QUOTE(a) (CONF_type[(a)&0x7f]&CONF_QUOTE)
83 84
85#else /*CHARSET_EBCDIC*/
86
87#define IS_COMMENT(a) (CONF_COMMENT&(CONF_type[os_toascii[a]&0x7f]))
88#define IS_EOF(a) (os_toascii[a] == '\0')
89#define IS_ESC(a) (os_toascii[a] == '\\')
90#define IS_NUMER(a) (CONF_type[os_toascii[a]&0x7f]&CONF_NUMBER)
91#define IS_WS(a) (CONF_type[os_toascii[a]&0x7f]&CONF_WS)
92#define IS_ALPHA_NUMERIC(a) (CONF_type[os_toascii[a]&0x7f]&CONF_ALPHA_NUMERIC)
93#define IS_ALPHA_NUMERIC_PUNCT(a) \
94 (CONF_type[os_toascii[a]&0x7f]&CONF_ALPHA_NUMERIC_PUNCT)
95#define IS_QUOTE(a) (CONF_type[os_toascii[a]&0x7f]&CONF_QUOTE)
96#endif /*CHARSET_EBCDIC*/
97
84static unsigned short CONF_type[128]={ 98static unsigned short CONF_type[128]={
85 0x008,0x000,0x000,0x000,0x000,0x000,0x000,0x000, 99 0x008,0x000,0x000,0x000,0x000,0x000,0x000,0x000,
86 0x000,0x010,0x010,0x000,0x000,0x010,0x000,0x000, 100 0x000,0x010,0x010,0x000,0x000,0x010,0x000,0x000,