Lines Matching refs:s2
99 #define SJIS_ENCODE(c1,c2,s1,s2) \ argument
109 s2 = c2; \
112 s2--; \
114 s2 += 0x20; \
116 s2 += 0x7e; \
120 #define SJIS_DECODE(c1,c2,s1,s2) \ argument
130 s2 = c2; \
131 if (s2 < 0x9f) { \
132 if (s2 < 0x7f) { \
133 s2++; \
135 s2 -= 0x20; \
138 s2 -= 0x7e; \
148 int c1, s, s1, s2, w; in mbfl_filt_conv_sjis_open_wchar() local
171 SJIS_DECODE(c1, c, s1, s2); in mbfl_filt_conv_sjis_open_wchar()
172 s = (s1 - 0x21)*94 + s2 - 0x21; in mbfl_filt_conv_sjis_open_wchar()
204 w = (s1 << 8) | s2; in mbfl_filt_conv_sjis_open_wchar()
233 int c1, c2, s1, s2; in mbfl_filt_conv_wchar_sjis_open() local
236 s2 = 0; in mbfl_filt_conv_wchar_sjis_open()
250 s2 = 1; in mbfl_filt_conv_wchar_sjis_open()
256 s2 = 1; in mbfl_filt_conv_wchar_sjis_open()
282 if ((s1 <= 0) || (s1 >= 0x8080 && s2 == 0)) { /* not found or X 0212 */ in mbfl_filt_conv_wchar_sjis_open()
317 SJIS_ENCODE(c1, c2, s1, s2); in mbfl_filt_conv_wchar_sjis_open()
319 CK((*filter->output_function)(s2, filter->data)); in mbfl_filt_conv_wchar_sjis_open()