summaryrefslogtreecommitdiffstats
path: root/ppapi
diff options
context:
space:
mode:
authorteravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-28 16:14:21 +0000
committerteravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-28 16:14:21 +0000
commitc1d2b7d7bf0eb0c1f7befe2b80e3d528d21ef912 (patch)
tree381d3c08e34a9fe2d12ea657a7605afacdc3bd29 /ppapi
parent53c9eb668837a65083b63bec1227d88d36f907ad (diff)
downloadchromium_src-c1d2b7d7bf0eb0c1f7befe2b80e3d528d21ef912.zip
chromium_src-c1d2b7d7bf0eb0c1f7befe2b80e3d528d21ef912.tar.gz
chromium_src-c1d2b7d7bf0eb0c1f7befe2b80e3d528d21ef912.tar.bz2
IDL: Ignore C++ style "From" comments.
Thunk generation uses C++ style comments for the "From"..."modified"... comments, which weren't being ignored by IDLOutfile. This caused unnecessary file updates, which are annoying. Also, fix spelling: IsEquivelent -> IsEquivalent BUG= Review URL: https://chromiumcodereview.appspot.com/11316190 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@169960 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi')
-rwxr-xr-xppapi/generators/idl_outfile.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/ppapi/generators/idl_outfile.py b/ppapi/generators/idl_outfile.py
index aa0b5aa..bb9b849 100755
--- a/ppapi/generators/idl_outfile.py
+++ b/ppapi/generators/idl_outfile.py
@@ -16,7 +16,7 @@ from stat import *
Option('diff', 'Generate a DIFF when saving the file.')
-def IsEquivelent(intext, outtext):
+def IsEquivalent(intext, outtext):
if not intext: return False
inlines = intext.split('\n')
outlines = outtext.split('\n')
@@ -35,7 +35,8 @@ def IsEquivelent(intext, outtext):
outwords = outline.split()
if not inwords or not outwords: return False
- if inwords[0] != outwords[0] or inwords[0] not in ('/*', '*'): return False
+ if inwords[0] != outwords[0] or inwords[0] not in ('/*', '*', '//'):
+ return False
# Neither the year, nor the modified date need an exact match
if inwords[1] == 'Copyright':
@@ -85,7 +86,7 @@ class IDLOutFile(object):
else:
intext = ''
- if IsEquivelent(intext, outtext):
+ if IsEquivalent(intext, outtext):
if GetOption('verbose'):
InfoOut.Log('Output %s unchanged.' % self.filename)
return False