Skip to content

Commit 3e7d38e

Browse files
Corrected orthograph of more classes, including full libGAG.
1 parent 62fbac2 commit 3e7d38e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+892
-892
lines changed

libgag/include/BinaryStream.h

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
1818
*/
1919

20-
#ifndef __BINARYSTREAM_H
21-
#define __BINARYSTREAM_H
20+
#ifndef __BINARY_STREAM_H
21+
#define __BINARY_STREAM_H
2222

2323
#include <Stream.h>
2424
#include <StreamBackend.h>
@@ -41,16 +41,16 @@ namespace GAGCore
4141

4242
virtual void write(const void *data, const size_t size, const std::string name);
4343

44-
virtual void writeEndianIndependant(const void *v, const size_t size, const std::string name);
44+
virtual void writeEndianIndependent(const void *v, const size_t size, const std::string name);
4545

4646
virtual void writeSint8(const Sint8 v, const std::string name) { this->write(&v, 1, name); }
4747
virtual void writeUint8(const Uint8 v, const std::string name) { this->write(&v, 1, name); }
48-
virtual void writeSint16(const Sint16 v, const std::string name) { this->writeEndianIndependant(&v, 2, name); }
49-
virtual void writeUint16(const Uint16 v, const std::string name) { this->writeEndianIndependant(&v, 2, name); }
50-
virtual void writeSint32(const Sint32 v, const std::string name) { this->writeEndianIndependant(&v, 4, name); }
51-
virtual void writeUint32(const Uint32 v, const std::string name) { this->writeEndianIndependant(&v, 4, name); }
52-
virtual void writeFloat(const float v, const std::string name) { this->writeEndianIndependant(&v, 4, name); }
53-
virtual void writeDouble(const double v, const std::string name) { this->writeEndianIndependant(&v, 8, name); }
48+
virtual void writeSint16(const Sint16 v, const std::string name) { this->writeEndianIndependent(&v, 2, name); }
49+
virtual void writeUint16(const Uint16 v, const std::string name) { this->writeEndianIndependent(&v, 2, name); }
50+
virtual void writeSint32(const Sint32 v, const std::string name) { this->writeEndianIndependent(&v, 4, name); }
51+
virtual void writeUint32(const Uint32 v, const std::string name) { this->writeEndianIndependent(&v, 4, name); }
52+
virtual void writeFloat(const float v, const std::string name) { this->writeEndianIndependent(&v, 4, name); }
53+
virtual void writeDouble(const double v, const std::string name) { this->writeEndianIndependent(&v, 8, name); }
5454
virtual void writeText(const std::string &v, const std::string name);
5555

5656
virtual void flush(void) { backend->flush(); }
@@ -85,16 +85,16 @@ namespace GAGCore
8585

8686
virtual void read(void *data, size_t size, const std::string name) { backend->read(data, size); }
8787

88-
virtual void readEndianIndependant(void *v, size_t size, const std::string name);
88+
virtual void readEndianIndependent(void *v, size_t size, const std::string name);
8989

9090
virtual Sint8 readSint8(const std::string name) { Sint8 i; this->read(&i, 1, name); return i; }
9191
virtual Uint8 readUint8(const std::string name) { Uint8 i; this->read(&i, 1, name); return i; }
92-
virtual Sint16 readSint16(const std::string name) { Sint16 i; this->readEndianIndependant(&i, 2, name); return i; }
93-
virtual Uint16 readUint16(const std::string name) { Uint16 i; this->readEndianIndependant(&i, 2, name); return i; }
94-
virtual Sint32 readSint32(const std::string name) { Sint32 i; this->readEndianIndependant(&i, 4, name); return i; }
95-
virtual Uint32 readUint32(const std::string name) { Uint32 i; this->readEndianIndependant(&i, 4, name); return i; }
96-
virtual float readFloat(const std::string name) { float f; this->readEndianIndependant(&f, 4, name); return f; }
97-
virtual double readDouble(const std::string name) { double d; this->readEndianIndependant(&d, 8, name); return d; }
92+
virtual Sint16 readSint16(const std::string name) { Sint16 i; this->readEndianIndependent(&i, 2, name); return i; }
93+
virtual Uint16 readUint16(const std::string name) { Uint16 i; this->readEndianIndependent(&i, 2, name); return i; }
94+
virtual Sint32 readSint32(const std::string name) { Sint32 i; this->readEndianIndependent(&i, 4, name); return i; }
95+
virtual Uint32 readUint32(const std::string name) { Uint32 i; this->readEndianIndependent(&i, 4, name); return i; }
96+
virtual float readFloat(const std::string name) { float f; this->readEndianIndependent(&f, 4, name); return f; }
97+
virtual double readDouble(const std::string name) { double d; this->readEndianIndependent(&d, 8, name); return d; }
9898
virtual std::string readText(const std::string name);
9999

100100
virtual void readEnterSection(const std::string name) { }

libgag/include/FileManager.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
1818
*/
1919

20-
#ifndef __FILEMANAGER_H
21-
#define __FILEMANAGER_H
20+
#ifndef __FILE_MANAGER_H
21+
#define __FILE_MANAGER_H
2222

