ast.h revision 1
1N/A#pragma prototyped
1N/A#ifndef _AST_STD_H
1N/A#ifndef __FILE_typedef
1N/A#ifndef _FILEDEFED
1N/A#define EXITED_CORE(x) (((x)&((1<<EXIT_BITS)|(1<<(EXIT_BITS-1))))==((1<<EXIT_BITS)|(1<<(EXIT_BITS-1)))||((x)&((1<<(EXIT_BITS-1))|(1<<(EXIT_BITS-2))))==((1<<(EXIT_BITS-1))|(1<<(EXIT_BITS-2))))
1N/A#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++)))
1N/A#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++)))
1N/A#define elementsof(x) (sizeof(x)/sizeof(x[0]))
1N/A#define integralof(x) (((char*)(x))-((char*)0))
1N/A#define newof(p,t,n,x) ((p)?(t*)realloc((char*)(p),sizeof(t)*(n)+(x)):(t*)calloc(1,sizeof(t)*(n)+(x)))
1N/A#define oldof(p,t,n,x) ((p)?(t*)realloc((char*)(p),sizeof(t)*(n)+(x)):(t*)malloc(sizeof(t)*(n)+(x)))
1N/Atypedef int (*Ast_confdisc_f)(const char*, const char*, const char*);
1N/Atypedef int (*Strcmp_context_f)(const char*, const char*, void*);
1N/A#define extern __EXPORT__
1N/Aextern int astlicense(char*, int, char*, char*, int, int, int);
1N/Aextern void astwinsize(int, int*, int*);
1N/Aextern char* fmtelapsed(unsigned long, int);
1N/Aextern char* fmtversion(unsigned long);
1N/Aextern char* pathaccess(char*, const char*, const char*, const char*, int);
1N/Aextern int pathexists(char*, int);
1N/Aextern int pathgetlink(const char*, char*, int);
1N/Aextern int pathinclude(const char*);
1N/Aextern char* pathkey_20100601(const char*, const char*, const char*, char*, size_t, char*, size_t);
1N/Aextern char* pathprobe_20100601(const char*, const char*, const char*, int, char*, size_t, char*, size_t);
1N/Aextern int pathsetlink(const char*, const char*);
1N/Aextern char* setenviron(const char*);
1N/Aextern unsigned long strelapsed(const char*, char**, int);
1N/Aextern int strgrpmatch(const char*, const char*, int*, int, int);
1N/Aextern int stropt(const char*, const void*, int, int(*)(void*, const void*, int, const char*), void*);
1N/Aextern char* strsubmatch(const char*, const char*, int);
1N/A#if defined(__EXPORT__)
1N/A#define extern __EXPORT__
1N/Aextern unsigned long plugin_version(void);