BIND 10 trac745, updated. 1ce2874170c85de79a896b1cc3077d9f3032d9e0 [trac745] Build nsasdef.{cc, h} from nsasdef.msg

BIND 10 source code commits bind10-changes at lists.isc.org
Thu Apr 28 10:55:54 UTC 2011


The branch, trac745 has been updated
       via  1ce2874170c85de79a896b1cc3077d9f3032d9e0 (commit)
      from  b92cca798d702273d63d56d9197782edeb927c8c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 1ce2874170c85de79a896b1cc3077d9f3032d9e0
Author: Stephen Morris <stephen at isc.org>
Date:   Thu Apr 28 11:54:50 2011 +0100

    [trac745] Build nsasdef.{cc,h} from nsasdef.msg
    
    The logging source files are now built at run-time instead of being
    part of the repository.

-----------------------------------------------------------------------

Summary of changes:
 src/lib/nsas/Makefile.am |    4 ++++
 src/lib/nsas/nsasdef.cc  |   27 ---------------------------
 src/lib/nsas/nsasdef.h   |   17 -----------------
 3 files changed, 4 insertions(+), 44 deletions(-)
 delete mode 100644 src/lib/nsas/nsasdef.cc
 delete mode 100644 src/lib/nsas/nsasdef.h

-----------------------------------------------------------------------
diff --git a/src/lib/nsas/Makefile.am b/src/lib/nsas/Makefile.am
index 7ffc61d..dcc021d 100644
--- a/src/lib/nsas/Makefile.am
+++ b/src/lib/nsas/Makefile.am
@@ -21,6 +21,10 @@ if USE_CLANGPP
 AM_CXXFLAGS += -Wno-unused-parameter
 endif
 
+# Build the logging source files from the message definition
+nsasdef.h nsasdef.cc: nsasdef.msg
+	$(top_builddir)/src/lib/log/compiler/message nsasdef.msg
+
 lib_LTLIBRARIES = libnsas.la
 libnsas_la_SOURCES  = address_entry.h address_entry.cc
 libnsas_la_SOURCES += asiolink.h
diff --git a/src/lib/nsas/nsasdef.cc b/src/lib/nsas/nsasdef.cc
deleted file mode 100644
index 220ab80..0000000
--- a/src/lib/nsas/nsasdef.cc
+++ /dev/null
@@ -1,27 +0,0 @@
-// File created from nsasdef.msg on Thu Apr 28 09:42:02 2011
-
-#include <cstddef>
-#include <log/message_types.h>
-#include <log/message_initializer.h>
-
-namespace isc {
-namespace nsas {
-
-extern const isc::log::MessageID NSAS_LOOKUPCANCEL = "LOOKUPCANCEL";
-extern const isc::log::MessageID NSAS_LOOKUPZONE = "LOOKUPZONE";
-
-} // namespace nsas
-} // namespace isc
-
-namespace {
-
-const char* values[] = {
-    "LOOKUPCANCEL", "lookup for zone %s has been cancelled",
-    "LOOKUPZONE", "searching NSAS for nameservers for zone %s",
-    NULL
-};
-
-const isc::log::MessageInitializer initializer(values);
-
-} // Anonymous namespace
-
diff --git a/src/lib/nsas/nsasdef.h b/src/lib/nsas/nsasdef.h
deleted file mode 100644
index de69436..0000000
--- a/src/lib/nsas/nsasdef.h
+++ /dev/null
@@ -1,17 +0,0 @@
-// File created from nsasdef.msg on Thu Apr 28 09:42:02 2011
-
-#ifndef __NSASDEF_H
-#define __NSASDEF_H
-
-#include <log/message_types.h>
-
-namespace isc {
-namespace nsas {
-
-extern const isc::log::MessageID NSAS_LOOKUPCANCEL;
-extern const isc::log::MessageID NSAS_LOOKUPZONE;
-
-} // namespace nsas
-} // namespace isc
-
-#endif // __NSASDEF_H




More information about the bind10-changes mailing list