Skip to content

Commit

Permalink
remove GINGA_NAMESPACE macros
Browse files Browse the repository at this point in the history
  • Loading branch information
alanlivio committed Jan 6, 2023
1 parent c8b991d commit 832de8f
Show file tree
Hide file tree
Showing 48 changed files with 124 additions and 132 deletions.
62 changes: 31 additions & 31 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
{
// this configuration use the ms-vscode.cmake-tools extension
"version": "0.2.0",
"configurations": [
{
"name": "cmaketools",
"type": "cppdbg",
"request": "launch",
"program": "${command:cmake.launchTargetPath}",
"args": [
"${workspaceFolder}/examples/primeiro-joao/00syncProp.ncl",
],
"cwd": "${workspaceFolder}",
"environment": [
{
"name": "PATH",
"value": "${env:PATH};${command:cmake.getLaunchTargetDirectory}"
},
],
"miDebuggerPath": "C:\\msys64\\usr\\bin\\gdb.exe",
"externalConsole": false,
"stopAtEntry": false,
"setupCommands": [
{
"description": "gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
{
// this configuration use the ms-vscode.cmake-tools extension
"version": "0.2.0",
"configurations": [
{
"name": "cmaketools",
"type": "cppdbg",
"request": "launch",
"program": "${command:cmake.launchTargetPath}",
"args": [
"${workspaceFolder}/examples/primeiro-joao/00syncProp.ncl",
],
"cwd": "${workspaceFolder}",
"environment": [
{
"name": "PATH",
"value": "${env:PATH};${command:cmake.getLaunchTargetDirectory}"
},
],
"miDebuggerPath": "C:/msys64/mingw64/bin/gdb.exe",
"externalConsole": false,
"stopAtEntry": false,
"setupCommands": [
{
"description": "gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}
4 changes: 2 additions & 2 deletions lib/Composition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ along with Ginga. If not, see <https://www.gnu.org/licenses/>. */

#include "Document.h"

GINGA_NAMESPACE_BEGIN
namespace ginga {

Composition::Composition (const string &id) : Object (id)
{
Expand Down Expand Up @@ -68,4 +68,4 @@ Composition::addChild (Object *child)
}
}

GINGA_NAMESPACE_END
}
4 changes: 2 additions & 2 deletions lib/Composition.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ along with Ginga. If not, see <https://www.gnu.org/licenses/>. */

#include "Object.h"

GINGA_NAMESPACE_BEGIN
namespace ginga {

class Composition : public Object
{
Expand All @@ -37,6 +37,6 @@ class Composition : public Object
set<Object *> _children;
};

GINGA_NAMESPACE_END
}

#endif // COMPOSITION_H
4 changes: 2 additions & 2 deletions lib/Context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ along with Ginga. If not, see <https://www.gnu.org/licenses/>. */
#include "Document.h"
#include "MediaSettings.h"

GINGA_NAMESPACE_BEGIN
namespace ginga {

// Public.

Expand Down Expand Up @@ -389,4 +389,4 @@ Context::setLinksStatus (bool status)
_status = status;
}

GINGA_NAMESPACE_END
}
4 changes: 2 additions & 2 deletions lib/Context.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ along with Ginga. If not, see <https://www.gnu.org/licenses/>. */
#include "Composition.h"
#include "Event.h"

GINGA_NAMESPACE_BEGIN
namespace ginga {

class Context : public Composition
{
Expand Down Expand Up @@ -59,6 +59,6 @@ class Context : public Composition
bool _status; ///< Whether links are active.
};

GINGA_NAMESPACE_END
}

#endif // CONTEXT_H
4 changes: 2 additions & 2 deletions lib/Document.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ along with Ginga. If not, see <https://www.gnu.org/licenses/>. */
#include "Switch.h"
#include "PlayerRemote.h"

GINGA_NAMESPACE_BEGIN
namespace ginga {

/**
* @brief Creates a new document.
Expand Down Expand Up @@ -574,4 +574,4 @@ Document::setData (const string &key, void *value, UserDataCleanFunc fn)
return _udata.setData (key, value, fn);
}

GINGA_NAMESPACE_END
}
4 changes: 2 additions & 2 deletions lib/Document.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ along with Ginga. If not, see <https://www.gnu.org/licenses/>. */

#include "Object.h"

GINGA_NAMESPACE_BEGIN
namespace ginga {

class Context;
class Media;
Expand Down Expand Up @@ -73,6 +73,6 @@ class Document
UserData _udata; ///< Attached user data.
};

GINGA_NAMESPACE_END
}

#endif // DOCUMENT_H
4 changes: 2 additions & 2 deletions lib/Event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ along with Ginga. If not, see <https://www.gnu.org/licenses/>. */
#include "Event.h"
#include "Object.h"

GINGA_NAMESPACE_BEGIN
namespace ginga {

// Public.

Expand Down Expand Up @@ -309,4 +309,4 @@ Event::getStringAsTransition (string str)
g_assert_not_reached ();
}

GINGA_NAMESPACE_END
}
4 changes: 2 additions & 2 deletions lib/Event.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ along with Ginga. If not, see <https://www.gnu.org/licenses/>. */
#include "aux-ginga.h"
#include "Predicate.h"

GINGA_NAMESPACE_BEGIN
namespace ginga {

class Object;

Expand Down Expand Up @@ -138,6 +138,6 @@ typedef struct
string delay; ///< Delay.
} Action;

GINGA_NAMESPACE_END
}

#endif // EVENT_H
4 changes: 2 additions & 2 deletions lib/Formatter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ along with Ginga. If not, see <https://www.gnu.org/licenses/>. */
#include "ParserLua.h" // for ncl-ltab support
#endif

GINGA_NAMESPACE_BEGIN
namespace ginga {

// Option data.
typedef struct GingaOptionData
Expand Down Expand Up @@ -625,4 +625,4 @@ Formatter::setOptionSize (Formatter *self, const string &name, int value)
TRACE ("%s:=%d", name.c_str (), value);
}

GINGA_NAMESPACE_END
}
4 changes: 2 additions & 2 deletions lib/Formatter.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ along with Ginga. If not, see <https://www.gnu.org/licenses/>. */

#include "Document.h"

GINGA_NAMESPACE_BEGIN
namespace ginga {

class WebServices;
class Context;
Expand Down Expand Up @@ -109,6 +109,6 @@ class Formatter : public Ginga
bool _eos;
};

GINGA_NAMESPACE_END
}

#endif // FORMATTER_H
4 changes: 2 additions & 2 deletions lib/Media.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ along with Ginga. If not, see <https://www.gnu.org/licenses/>. */
#include "Event.h"
#include "Player.h"

GINGA_NAMESPACE_BEGIN
namespace ginga {

// Public.

Expand Down Expand Up @@ -527,4 +527,4 @@ Media::doStop ()
Object::doStop ();
}

GINGA_NAMESPACE_END
}
4 changes: 2 additions & 2 deletions lib/Media.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ along with Ginga. If not, see <https://www.gnu.org/licenses/>. */
#include "Object.h"
#include "Player.h"

GINGA_NAMESPACE_BEGIN
namespace ginga {

class Media : public Object
{
Expand Down Expand Up @@ -49,6 +49,6 @@ class Media : public Object
void doStop () override;
};

GINGA_NAMESPACE_END
}

#endif // MEDIA_H
4 changes: 2 additions & 2 deletions lib/MediaSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ along with Ginga. If not, see <https://www.gnu.org/licenses/>. */
#include "Context.h"
#include "Switch.h"

GINGA_NAMESPACE_BEGIN
namespace ginga {

// Public.

Expand Down Expand Up @@ -122,4 +122,4 @@ MediaSettings::scheduleFocusUpdate (const string &next)
_nextFocus = next;
}

GINGA_NAMESPACE_END
}
4 changes: 2 additions & 2 deletions lib/MediaSettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ along with Ginga. If not, see <https://www.gnu.org/licenses/>. */

#include "Media.h"

GINGA_NAMESPACE_BEGIN
namespace ginga {

class MediaSettings : public Media
{
Expand All @@ -47,6 +47,6 @@ class MediaSettings : public Media
bool _hasNextFocus; // true if a focus update is scheduled
};

GINGA_NAMESPACE_END
}

#endif // MEDIA_SETTINGS_H
4 changes: 2 additions & 2 deletions lib/Object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ along with Ginga. If not, see <https://www.gnu.org/licenses/>. */
#include "MediaSettings.h"
#include "Switch.h"

GINGA_NAMESPACE_BEGIN
namespace ginga {

// Public.

Expand Down Expand Up @@ -432,4 +432,4 @@ Object::doStop ()
cast (Context *, _parent)->decAwakeChildren ();
}

GINGA_NAMESPACE_END
}
4 changes: 2 additions & 2 deletions lib/Object.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ along with Ginga. If not, see <https://www.gnu.org/licenses/>. */

#include "Event.h"

GINGA_NAMESPACE_BEGIN
namespace ginga {

class Document;
class Composition;
Expand Down Expand Up @@ -122,6 +122,6 @@ class Object
virtual void doStop ();
};

GINGA_NAMESPACE_END
}

