Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(731)

Issue 9669016: - Support "no_" as well as "no-" prefix on boolean flags. (Closed)

Created:
8 years, 9 months ago by Ivan Posva
Modified:
8 years, 9 months ago
Reviewers:
regis, siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

- Support "no_" as well as "no-" prefix on boolean flags. Committed: https://code.google.com/p/dart/source/detail?r=5270

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -4 lines) Patch
M vm/flags.cc View 1 chunk +9 lines, -4 lines 2 comments Download

Messages

Total messages: 4 (0 generated)
Ivan Posva
8 years, 9 months ago (2012-03-09 23:28:30 UTC) #1
regis
LGTM
8 years, 9 months ago (2012-03-09 23:32:45 UTC) #2
siva
https://chromiumcodereview.appspot.com/9669016/diff/1/vm/flags.cc File vm/flags.cc (right): https://chromiumcodereview.appspot.com/9669016/diff/1/vm/flags.cc#newcode198 vm/flags.cc:198: Normalize(name); Would it not work if this normalization block ...
8 years, 9 months ago (2012-03-10 00:19:48 UTC) #3
Ivan Posva
8 years, 9 months ago (2012-03-10 00:31:30 UTC) #4
https://chromiumcodereview.appspot.com/9669016/diff/1/vm/flags.cc
File vm/flags.cc (right):

https://chromiumcodereview.appspot.com/9669016/diff/1/vm/flags.cc#newcode198
vm/flags.cc:198: Normalize(name);
On 2012/03/10 00:19:49, asiva wrote:
> Would it not work if this normalization block is moved above and a if
> (strncmp(name, kNoPrefix....) is done?

That would work too, but then you have to ensure to not normalize the parameters
to string flags.

Powered by Google App Engine
This is Rietveld 408576698