1 #ifdef X_FMTMSG 2 #include <fmtmsg.h> 3 #define C(n) switch(n){case n:;} f()4static void f() 5 { 6 C(MM_HARD) 7 C(MM_SOFT) 8 C(MM_FIRM) 9 C(MM_APPL) 10 C(MM_UTIL) 11 C(MM_OPSYS) 12 C(MM_RECOVER) 13 C(MM_NRECOV) 14 C(MM_HALT) 15 C(MM_ERROR) 16 C(MM_WARNING) 17 C(MM_INFO) 18 C(MM_NOSEV) 19 C(MM_PRINT) 20 C(MM_CONSOLE) 21 C(MM_OK) 22 C(MM_NOTOK) 23 C(MM_NOMSG) 24 C(MM_NOCON) 25 {int(*p)(long,const char*,int,const char*,const char*,const char*) = fmtmsg;} 26 } 27 #else f()28static void f(){} 29 #endif 30