summaryrefslogtreecommitdiff
path: root/fmtmsg.h
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2022-04-20 14:52:33 -0400
committerJakob Kaivo <jkk@ung.org>2022-04-20 14:52:33 -0400
commitfb4e2af442c8b09e7f5406d32fbb2961dd14584a (patch)
tree1b7fe654ac62d4740c9b10ce246dd04e8332cb14 /fmtmsg.h
parent1bdbf55cbf054bd2a4d0cd57b0a162522ce33a60 (diff)
clean up
Diffstat (limited to 'fmtmsg.h')
-rw-r--r--fmtmsg.h83
1 files changed, 27 insertions, 56 deletions
diff --git a/fmtmsg.h b/fmtmsg.h
index aa7aecc..5574d5e 100644
--- a/fmtmsg.h
+++ b/fmtmsg.h
@@ -6,7 +6,7 @@ UNG's Not GNU
MIT License
-Copyright (c) 2011-2020 Jakob Kaivo <jkk@ung.org>
+Copyright (c) 2011-2022 Jakob Kaivo <jkk@ung.org>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@@ -41,62 +41,33 @@ SOFTWARE.
#endif
#if (defined _XOPEN_SOURCE && ((defined _XOPEN_SOURCE_EXTENDED && _XOPEN_SOURCE_EXTENDED == 1) || 500 <= _XOPEN_SOURCE))
-/* ./src/fmtmsg/MM_APPL.c */
-#define MM_APPL 3
-/* ./src/fmtmsg/MM_CONSOLE.c */
-#define MM_CONSOLE 14
-/* ./src/fmtmsg/MM_ERROR.c */
-#define MM_ERROR 9
-/* ./src/fmtmsg/MM_FIRM.c */
-#define MM_FIRM 2
-/* ./src/fmtmsg/MM_HALT.c */
-#define MM_HALT 8
-/* ./src/fmtmsg/MM_HARD.c */
-#define MM_HARD 0
-/* ./src/fmtmsg/MM_INFO.c */
-#define MM_INFO 11
-/* ./src/fmtmsg/MM_NOCON.c */
-#define MM_NOCON 3
-/* ./src/fmtmsg/MM_NOMSG.c */
-#define MM_NOMSG 2
-/* ./src/fmtmsg/MM_NOSEV.c */
-#define MM_NOSEV 12
-/* ./src/fmtmsg/MM_NOTOK.c */
-#define MM_NOTOK 1
-/* ./src/fmtmsg/MM_NRECOV.c */
-#define MM_NRECOV 7
-/* ./src/fmtmsg/MM_NULLACT.c */
-#define MM_NULLACT (char*)0
-/* ./src/fmtmsg/MM_NULLLBL.c */
-#define MM_NULLLBL (char*)0
-/* ./src/fmtmsg/MM_NULLMC.c */
-#define MM_NULLMC 0L
-/* ./src/fmtmsg/MM_NULLSEV.c */
-#define MM_NULLSEV 0
-/* ./src/fmtmsg/MM_NULLTAG.c */
-#define MM_NULLTAG (char*)0
-/* ./src/fmtmsg/MM_NULLTXT.c */
-#define MM_NULLTXT (char*)0
-/* ./src/fmtmsg/MM_OK.c */
-#define MM_OK 0
-/* ./src/fmtmsg/MM_OPSYS.c */
-#define MM_OPSYS 5
-/* ./src/fmtmsg/MM_PRINT.c */
-#define MM_PRINT 13
-/* ./src/fmtmsg/MM_RECOVER.c */
-#define MM_RECOVER 6
-/* ./src/fmtmsg/MM_SOFT.c */
-#define MM_SOFT 1
-/* ./src/fmtmsg/MM_UTIL.c */
-#define MM_UTIL 4
-/* ./src/fmtmsg/MM_WARNING.c */
-#define MM_WARNING 10
-#endif
+#define MM_APPL (3)
+#define MM_CONSOLE (14)
+#define MM_ERROR (9)
+#define MM_FIRM (2)
+#define MM_HALT (8)
+#define MM_HARD (0)
+#define MM_INFO (11)
+#define MM_NOCON (3)
+#define MM_NOMSG (2)
+#define MM_NOSEV (12)
+#define MM_NOTOK (1)
+#define MM_NRECOV (7)
+#define MM_NULLACT ((char*)0)
+#define MM_NULLLBL ((char*)0)
+#define MM_NULLMC (0L)
+#define MM_NULLSEV (0)
+#define MM_NULLTAG ((char*)0)
+#define MM_NULLTXT ((char*)0)
+#define MM_OK (0)
+#define MM_OPSYS (5)
+#define MM_PRINT (13)
+#define MM_RECOVER (6)
+#define MM_SOFT (1)
+#define MM_UTIL (4)
+#define MM_WARNING (10)
-#if (defined _XOPEN_SOURCE && ((defined _XOPEN_SOURCE_EXTENDED && _XOPEN_SOURCE_EXTENDED == 1) || 500 <= _XOPEN_SOURCE))
-/* ./src/fmtmsg/fmtmsg.c */
-int fmtmsg(long __classification, const char * __label, int __severity, const char * __text, const char * __action, const char * __tag);
+int fmtmsg(long, const char *, int, const char *, const char *, const char *);
#endif
-
#endif