aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/bookmaker
diff options
context:
space:
mode:
authorGravatar Cary Clark <caryclark@skia.org>2018-01-02 11:34:14 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-01-02 17:00:40 +0000
commit61ca7c56bd79fe0a6cc32e943874ff5e3e5bf220 (patch)
treec459d20ef42f5dcb82a0b0113152f54413c4119d /tools/bookmaker
parente2d4e8f276ba8aee57f071e87e85f04a6a07addf (diff)
update image doc and minor bookmaker fixes
image doc is still a work in progress. Update online version to latest; updating include header is still a ways off. Remove SkPaint::flatten() example since parameter is not publicly accessible. Minor changes to fix typedef and std::function references. TBR=rmistry@google.com Docs-Preview: https://skia.org/?cl=87120 Bug: skia:6898 Change-Id: I3553bc5fca97c5997aa61ea034b5ca10cb10df75 Reviewed-on: https://skia-review.googlesource.com/87120 Reviewed-by: Cary Clark <caryclark@skia.org> Commit-Queue: Cary Clark <caryclark@skia.org>
Diffstat (limited to 'tools/bookmaker')
-rw-r--r--tools/bookmaker/bookmaker.cpp4
-rw-r--r--tools/bookmaker/includeParser.cpp2
2 files changed, 4 insertions, 2 deletions
diff --git a/tools/bookmaker/bookmaker.cpp b/tools/bookmaker/bookmaker.cpp
index b4db36a2e1..2677621ee1 100644
--- a/tools/bookmaker/bookmaker.cpp
+++ b/tools/bookmaker/bookmaker.cpp
@@ -1074,8 +1074,8 @@ string TextParser::typedefName() {
if (!end) {
return this->reportError<string>("missing typedef std::function end bracket >");
}
-
- if (this->startsWith("std::function")) {
+ bool stdFunction = this->startsWith("std::function");
+ if (stdFunction) {
if (!this->skipToEndBracket('>')) {
return this->reportError<string>("missing typedef std::function end bracket >");
}
diff --git a/tools/bookmaker/includeParser.cpp b/tools/bookmaker/includeParser.cpp
index 2846614d44..da2ee54c2e 100644
--- a/tools/bookmaker/includeParser.cpp
+++ b/tools/bookmaker/includeParser.cpp
@@ -1731,6 +1731,8 @@ bool IncludeParser::parseTemplate() {
bool IncludeParser::parseTypedef(Definition* child, Definition* markupDef) {
TextParser typedefParser(child);
+ typedefParser.skipExact("typedef");
+ typedefParser.skipWhiteSpace();
string nameStr = typedefParser.typedefName();
if (!markupDef) {
Definition& typedefDef = fITypedefMap[nameStr];