]> sourceware.org Git - systemtap.git/commitdiff
DRY: get NLS definitions in session.h from util.h
authorJosh Stone <jistone@redhat.com>
Sat, 4 Aug 2012 20:37:48 +0000 (13:37 -0700)
committerJosh Stone <jistone@redhat.com>
Sat, 4 Aug 2012 20:37:48 +0000 (13:37 -0700)
session.h

index df74fd34e8654902542dec498ef90f647ab71f01..ec7caa1a0699dec508f46bd11aae6865b65e94f7 100644 (file)
--- a/session.h
+++ b/session.h
@@ -28,19 +28,7 @@ extern "C" {
 }
 
 #include "privilege.h"
-
-#if ENABLE_NLS
-#define _(string) gettext(string)
-#define _N(string, string_plural, count) \
-        ngettext((string), (string_plural), (count))
-#else
-#define _(string) (string)
-#define _N(string, string_plural, count) \
-        ( (count) == 1 ? (string) : (string_plural) )
-#endif
-#define _F(format, ...) autosprintf(_(format), __VA_ARGS__)
-#define _NF(format, format_plural, count, ...) \
-        autosprintf(_N((format), (format_plural), (count)), __VA_ARGS__)
+#include "util.h"
 
 // forward decls for all referenced systemtap types
 class hash;
This page took 0.02756 seconds and 5 git commands to generate.