mirror of
https://github.com/OlafvdSpek/ctemplate.git
synced 2025-09-28 19:05:49 +08:00
Use ULL instead of LLU
This commit is contained in:
parent
92208e0adf
commit
df11656259
|
@ -655,7 +655,7 @@ static void WriteOneHeaderEntry(
|
||||||
}
|
}
|
||||||
|
|
||||||
// print out the variable, but only if we haven't seen it before.
|
// print out the variable, but only if we haven't seen it before.
|
||||||
if (vars_seen.find(variable) == vars_seen.end()) {
|
if (!vars_seen.count(variable)) {
|
||||||
if (variable == kMainSectionName || variable.find("BI_") == 0) {
|
if (variable == kMainSectionName || variable.find("BI_") == 0) {
|
||||||
// We don't want to write entries for __MAIN__ or the built-ins
|
// We don't want to write entries for __MAIN__ or the built-ins
|
||||||
} else {
|
} else {
|
||||||
|
@ -665,7 +665,7 @@ static void WriteOneHeaderEntry(
|
||||||
<< AS_STR(GOOGLE_NAMESPACE) << "::StaticTemplateString "
|
<< AS_STR(GOOGLE_NAMESPACE) << "::StaticTemplateString "
|
||||||
<< prefix << variable << " = STS_INIT_WITH_HASH("
|
<< prefix << variable << " = STS_INIT_WITH_HASH("
|
||||||
<< prefix << variable << ", \"" << variable << "\", "
|
<< prefix << variable << ", \"" << variable << "\", "
|
||||||
<< id << "LLU);\n";
|
<< id << "ULL);\n";
|
||||||
outstring->append(outstream.str());
|
outstring->append(outstream.str());
|
||||||
}
|
}
|
||||||
vars_seen[variable] = true;
|
vars_seen[variable] = true;
|
||||||
|
|
|
@ -83,9 +83,9 @@ expected_ok1=`cat <<EOF | grep -v '^EOF$'
|
||||||
#define %%%OUTPUT_NAME%%%
|
#define %%%OUTPUT_NAME%%%
|
||||||
|
|
||||||
#include <ctemplate/template_string.h>
|
#include <ctemplate/template_string.h>
|
||||||
static const ::ctemplate::StaticTemplateString ko_QCHAR = STS_INIT_WITH_HASH(ko_QCHAR, "QCHAR", 13739615363438531061LLU);
|
static const ::ctemplate::StaticTemplateString ko_QCHAR = STS_INIT_WITH_HASH(ko_QCHAR, "QCHAR", 13739615363438531061ULL);
|
||||||
static const ::ctemplate::StaticTemplateString ko_HREF = STS_INIT_WITH_HASH(ko_HREF, "HREF", 4441707909033668369LLU);
|
static const ::ctemplate::StaticTemplateString ko_HREF = STS_INIT_WITH_HASH(ko_HREF, "HREF", 4441707909033668369ULL);
|
||||||
static const ::ctemplate::StaticTemplateString ko_PARAMS = STS_INIT_WITH_HASH(ko_PARAMS, "PARAMS", 10755877064288701757LLU);
|
static const ::ctemplate::StaticTemplateString ko_PARAMS = STS_INIT_WITH_HASH(ko_PARAMS, "PARAMS", 10755877064288701757ULL);
|
||||||
|
|
||||||
#endif // %%%OUTPUT_NAME%%%
|
#endif // %%%OUTPUT_NAME%%%
|
||||||
EOF`
|
EOF`
|
||||||
|
@ -95,8 +95,8 @@ expected_ok2=`cat <<EOF | grep -v '^EOF$'
|
||||||
#define %%%OUTPUT_NAME%%%
|
#define %%%OUTPUT_NAME%%%
|
||||||
|
|
||||||
#include <ctemplate/template_string.h>
|
#include <ctemplate/template_string.h>
|
||||||
static const ::ctemplate::StaticTemplateString ko_ATTRIBUTES = STS_INIT_WITH_HASH(ko_ATTRIBUTES, "ATTRIBUTES", 11813232524653503831LLU);
|
static const ::ctemplate::StaticTemplateString ko_ATTRIBUTES = STS_INIT_WITH_HASH(ko_ATTRIBUTES, "ATTRIBUTES", 11813232524653503831ULL);
|
||||||
static const ::ctemplate::StaticTemplateString ko_ATTRIBUTE = STS_INIT_WITH_HASH(ko_ATTRIBUTE, "ATTRIBUTE", 14959290143384361001LLU);
|
static const ::ctemplate::StaticTemplateString ko_ATTRIBUTE = STS_INIT_WITH_HASH(ko_ATTRIBUTE, "ATTRIBUTE", 14959290143384361001ULL);
|
||||||
|
|
||||||
#endif // %%%OUTPUT_NAME%%%
|
#endif // %%%OUTPUT_NAME%%%
|
||||||
EOF`
|
EOF`
|
||||||
|
@ -106,7 +106,7 @@ expected_ok3=`cat <<EOF | grep -v '^EOF$'
|
||||||
#define %%%OUTPUT_NAME%%%
|
#define %%%OUTPUT_NAME%%%
|
||||||
|
|
||||||
#include <ctemplate/template_string.h>
|
#include <ctemplate/template_string.h>
|
||||||
static const ::ctemplate::StaticTemplateString ko_TITLE = STS_INIT_WITH_HASH(ko_TITLE, "TITLE", 8931122033088041025LLU);
|
static const ::ctemplate::StaticTemplateString ko_TITLE = STS_INIT_WITH_HASH(ko_TITLE, "TITLE", 8931122033088041025ULL);
|
||||||
|
|
||||||
#endif // %%%OUTPUT_NAME%%%
|
#endif // %%%OUTPUT_NAME%%%
|
||||||
EOF`
|
EOF`
|
||||||
|
@ -116,8 +116,8 @@ expected_ok4=`cat <<EOF | grep -v '^EOF$'
|
||||||
#define %%%OUTPUT_NAME%%%
|
#define %%%OUTPUT_NAME%%%
|
||||||
|
|
||||||
#include <ctemplate/template_string.h>
|
#include <ctemplate/template_string.h>
|
||||||
static const ::ctemplate::StaticTemplateString ko_HREF = STS_INIT_WITH_HASH(ko_HREF, "HREF", 4441707909033668369LLU);
|
static const ::ctemplate::StaticTemplateString ko_HREF = STS_INIT_WITH_HASH(ko_HREF, "HREF", 4441707909033668369ULL);
|
||||||
static const ::ctemplate::StaticTemplateString ko_PARAMS = STS_INIT_WITH_HASH(ko_PARAMS, "PARAMS", 10755877064288701757LLU);
|
static const ::ctemplate::StaticTemplateString ko_PARAMS = STS_INIT_WITH_HASH(ko_PARAMS, "PARAMS", 10755877064288701757ULL);
|
||||||
|
|
||||||
#endif // %%%OUTPUT_NAME%%%
|
#endif // %%%OUTPUT_NAME%%%
|
||||||
EOF`
|
EOF`
|
||||||
|
@ -135,11 +135,11 @@ expected_ok1and2=`cat <<EOF | grep -v '^EOF$'
|
||||||
#define %%%OUTPUT_NAME%%%
|
#define %%%OUTPUT_NAME%%%
|
||||||
|
|
||||||
#include <ctemplate/template_string.h>
|
#include <ctemplate/template_string.h>
|
||||||
static const ::ctemplate::StaticTemplateString ko_QCHAR = STS_INIT_WITH_HASH(ko_QCHAR, "QCHAR", 13739615363438531061LLU);
|
static const ::ctemplate::StaticTemplateString ko_QCHAR = STS_INIT_WITH_HASH(ko_QCHAR, "QCHAR", 13739615363438531061ULL);
|
||||||
static const ::ctemplate::StaticTemplateString ko_HREF = STS_INIT_WITH_HASH(ko_HREF, "HREF", 4441707909033668369LLU);
|
static const ::ctemplate::StaticTemplateString ko_HREF = STS_INIT_WITH_HASH(ko_HREF, "HREF", 4441707909033668369ULL);
|
||||||
static const ::ctemplate::StaticTemplateString ko_PARAMS = STS_INIT_WITH_HASH(ko_PARAMS, "PARAMS", 10755877064288701757LLU);
|
static const ::ctemplate::StaticTemplateString ko_PARAMS = STS_INIT_WITH_HASH(ko_PARAMS, "PARAMS", 10755877064288701757ULL);
|
||||||
static const ::ctemplate::StaticTemplateString ko_ATTRIBUTES = STS_INIT_WITH_HASH(ko_ATTRIBUTES, "ATTRIBUTES", 11813232524653503831LLU);
|
static const ::ctemplate::StaticTemplateString ko_ATTRIBUTES = STS_INIT_WITH_HASH(ko_ATTRIBUTES, "ATTRIBUTES", 11813232524653503831ULL);
|
||||||
static const ::ctemplate::StaticTemplateString ko_ATTRIBUTE = STS_INIT_WITH_HASH(ko_ATTRIBUTE, "ATTRIBUTE", 14959290143384361001LLU);
|
static const ::ctemplate::StaticTemplateString ko_ATTRIBUTE = STS_INIT_WITH_HASH(ko_ATTRIBUTE, "ATTRIBUTE", 14959290143384361001ULL);
|
||||||
|
|
||||||
#endif // %%%OUTPUT_NAME%%%
|
#endif // %%%OUTPUT_NAME%%%
|
||||||
EOF`
|
EOF`
|
||||||
|
|
Loading…
Reference in New Issue
Block a user