Bbbudge@chromium.orgAllow enums values to be simple arithmetic expressions.
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
Allow enums values to be simple arithmetic expressions. BUG=none TEST=./generator.py test_parser/enum.idl Review URL: http://codereview.chromium.org/8161006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104588 0039d316-1c4b-4281-b951-d872f2087c98 | 14 年前 | |
Allow enums values to be simple arithmetic expressions. BUG=none TEST=./generator.py test_parser/enum.idl Review URL: http://codereview.chromium.org/8161006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104588 0039d316-1c4b-4281-b951-d872f2087c98 | 14 年前 | |
Add base class for generators This CL is the first step towards alowing multiple generators with a single driver to simplify the use of the generator. It removes old built-in in idl_c_header.py, and replaces it with several golden files to verify output is unchanged. It renames the old 'version' option to 'release' to disambiguate between a RELEASE name such as M14, and an interface VERSION such as 1.0. Removes the 'M14' hack which as added to the source code to force release M14 to be generated. TEST= ./generator.py BUG= http://code.google.com/p/chromium/issues/detail?id=91607 R=sehr@google.com Review URL: http://codereview.chromium.org/7477056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97752 0039d316-1c4b-4281-b951-d872f2087c98 | 14 年前 | |
Update the IDL Generator to use Release instead of Version This CL adds the blob_t type for referencing memory pointers. This is a trivial change to idl_c_proto. The man change for this CL is to fix the version mismatch between types in different files. Since each source file can have it's own Label mapping, using the version of one object to index into a version of another can fail between sources. This CL removes the use of version and the LABEL property, and instead converts the Node's version information immediately as it's added into the versioned namespace. Now namespace objects reference via Release (str M14) instead of Version (float 1.0). This allows the Nodes to compare against each other with a global value. 1- Remove lint warning for missing "LABEL" property 2- Convert Version references to Release references such as vmin to rmin, etc... 3- Remove Version interfaces which are no longer needed 4- Move VersionList and VersionMap in namespace to ReleaseList and ReleaseMap in idl_release.py 5- Added tests to idl_release BUG= http://code.google.com/p/chromium/issues/detail?id=97708 TEST= python idl_release && ./generate Review URL: http://codereview.chromium.org/8045001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102793 0039d316-1c4b-4281-b951-d872f2087c98 | 14 年前 | |
Add base class for generators This CL is the first step towards alowing multiple generators with a single driver to simplify the use of the generator. It removes old built-in in idl_c_header.py, and replaces it with several golden files to verify output is unchanged. It renames the old 'version' option to 'release' to disambiguate between a RELEASE name such as M14, and an interface VERSION such as 1.0. Removes the 'M14' hack which as added to the source code to force release M14 to be generated. TEST= ./generator.py BUG= http://code.google.com/p/chromium/issues/detail?id=91607 R=sehr@google.com Review URL: http://codereview.chromium.org/7477056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97752 0039d316-1c4b-4281-b951-d872f2087c98 | 14 年前 | |
Update the IDL Generator to use Release instead of Version This CL adds the blob_t type for referencing memory pointers. This is a trivial change to idl_c_proto. The man change for this CL is to fix the version mismatch between types in different files. Since each source file can have it's own Label mapping, using the version of one object to index into a version of another can fail between sources. This CL removes the use of version and the LABEL property, and instead converts the Node's version information immediately as it's added into the versioned namespace. Now namespace objects reference via Release (str M14) instead of Version (float 1.0). This allows the Nodes to compare against each other with a global value. 1- Remove lint warning for missing "LABEL" property 2- Convert Version references to Release references such as vmin to rmin, etc... 3- Remove Version interfaces which are no longer needed 4- Move VersionList and VersionMap in namespace to ReleaseList and ReleaseMap in idl_release.py 5- Added tests to idl_release BUG= http://code.google.com/p/chromium/issues/detail?id=97708 TEST= python idl_release && ./generate Review URL: http://codereview.chromium.org/8045001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102793 0039d316-1c4b-4281-b951-d872f2087c98 | 14 年前 | |
Add base class for generators This CL is the first step towards alowing multiple generators with a single driver to simplify the use of the generator. It removes old built-in in idl_c_header.py, and replaces it with several golden files to verify output is unchanged. It renames the old 'version' option to 'release' to disambiguate between a RELEASE name such as M14, and an interface VERSION such as 1.0. Removes the 'M14' hack which as added to the source code to force release M14 to be generated. TEST= ./generator.py BUG= http://code.google.com/p/chromium/issues/detail?id=91607 R=sehr@google.com Review URL: http://codereview.chromium.org/7477056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97752 0039d316-1c4b-4281-b951-d872f2087c98 | 14 年前 | |
More multi-version support Minor fix to idl_output: switch from None to '' to alow split to work Add 'InReleases' member to verify node is valid within a list of releases. Add 'releases' member to IDLVersionMap class for easier search. Remove stale code and build ordered list of requested releases in AST Remove release member from CGen object, and pass into functions Move release tracking from C prototype to C header generator Update generator tests. Added golden files to verify the C generator is correct NOTE: This is work in progress. The header emitted using --release=X should be correct and has been tested to generate exactly what we have today, however --range=X,Y does not yet generate what we need. BUG= http://code.google.com/p/chromium/issues/detail?id=89969 TEST= python generator.py Review URL: http://codereview.chromium.org/7715036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98133 0039d316-1c4b-4281-b951-d872f2087c98 | 14 年前 |