mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-02 06:41:51 +00:00
JANITORIAL: Enforce "} // End of namespace" with a single space after }.
This commit is contained in:
parent
da8eeb9dbe
commit
b4d0a8ba66
@ -105,7 +105,7 @@ inline uint32 pow2Fixed(int32 val) {
|
||||
}
|
||||
#endif
|
||||
|
||||
} // End of namespace
|
||||
} // End of namespace
|
||||
|
||||
namespace Audio {
|
||||
|
||||
@ -1032,6 +1032,6 @@ void MaxTrax::outPutEvent(const Event &ev, int num) {}
|
||||
void MaxTrax::outPutScore(const Score &sc, int num) {}
|
||||
#endif // #ifndef NDEBUG
|
||||
|
||||
} // End of namespace Audio
|
||||
} // End of namespace Audio
|
||||
|
||||
#endif // #if defined(AUDIO_MODS_MAXTRAX_H)
|
||||
|
@ -214,6 +214,6 @@ private:
|
||||
static void outPutEvent(const Event &ev, int num = -1);
|
||||
static void outPutScore(const Score &sc, int num = -1);
|
||||
};
|
||||
} // End of namespace Audio
|
||||
} // End of namespace Audio
|
||||
|
||||
#endif // !defined(AUDIO_MODS_MAXTRAX_H)
|
||||
|
@ -1095,7 +1095,7 @@ int Tfmx::doSfx(uint16 sfxIndex, bool unlockChannel) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
} // End of namespace Audio
|
||||
} // End of namespace Audio
|
||||
|
||||
// some debugging functions
|
||||
#if 0
|
||||
|
@ -273,6 +273,6 @@ private:
|
||||
void noteCommand(uint8 note, uint8 param1, uint8 param2, uint8 param3);
|
||||
};
|
||||
|
||||
} // End of namespace Audio
|
||||
} // End of namespace Audio
|
||||
|
||||
#endif // !defined(AUDIO_MODS_TFMX_H)
|
||||
|
@ -226,6 +226,6 @@ void std_clearerr(FILE *handle);
|
||||
int std_fflush(FILE *handle);
|
||||
int std_ferror(FILE *handle);
|
||||
|
||||
} // End of namespace DS
|
||||
} // End of namespace DS
|
||||
|
||||
#endif //_DS_FS_H
|
||||
|
@ -391,4 +391,4 @@ void Rescale_320x256x1555_To_256x256x1555(u16 *dest, const u16 *src, int destStr
|
||||
}
|
||||
}
|
||||
|
||||
} // End of namespace DS
|
||||
} // End of namespace DS
|
||||
|
@ -35,7 +35,7 @@ void asmCopy8Col(byte *dst, int dstPitch, const byte *src, int height);
|
||||
void Rescale_320x256xPAL8_To_256x256x1555(u16 *dest, const u8 *src, int destStride, int srcStride, const u16 *palette);
|
||||
void Rescale_320x256x1555_To_256x256x1555(u16 *dest, const u16 *src, int destStride, int srcStride);
|
||||
|
||||
} // End of namespace DS
|
||||
} // End of namespace DS
|
||||
|
||||
#else
|
||||
|
||||
|
@ -536,4 +536,4 @@ bool isPlaying() {
|
||||
}
|
||||
|
||||
}
|
||||
} // End of namespace DS
|
||||
} // End of namespace DS
|
||||
|
@ -38,6 +38,6 @@ bool isPlaying();
|
||||
void update();
|
||||
|
||||
}
|
||||
} // End of namespace DS
|
||||
} // End of namespace DS
|
||||
|
||||
#endif
|
||||
|
@ -3225,7 +3225,7 @@ int main(void) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
} // End of namespace DS
|
||||
} // End of namespace DS
|
||||
|
||||
|
||||
int main() {
|
||||
|
@ -153,7 +153,7 @@ void* fastRamAlloc(int size);
|
||||
void exitGame();
|
||||
|
||||
|
||||
} // End of namespace DS
|
||||
} // End of namespace DS
|
||||
|
||||
|
||||
|
||||
|
@ -432,4 +432,4 @@ void setOptions() {
|
||||
firstLoad = false;
|
||||
}
|
||||
|
||||
} // End of namespace DS
|
||||
} // End of namespace DS
|
||||
|
@ -78,6 +78,6 @@ protected:
|
||||
extern void showOptionsDialog();
|
||||
extern void setOptions();
|
||||
|
||||
} // End of namespace DS
|
||||
} // End of namespace DS
|
||||
|
||||
#endif
|
||||
|
@ -133,4 +133,4 @@ uint32 keysUp(void) {
|
||||
}
|
||||
|
||||
|
||||
} // End of namespace DS
|
||||
} // End of namespace DS
|
||||
|
@ -30,4 +30,4 @@ uint32 keysDownRepeat(void);
|
||||
void keysSetRepeat(u8 setDelay, u8 setRepeat);
|
||||
uint32 keysUp(void);
|
||||
|
||||
} // End of namespace DS
|
||||
} // End of namespace DS
|
||||
|
@ -91,7 +91,7 @@ void updateStrings(byte gameId, byte version, Common::Platform platform,
|
||||
|
||||
}
|
||||
|
||||
} // End of namespace DS
|
||||
} // End of namespace DS
|
||||
|
||||
|
||||
|
||||
|
@ -31,7 +31,7 @@ namespace DS {
|
||||
void updateStrings(byte gameId, byte version, Common::Platform platform,
|
||||
int page, Common::String &title, Common::String *&key, Common::String *&dsc);
|
||||
|
||||
} // End of namespace DS
|
||||
} // End of namespace DS
|
||||
|
||||
|
||||
#endif
|
||||
|
@ -585,4 +585,4 @@ void addKeyboardEvents() {
|
||||
|
||||
}
|
||||
|
||||
} // End of namespace DS
|
||||
} // End of namespace DS
|
||||
|
@ -46,6 +46,6 @@ void clearAutoComplete();
|
||||
void setCharactersEntered(int count);
|
||||
void releaseAllKeys();
|
||||
|
||||
} // End of namespace DS
|
||||
} // End of namespace DS
|
||||
|
||||
#endif
|
||||
|
@ -198,6 +198,6 @@ bool findWordCompletions(const char *input) {
|
||||
|
||||
}
|
||||
|
||||
} // End of namespace DS
|
||||
} // End of namespace DS
|
||||
|
||||
#endif
|
||||
|
@ -27,4 +27,4 @@ extern bool findWordCompletions(const char *input);
|
||||
extern void addAutoCompleteLine(const char *line);
|
||||
extern void sortAutoCompleteWordList();
|
||||
|
||||
} // End of namespace DS
|
||||
} // End of namespace DS
|
||||
|
@ -61,6 +61,6 @@ SeekableReadStream *wrapBufferedSeekableReadStream(SeekableReadStream *parentStr
|
||||
*/
|
||||
WriteStream *wrapBufferedWriteStream(WriteStream *parentStream, uint32 bufSize);
|
||||
|
||||
} // End of namespace Common
|
||||
} // End of namespace Common
|
||||
|
||||
#endif
|
||||
|
@ -380,4 +380,4 @@ void ConfigFile::Section::removeKey(const String &key) {
|
||||
}
|
||||
}
|
||||
|
||||
} // End of namespace Common
|
||||
} // End of namespace Common
|
||||
|
@ -134,6 +134,6 @@ private:
|
||||
|
||||
*/
|
||||
|
||||
} // End of namespace Common
|
||||
} // End of namespace Common
|
||||
|
||||
#endif
|
||||
|
@ -175,7 +175,7 @@ private:
|
||||
String _filename;
|
||||
};
|
||||
|
||||
} // End of namespace Common
|
||||
} // End of namespace Common
|
||||
|
||||
/** Shortcut for accessing the configuration manager. */
|
||||
#define ConfMan Common::ConfigManager::instance()
|
||||
|
@ -124,6 +124,6 @@ private:
|
||||
/** Shortcut for accessing the debug manager. */
|
||||
#define DebugMan Common::DebugManager::instance()
|
||||
|
||||
} // End of namespace Common
|
||||
} // End of namespace Common
|
||||
|
||||
#endif
|
||||
|
@ -102,7 +102,7 @@ bool DebugManager::isDebugChannelEnabled(uint32 channel) {
|
||||
return (gDebugChannelsEnabled & channel) != 0;
|
||||
}
|
||||
|
||||
} // End of namespace Common
|
||||
} // End of namespace Common
|
||||
|
||||
|
||||
#ifndef DISABLE_TEXT_CONSOLE
|
||||
|
@ -202,4 +202,4 @@ bool DumpFile::flush() {
|
||||
return _handle->flush();
|
||||
}
|
||||
|
||||
} // End of namespace Common
|
||||
} // End of namespace Common
|
||||
|
@ -335,4 +335,4 @@ int FSDirectory::listMembers(ArchiveMemberList &list) const {
|
||||
}
|
||||
|
||||
|
||||
} // End of namespace Common
|
||||
} // End of namespace Common
|
||||
|
@ -535,6 +535,6 @@ GENERATE_TRIVIAL_HASH_FUNCTOR(unsigned long);
|
||||
|
||||
#undef GENERATE_TRIVIAL_HASH_FUNCTOR
|
||||
|
||||
} // End of namespace Common
|
||||
} // End of namespace Common
|
||||
|
||||
#endif
|
||||
|
@ -79,7 +79,7 @@ typedef HashMap<String, String, IgnoreCase_Hash, IgnoreCase_EqualTo> StringMap;
|
||||
|
||||
|
||||
|
||||
} // End of namespace Common
|
||||
} // End of namespace Common
|
||||
|
||||
|
||||
#endif
|
||||
|
@ -106,4 +106,4 @@ void updateHashCollisionStats(int collisions, int dummyHits, int lookups, int ar
|
||||
}
|
||||
#endif
|
||||
|
||||
} // End of namespace Common
|
||||
} // End of namespace Common
|
||||
|
@ -632,6 +632,6 @@ void HashMap<Key, Val, HashFunc, EqualFunc>::erase(const Key &key) {
|
||||
|
||||
#undef HASHMAP_DUMMY_NODE
|
||||
|
||||
} // End of namespace Common
|
||||
} // End of namespace Common
|
||||
|
||||
#endif
|
||||
|
@ -122,4 +122,4 @@ uint32 PackBitsReadStream::read(void *dataPtr, uint32 dataSize) {
|
||||
return dataSize - left;
|
||||
}
|
||||
|
||||
} // End of namespace Common
|
||||
} // End of namespace Common
|
||||
|
@ -81,6 +81,6 @@ const String getGameGUIOptionsDescriptionLanguage(Common::Language lang);
|
||||
// TODO: Document this GUIO related function
|
||||
bool checkGameGUIOptionLanguage(Common::Language lang, const String &str);
|
||||
|
||||
} // End of namespace Common
|
||||
} // End of namespace Common
|
||||
|
||||
#endif
|
||||
|
@ -141,7 +141,7 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
} // End of namespace Common
|
||||
} // End of namespace Common
|
||||
|
||||
/**
|
||||
* A custom placement new operator, using an arbitrary MemoryPool.
|
||||
|
@ -173,6 +173,6 @@ public:
|
||||
bool seek(int32 offset, int whence = SEEK_SET);
|
||||
};
|
||||
|
||||
} // End of namespace Common
|
||||
} // End of namespace Common
|
||||
|
||||
#endif
|
||||
|
@ -75,4 +75,4 @@ void StackLock::unlock() {
|
||||
g_system->unlockMutex(_mutex);
|
||||
}
|
||||
|
||||
} // End of namespace Common
|
||||
} // End of namespace Common
|
||||
|
@ -75,6 +75,6 @@ extern const char *getPlatformCode(Platform id);
|
||||
extern const char *getPlatformAbbrev(Platform id);
|
||||
extern const char *getPlatformDescription(Platform id);
|
||||
|
||||
} // End of namespace Common
|
||||
} // End of namespace Common
|
||||
|
||||
#endif
|
||||
|
@ -59,4 +59,4 @@ uint RandomSource::getRandomNumberRng(uint min, uint max) {
|
||||
return getRandomNumber(max - min) + min;
|
||||
}
|
||||
|
||||
} // End of namespace Common
|
||||
} // End of namespace Common
|
||||
|
@ -74,6 +74,6 @@ public:
|
||||
uint getRandomNumberRng(uint min, uint max);
|
||||
};
|
||||
|
||||
} // End of namespace Common
|
||||
} // End of namespace Common
|
||||
|
||||
#endif
|
||||
|
@ -266,6 +266,6 @@ struct Rect {
|
||||
}
|
||||
};
|
||||
|
||||
} // End of namespace Common
|
||||
} // End of namespace Common
|
||||
|
||||
#endif
|
||||
|
@ -97,6 +97,6 @@ protected:
|
||||
#define DECLARE_SINGLETON(T) \
|
||||
template<> T *Singleton<T>::_singleton = 0
|
||||
|
||||
} // End of namespace Common
|
||||
} // End of namespace Common
|
||||
|
||||
#endif
|
||||
|
@ -850,7 +850,7 @@ size_t strlcat(char *dst, const char *src, size_t size) {
|
||||
return dstLength + (src - srcStart);
|
||||
}
|
||||
|
||||
} // End of namespace Common
|
||||
} // End of namespace Common
|
||||
|
||||
// Portable implementation of stricmp / strcasecmp / strcmpi.
|
||||
// TODO: Rename this to Common::strcasecmp
|
||||
|
@ -342,7 +342,7 @@ uint32 BufferedReadStream::read(void *dataPtr, uint32 dataSize) {
|
||||
return alreadyRead + dataSize;
|
||||
}
|
||||
|
||||
} // End of nameless namespace
|
||||
} // End of nameless namespace
|
||||
|
||||
|
||||
ReadStream *wrapBufferedReadStream(ReadStream *parentStream, uint32 bufSize, DisposeAfterUse::Flag disposeParentStream) {
|
||||
@ -400,7 +400,7 @@ bool BufferedSeekableReadStream::seek(int32 offset, int whence) {
|
||||
return true;
|
||||
}
|
||||
|
||||
} // End of nameless namespace
|
||||
} // End of nameless namespace
|
||||
|
||||
SeekableReadStream *wrapBufferedSeekableReadStream(SeekableReadStream *parentStream, uint32 bufSize, DisposeAfterUse::Flag disposeParentStream) {
|
||||
if (parentStream)
|
||||
@ -482,7 +482,7 @@ public:
|
||||
|
||||
};
|
||||
|
||||
} // End of nameless namespace
|
||||
} // End of nameless namespace
|
||||
|
||||
WriteStream *wrapBufferedWriteStream(WriteStream *parentStream, uint32 bufSize) {
|
||||
if (parentStream)
|
||||
@ -490,4 +490,4 @@ WriteStream *wrapBufferedWriteStream(WriteStream *parentStream, uint32 bufSize)
|
||||
return 0;
|
||||
}
|
||||
|
||||
} // End of namespace Common
|
||||
} // End of namespace Common
|
||||
|
@ -454,6 +454,6 @@ public:
|
||||
};
|
||||
|
||||
|
||||
} // End of namespace Common
|
||||
} // End of namespace Common
|
||||
|
||||
#endif
|
||||
|
@ -136,7 +136,7 @@ public:
|
||||
virtual void clearError() {}
|
||||
};
|
||||
|
||||
} // End of namespace Common
|
||||
} // End of namespace Common
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -40,7 +40,7 @@ void setErrorHandler(ErrorHandler handler) {
|
||||
}
|
||||
|
||||
|
||||
} // End of namespace Common
|
||||
} // End of namespace Common
|
||||
|
||||
|
||||
#ifndef DISABLE_TEXT_CONSOLE
|
||||
|
@ -56,7 +56,7 @@ typedef void (*ErrorHandler)(const char *msg);
|
||||
*/
|
||||
void setErrorHandler(ErrorHandler handler);
|
||||
|
||||
} // End of namespace Common
|
||||
} // End of namespace Common
|
||||
|
||||
|
||||
void NORETURN_PRE error(const char *s, ...) GCC_PRINTF(1, 2) NORETURN_POST;
|
||||
|
@ -1534,4 +1534,4 @@ Archive *makeZipArchive(SeekableReadStream *stream) {
|
||||
return new ZipArchive(zipFile);
|
||||
}
|
||||
|
||||
} // End of namespace Common
|
||||
} // End of namespace Common
|
||||
|
@ -56,6 +56,6 @@ Archive *makeZipArchive(const FSNode &node);
|
||||
*/
|
||||
Archive *makeZipArchive(SeekableReadStream *stream);
|
||||
|
||||
} // End of namespace Common
|
||||
} // End of namespace Common
|
||||
|
||||
#endif
|
||||
|
@ -95,7 +95,7 @@ public:
|
||||
virtual UpdateInterval getUpdateCheckInterval() { return kUpdateIntervalNotSupported; }
|
||||
};
|
||||
|
||||
} // End of namespace Common
|
||||
} // End of namespace Common
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -419,4 +419,4 @@ WriteStream *wrapCompressedWriteStream(WriteStream *toBeWrapped) {
|
||||
}
|
||||
|
||||
|
||||
} // End of namespace Common
|
||||
} // End of namespace Common
|
||||
|
@ -131,6 +131,6 @@ SeekableReadStream *wrapCompressedReadStream(SeekableReadStream *toBeWrapped, ui
|
||||
*/
|
||||
WriteStream *wrapCompressedWriteStream(WriteStream *toBeWrapped);
|
||||
|
||||
} // End of namespace Common
|
||||
} // End of namespace Common
|
||||
|
||||
#endif
|
||||
|
@ -37,6 +37,6 @@ struct AgiLogic {
|
||||
const char **texts; /**< message list */
|
||||
};
|
||||
|
||||
} // End of namespace Agi
|
||||
} // End of namespace Agi
|
||||
|
||||
#endif /* AGI_LOGIC_H */
|
||||
|
@ -27,6 +27,6 @@ namespace Agi {
|
||||
|
||||
void lzwExpand(uint8 *, uint8 *, int32);
|
||||
|
||||
} // End of namespace Agi
|
||||
} // End of namespace Agi
|
||||
|
||||
#endif /* AGI_LZW_H */
|
||||
|
@ -355,6 +355,6 @@ private:
|
||||
void printStrWinnie(char *szMsg);
|
||||
};
|
||||
|
||||
} // End of namespace Agi
|
||||
} // End of namespace Agi
|
||||
|
||||
#endif
|
||||
|
@ -400,4 +400,4 @@ void OldPipe::nextFrame() {
|
||||
_currFrame++;
|
||||
}
|
||||
|
||||
} // End of namespace Composer
|
||||
} // End of namespace Composer
|
||||
|
@ -27,5 +27,5 @@ namespace Cruise {
|
||||
|
||||
void updateAllScriptsImports();
|
||||
|
||||
} // End of namespace Cruise
|
||||
} // End of namespace Cruise
|
||||
#endif
|
||||
|
@ -133,4 +133,4 @@ Common::SeekableReadStream *InstallerArchive::createReadStreamForMember(const Co
|
||||
return Common::decompressDCL(_stream, entry.compressedSize, entry.uncompressedSize);
|
||||
}
|
||||
|
||||
} // End of namespace Mohawk
|
||||
} // End of namespace Mohawk
|
||||
|
@ -464,4 +464,4 @@ bool DOSArchive_v2::openStream(Common::SeekableReadStream *stream) {
|
||||
return true;
|
||||
}
|
||||
|
||||
} // End of namespace Mohawk
|
||||
} // End of namespace Mohawk
|
||||
|
@ -771,4 +771,4 @@ bool AmigaSound::playSpecialSfx(int16 sfx) {
|
||||
return true;
|
||||
}
|
||||
|
||||
} //End of namespace Queen
|
||||
} // End of namespace Queen
|
||||
|
@ -69,4 +69,4 @@ void ConfigParams::deleteWriteStream() {
|
||||
}
|
||||
}
|
||||
|
||||
} // End of namespace Testbed
|
||||
} // End of namespace Testbed
|
||||
|
@ -304,4 +304,4 @@ void TestbedConfigManager::selectTestsuites() {
|
||||
_configFileInterface.clear();
|
||||
}
|
||||
|
||||
} // End of namespace Testbed
|
||||
} // End of namespace Testbed
|
||||
|
@ -277,4 +277,4 @@ SoundSubsystemTestSuite::SoundSubsystemTestSuite() {
|
||||
addTest("SampleRates", &SoundSubsystem::sampleRates, true);
|
||||
}
|
||||
|
||||
} // End of namespace Testbed
|
||||
} // End of namespace Testbed
|
||||
|
@ -324,7 +324,7 @@ SaveStateDescriptor ToltecsMetaEngine::querySaveMetaInfos(const char *target, in
|
||||
}
|
||||
|
||||
return SaveStateDescriptor();
|
||||
} // End of namespace Toltecs
|
||||
} // End of namespace Toltecs
|
||||
|
||||
#if PLUGIN_ENABLED_DYNAMIC(TOLTECS)
|
||||
REGISTER_PLUGIN_DYNAMIC(TOLTECS, PLUGIN_TYPE_ENGINE, ToltecsMetaEngine);
|
||||
|
@ -78,4 +78,4 @@ void drawThickLine(int x0, int y0, int x1, int y1, int penX, int penY, int color
|
||||
drawLine(x0 + x, y0 + y, x1 + x, y1 + y, color, plotProc, data);
|
||||
}
|
||||
|
||||
} // End of namespace Graphics
|
||||
} // End of namespace Graphics
|
||||
|
@ -27,6 +27,6 @@ namespace Graphics {
|
||||
void drawLine(int x0, int y0, int x1, int y1, int color, void (*plotProc)(int, int, int, void *), void *data);
|
||||
void drawThickLine(int x0, int y0, int x1, int y1, int penX, int penY, int color, void (*plotProc)(int, int, int, void *), void *data);
|
||||
|
||||
} // End of namespace Graphics
|
||||
} // End of namespace Graphics
|
||||
|
||||
#endif
|
||||
|
@ -554,4 +554,4 @@ bool Debugger::debuggerCompletionCallback(GUI::ConsoleDialog *console, const cha
|
||||
|
||||
#endif
|
||||
|
||||
} // End of namespace GUI
|
||||
} // End of namespace GUI
|
||||
|
@ -207,6 +207,6 @@ public:
|
||||
|
||||
};
|
||||
|
||||
} // End of namespace GUI
|
||||
} // End of namespace GUI
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user