From 523947d30c5fb2e1a804023dcf7f1aa70a9a6932 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sat, 10 Nov 2012 21:23:36 +0100 Subject: use namespace "States" instead of "states" structure has several advantages * better to read * namespace can be "extended" from everywhere allowing the declaration of states in the files that implement them * include file mess could be cleaned up a bit --- qbuffers.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'qbuffers.h') diff --git a/qbuffers.h b/qbuffers.h index b837423..56580c4 100644 --- a/qbuffers.h +++ b/qbuffers.h @@ -136,6 +136,10 @@ private: State *done(const gchar *str); }; +namespace States { + extern StateFile file; +} + /* * Auxiliary functions */ -- cgit v1.2.3