HBM_STATIC HBM_STRUCT * hbm_prep(unsigned char * pat, int m, int nocase) { HBM_STRUCT *p; p = (HBM_STRUCT*)malloc(sizeof(HBM_STRUCT)); if (!p) { _ded.fatalMsg("Failed to allocate memory for pattern matching."); } if( !hbm_prepx( p, pat, m, nocase) ) { _ded.fatalMsg("Error initializing pattern matching. Check arguments."); } return p; }
NORETURN void DynamicEngineFatalMessage(const char *format, ...) { char buf[STD_BUF]; va_list ap; va_start(ap, format); vsnprintf(buf, STD_BUF, format, ap); va_end(ap); buf[STD_BUF - 1] = '\0'; _ded.fatalMsg("%s", buf); exit(1); }