2323
#include "GAGSys.h"
2424
#include <vector>
@@ -66,11 +66,11 @@ namespace GAGCore
6666
//! internal function that does the real listing job
6767
bool addListingForDir(const std::string realDir, const std::string extension="", const bool dirs=false);
6868
//! open a file, if it is in writing, do a backup
69-
SDL_RWops *openWithbackup(const std::string filename, const std::string mode);
69+
SDL_RWops *openWithBackup(const std::string filename, const std::string mode);
7070
//! open a file, if it is in writing, do a backup, fopen version
71-
FILE *openWithbackupFP(const std::string filename, const std::string mode);
71+
FILE *openWithBackupFP(const std::string filename, const std::string mode);
7272
//! open a file, if it is in writing, do a backup, std::ofstream version
73-
std::ofstream *openWithbackupOFS(const std::string filename, std::ofstream::openmode mode);
73+
std::ofstream *openWithBackupOFS(const std::string filename, std::ofstream::openmode mode);
7474

7575
public:
7676
//! FileManager constructor
@@ -92,9 +92,9 @@ namespace GAGCore
9292
//! Returns true if filename is a directory
9393
bool isDir(const std::string filename);
9494

95-
//! Compress source to dest uzing gzip, returns true on success
95+
//! Compress source to dest using gzip, returns true on success
9696
bool gzip(const std::string &source, const std::string &dest);
97-
//! Uncompress source to dest uzing gzip, returns true on success
97+
//! Uncompress source to dest using gzip, returns true on success
9898
bool gunzip(const std::string &source, const std::string &dest);
9999

100100
//! Open an output stream backend, use it to construct specific output streams

libgag/include/FormatableString.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
1818
*/
1919

20-
#ifndef FORMATABLESTRING_H
21-
#define FORMATABLESTRING_H
20+
#ifndef FORMATABLE_STRING_H
21+
#define FORMATABLE_STRING_H
2222

2323
#include <string>
2424
#include <sstream>

libgag/include/GAGSys.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
1818
*/
1919

20-
#ifndef __GAGSYS_H
21-
#define __GAGSYS_H
20+
#ifndef __GAG_SYS_H
21+
#define __GAG_SYS_H
2222

2323
#ifndef MAX_SINT32
2424
#define MAX_SINT32 0x7FFFFFFF

libgag/include/GUIAnimation.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
1818
*/
1919

20-
#ifndef __GUIANIMATION_H
21-
#define __GUIANIMATION_H
20+
#ifndef __GUI_ANIMATION_H
21+
#define __GUI_ANIMATION_H
2222

2323
#include "GUIBase.h"
2424
#include <string>

libgag/include/GUIBase.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
1818
*/
1919

20-
#ifndef __GUIBASE_H
21-
#define __GUIBASE_H
20+
#ifndef __GUI_BASE_H
21+
#define __GUI_BASE_H
2222

2323
#include "GAGSys.h"
2424
#include "GraphicContext.h"

libgag/include/GUIButton.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
1818
*/
1919

20-
#ifndef __GUIBUTTON_H
21-
#define __GUIBUTTON_H
20+
#ifndef __GUI_BUTTON_H
21+
#define __GUI_BUTTON_H
2222

2323
#include "GUIBase.h"
2424
#include <string>
@@ -163,8 +163,8 @@ namespace GAGGUI
163163

164164
public:
165165
MultiTextButton() { textIndex=0; returnCode=0; }
166-
MultiTextButton(int x, int y, int w, int h, Uint32 hAlign, Uint32 vAlign, const std::string font, const std::string text, int retuxrnCode, Uint16 unicodeShortcut=0);
167-
MultiTextButton(int x, int y, int w, int h, Uint32 hAlign, Uint32 vAlign, const std::string font, const std::string text, int retuxrnCode, const std::string& tooltip, const std::string &tooltipFont, Uint16 unicodeShortcut=0);
166+
MultiTextButton(int x, int y, int w, int h, Uint32 hAlign, Uint32 vAlign, const std::string font, const std::string text, int returnCode, Uint16 unicodeShortcut=0);
167+
MultiTextButton(int x, int y, int w, int h, Uint32 hAlign, Uint32 vAlign, const std::string font, const std::string text, int returnCode, const std::string& tooltip, const std::string &tooltipFont, Uint16 unicodeShortcut=0);
168168
virtual ~MultiTextButton() { }
169169

170170

libgag/include/GUICheckList.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
#include "GUIList.h"
2323

24-
///A CheckList is bassically like a list, except that each item is either checked off or it isn't
24+
///A CheckList is basically like a list, except that each item is either checked off or it isn't
2525

2626
namespace GAGGUI
2727
{

libgag/include/GUIFileList.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
1818
*/
1919

20-
#ifndef __GUIFILELIST_H
21-
#define __GUIFILELIST_H
20+
#ifndef __GUI_FILELIST_H
21+
#define __GUI_FILELIST_H
2222

2323
#include "FileManager.h"
2424
#include "GUIList.h"

libgag/include/GUIImage.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
1818
*/
1919

20-
#ifndef __GUIIMAGE_H
21-
#define __GUIIMAGE_H
20+
#ifndef __GUI_IMAGE_H
21+
#define __GUI_IMAGE_H
2222

2323
#include "GUIBase.h"
2424
#include "GraphicContext.h"

0 commit comments

Comments
 (0)