Lines Matching defs:ast
3 * This software is part of the ast package *
27 * std + posix + ast
41 #ifndef ast
42 #define ast _ast_info
181 #define mbmax() (ast.mb_cur_max)
182 #define mberr() (ast.tmp_int<0)
184 #define mbcoll() (ast.mb_xfrm!=0)
187 #define mb2wc(w,p,n) (*ast.mb_towc)(&w,(char*)p,n)
188 #define mbchar(p) (mbwide()?((ast.tmp_int=(*ast.mb_towc)(&ast.tmp_wchar,(char*)(p),mbmax()))>0?((p+=ast.tmp_int),ast.tmp_wchar):(p+=ast.mb_sync+1,ast.tmp_int)):(*(unsigned char*)(p++)))
189 #define mbnchar(p,n) (mbwide()?((ast.tmp_int=(*ast.mb_towc)(&ast.tmp_wchar,(char*)(p),n))>0?((p+=ast.tmp_int),ast.tmp_wchar):(p+=ast.mb_sync+1,ast.tmp_int)):(*(unsigned char*)(p++)))
190 #define mbinit() (mbwide()?(*ast.mb_towc)((wchar_t*)0,(char*)0,mbmax()):0)
191 #define mbsize(p) (mbwide()?(*ast.mb_len)((char*)(p),mbmax()):((p),1))
192 #define mbnsize(p,n) (mbwide()?(*ast.mb_len)((char*)(p),n):((p),1))
193 #define mbconv(s,w) (ast.mb_conv?(*ast.mb_conv)(s,w):((*(s)=(w)),1))
194 #define mbwidth(w) (ast.mb_width?(*ast.mb_width)(w):1)
195 #define mbxfrm(t,f,n) (mbcoll()?(*ast.mb_xfrm)((char*)(t),(char*)(f),n):0)
196 #define mbalpha(w) (ast.mb_alpha?(*ast.mb_alpha)(w):isalpha((w)&0xff))