use extern variable

This commit is contained in:
Andreas Volz 2009-03-28 23:01:26 +01:00
parent 7424df631d
commit fbc0227d56
3 changed files with 21 additions and 28 deletions

View file

@ -7,20 +7,9 @@
using namespace std;
using namespace DBus;
static const char *tab = " ";
static const char *header = "\n\
/*\n\
* This file was automatically generated by dbusxx-xml2cpp; DO NOT EDIT!\n\
*/\n\
\n\
";
static const char *dbus_includes = "\n\
#include <dbus-c++/dbus.h>\n\
#include <cassert>\n\n\
\n\
";
extern const char *tab;
extern const char *header;
extern const char *dbus_includes;
/*! Generate adaptor code for a XML introspection
*/

View file

@ -7,20 +7,9 @@
using namespace std;
using namespace DBus;
static const char *tab = " ";
static const char *header = "\n\
/*\n\
* This file was automatically generated by dbusxx-xml2cpp; DO NOT EDIT!\n\
*/\n\
\n\
";
static const char *dbus_includes = "\n\
#include <dbus-c++/dbus.h>\n\
#include <cassert>\n\n\
\n\
";
extern const char *tab;
extern const char *header;
extern const char *dbus_includes;
/*! Generate proxy code for a XML introspection
*/

View file

@ -4,6 +4,21 @@
using namespace std;
const char *tab = " ";
const char *header = "\n\
/*\n\
* This file was automatically generated by dbusxx-xml2cpp; DO NOT EDIT!\n\
*/\n\
\n\
";
const char *dbus_includes = "\n\
#include <dbus-c++/dbus.h>\n\
#include <cassert>\n\n\
\n\
";
const char *atomic_type_to_string(char t)
{
static struct { char type; const char *name; } atos[] =