#endif // OBJECT_H
4 changes: 2 additions & 2 deletions lib/Parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ along with Ginga. If not, see <https://www.gnu.org/licenses/>. */
#include <fontconfig/fontconfig.h>
#include <libxml/uri.h>

GINGA_NAMESPACE_BEGIN
namespace ginga {

// XML helper macros and functions.
#define toCString(s) deconst (char *, (s))
Expand Down Expand Up @@ -4351,4 +4351,4 @@ Parser::parseFile (const string &path, int width, int height,
return doc;
}

GINGA_NAMESPACE_END
}
4 changes: 2 additions & 2 deletions lib/Parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ along with Ginga. If not, see <https://www.gnu.org/licenses/>. */

#include "Document.h"

GINGA_NAMESPACE_BEGIN
namespace ginga {

class Parser
{
Expand All @@ -29,6 +29,6 @@ class Parser
static Document *parseFile (const string &, int, int, string *);
};

GINGA_NAMESPACE_END
}

#endif // PARSER_H
4 changes: 2 additions & 2 deletions lib/ParserLua.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ GINGA_BEGIN_DECLS
#include "aux-lua.h"
GINGA_END_DECLS

GINGA_NAMESPACE_BEGIN
namespace ginga {

/* TODO:
Expand Down Expand Up @@ -841,4 +841,4 @@ ParserLua::parseFile (const string &path, string *errmsg)
return doc;
}

GINGA_NAMESPACE_END
}
4 changes: 2 additions & 2 deletions lib/ParserLua.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ along with Ginga. If not, see <https://www.gnu.org/licenses/>. */

#include "Document.h"

GINGA_NAMESPACE_BEGIN
namespace ginga {

class ParserLua
{
Expand All @@ -29,6 +29,6 @@ class ParserLua
static Document *parseFile (const string &, string *);
};

GINGA_NAMESPACE_END
}

#endif // PARSER_LUA_H
4 changes: 2 additions & 2 deletions lib/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ along with Ginga. If not, see <https://www.gnu.org/licenses/>. */
#include "PlayerHTML.h"
#endif

GINGA_NAMESPACE_BEGIN
namespace ginga {

// Mime-type table.
static map<string, string> mime_table = {
Expand Down Expand Up @@ -821,4 +821,4 @@ Player::redrawDebuggingInfo (cairo_t *cr)
cairo_surface_destroy (debug);
}

GINGA_NAMESPACE_END
}
Loading

0 comments on commit 832de8f

Please sign in to comment.