summaryrefslogtreecommitdiff
path: root/app/luit/luit.h
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@cvs.openbsd.org>2013-02-10 15:38:38 +0000
committerChristian Weisgerber <naddy@cvs.openbsd.org>2013-02-10 15:38:38 +0000
commit152edaa3cfa49e2b520ad519e7b8dcd976f9eee6 (patch)
treeb56aca953e0aaa698a8512d936bff2ed6f39161c /app/luit/luit.h
parentfed9f5f89bb15e675253f3d66ba70adde2783d44 (diff)
Update to luit 1.1.1. ok matthieu@
Diffstat (limited to 'app/luit/luit.h')
-rw-r--r--app/luit/luit.h25
1 files changed, 24 insertions, 1 deletions
diff --git a/app/luit/luit.h b/app/luit/luit.h
index 695751e4e..fb8b9465c 100644
--- a/app/luit/luit.h
+++ b/app/luit/luit.h
@@ -20,12 +20,35 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
+#ifndef LUIT_LUIT_H
+#define LUIT_LUIT_H 1
+
+extern const char *locale_alias;
extern int iso2022;
extern int verbose;
extern int sevenbit;
extern int ilog;
extern int olog;
-void child(char*, char*, char**);
+/* Not using Xfuncproto.h since that would pull in extra dependencies */
+#if (defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 205)) \
+ || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590))
+# define LUIT_NORETURN __attribute__((noreturn))
+#else
+# define LUIT_NORETURN /* nothing */
+#endif
+
+#if defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 203)
+# define LUIT_PRINTF(x,y) __attribute__((__format__(__printf__,x,y)))
+#else /* not gcc >= 2.3 */
+# define LUIT_PRINTF(x,y) /* nothing */
+#endif
+
+void child(char *, char *, char *const *) LUIT_NORETURN;
void parent(int, int);
+void ErrorF(const char *f,...) LUIT_PRINTF(1,2);
+
+void FatalError(const char *f,...) LUIT_NORETURN LUIT_PRINTF(1,2);
+
+#endif /* LUIT_LUIT_H */