void _ast_init(void) { struct _astdll* ap = _ast_getdll(); ap->_dll_environ = &environ; }
static void errmsg(int level, int code, const char* fmt, va_list ap) { if (!error_info.id) { struct _astdll* dp = _ast_getdll(); char* s; char* t; if (s = dp->_ast__argv[0]) { if (t = strrchr(s, '/')) s = t + 1; error_info.id = s; } } errorv(fmt, level|ERROR_NOID, ap); if ((level & ERROR_LEVEL) >= ERROR_ERROR) exit(code); }