1
0
mirror of https://github.com/OlafvdSpek/ctemplate.git synced 2025-09-28 19:05:49 +08:00

Remove _END_GOOGLE_NAMESPACE_

This commit is contained in:
olafvdspek 2015-02-15 00:38:19 +00:00
parent 4e26363259
commit 8e737eaf4a
22 changed files with 23 additions and 24 deletions

View File

@ -138,7 +138,7 @@ template<class T, class C> const int ArenaAllocator<T, C>::kAlignment =
// 'new' must be in the global namespace.
_END_GOOGLE_NAMESPACE_
}
using GOOGLE_NAMESPACE::UnsafeArena;
@ -347,6 +347,6 @@ class ArrayGladiator : public Gladiator {
#endif // ********** example
_END_GOOGLE_NAMESPACE_
}
#endif // BASE_ARENA_INL_H_

View File

@ -502,4 +502,4 @@ char* SafeArena::Realloc(char* s, size_t oldsize, size_t newsize) {
return newstr;
}
_END_GOOGLE_NAMESPACE_
}

View File

@ -693,6 +693,6 @@ class CTEMPLATE_DLL_DECL SafeArena : public BaseArena {
DISALLOW_COPY_AND_ASSIGN(SafeArena);
};
_END_GOOGLE_NAMESPACE_
}
#endif // BASE_ARENA_H_

View File

@ -101,6 +101,6 @@ class File {
FILE* fp_;
};
_END_GOOGLE_NAMESPACE_
}
#endif // TEMPLATE_OPENSOURCE_FILEUTIL_H_

View File

@ -231,6 +231,6 @@ class ManualConstructor {
#undef UTIL_GTL_ALIGNED_CHAR_ARRAY
#undef UTIL_GTL_ALIGN_OF
_END_GOOGLE_NAMESPACE_
}
#endif // UTIL_GTL_MANUAL_CONSTRUCTOR_H_

View File

@ -403,6 +403,6 @@ class WriterMutexLock {
#define ReaderMutexLock(x) COMPILE_ASSERT(0, rmutex_lock_decl_missing_var_name)
#define WriterMutexLock(x) COMPILE_ASSERT(0, wmutex_lock_decl_missing_var_name)
_END_GOOGLE_NAMESPACE_
}
#endif /* #define GOOGLE_MUTEX_H__ */

View File

@ -563,6 +563,6 @@ inline bool small_map<NormalMap, kArraySize, EqualKey,
return other != *this;
}
_END_GOOGLE_NAMESPACE_
}
#endif // UTIL_GTL_SMALL_MAP_H_

View File

@ -129,6 +129,6 @@ class IndentedWriter {
const static int kIndent = 2; // num spaces to indent each level
};
_END_GOOGLE_NAMESPACE_
}
#endif // TEMPLATE_INDENTED_WRITER_H_

View File

@ -75,4 +75,4 @@ const void* PerExpandData::LookupForModifiers(const char* key) const {
return map_ ? find_ptr2(*map_, key) : NULL;
}
_END_GOOGLE_NAMESPACE_
}

View File

@ -2774,4 +2774,4 @@ bool Template::ExpandWithDataAndCache(
return ExpandLocked(expand_emitter, dict, per_expand_data, cache);
}
_END_GOOGLE_NAMESPACE_
}

View File

@ -105,4 +105,4 @@ void TextTemplateAnnotator::EmitFileIsMissing(ExpandEmitter* emitter,
EMIT_MISSING_ANNOTATION(emitter,"MISSING_FILE", value);
}
_END_GOOGLE_NAMESPACE_
}

View File

@ -769,4 +769,4 @@ bool TemplateCache::IsValidTemplateFilename(const string& filename,
return true;
}
_END_GOOGLE_NAMESPACE_
}

View File

@ -1029,4 +1029,4 @@ TemplateDictionary::CreateSectionIterator(
abort();
}
_END_GOOGLE_NAMESPACE_
}

View File

@ -1414,4 +1414,4 @@ vector<const ModifierAndValue*> GetDefaultModifierForJson() {
return GetModifierForJson(NULL, NULL);
}
_END_GOOGLE_NAMESPACE_
}

View File

@ -242,6 +242,6 @@ std::vector<const ModifierAndValue*> GetDefaultModifierForXml();
extern CTEMPLATE_DLL_DECL
std::vector<const ModifierAndValue*> GetDefaultModifierForJson();
_END_GOOGLE_NAMESPACE_
}
#endif // TEMPLATE_TEMPLATE_MODIFIERS_INTERNAL_H_

View File

@ -191,4 +191,4 @@ bool TemplateNamelist::IsAllSyntaxOkay(Strip strip) {
return bad_syntax_list.empty();
}
_END_GOOGLE_NAMESPACE_
}

View File

@ -142,4 +142,4 @@ bool ContainsFullWord(const string& text, const string& word) {
return false;
}
_END_GOOGLE_NAMESPACE_
}

View File

@ -253,4 +253,4 @@ StaticTemplateStringInitializer::StaticTemplateStringInitializer(
ts_copy_of_sts.AddToGlobalIdToNameMap();
}
_END_GOOGLE_NAMESPACE_
}

View File

@ -306,4 +306,4 @@ const char* TemplateDictionaryPeer::GetFilename() const {
return dict_->filename_;
}
_END_GOOGLE_NAMESPACE_
}

View File

@ -278,7 +278,6 @@ class TemplateCachePeer {
void operator=(const TemplateCachePeer&);
};
_END_GOOGLE_NAMESPACE_
}
#endif // TEMPLATE_TEMPLATE_TEST_UTIL_H_

View File

@ -99,7 +99,7 @@ void CreateOrCleanTestDir(const string& dirname) {
}
}
_END_GOOGLE_NAMESPACE_
}
void GetNamelist(const char* testdata_dir, vector<string>* namelist) {
string glob(GOOGLE_NAMESPACE::PathJoin(testdata_dir,

View File

@ -125,7 +125,7 @@ extern int CTEMPLATE_DLL_DECL safe_vsnprintf(char *str, size_t size,
_START_GOOGLE_NAMESPACE_
extern CTEMPLATE_DLL_DECL std::string TmpFile(const char* basename);
void CTEMPLATE_DLL_DECL CreateOrCleanTestDir(const std::string& dirname);
_END_GOOGLE_NAMESPACE_
}
void CTEMPLATE_DLL_DECL GetNamelist(const char* testdata_dir,
std::vector<std::string>* namelist);
#endif /* __cplusplus */