February 11, 2014 [dmd-internals] [D-Programming-Language/dmd] cfbad7: Refactor Type::toCBuffer* and helpers into a visit... | ||||
---|---|---|---|---|
| ||||
Attachments:
| Branch: refs/heads/master Home: https://github.com/D-Programming-Language/dmd Commit: cfbad72fc93dc81b5748030bfd326a81e38bef46 https://github.com/D-Programming-Language/dmd/commit/cfbad72fc93dc81b5748030bfd326a81e38bef46 Author: Daniel Murphy <yebblies@gmail.com> Date: 2014-02-11 (Tue, 11 Feb 2014) Changed paths: M src/doc.c M src/expression.c M src/func.c M src/hdrgen.c M src/mtype.c M src/mtype.h M src/template.c Log Message: ----------- Refactor Type::toCBuffer* and helpers into a visitor class in hdrgen.c - Move the main function Type::toCBuffer2 into the visitor class - Move TypeQualified::toCBuffer2Helper into an internal helper function - Remove one-caller function attributesToCBuffer into caller - Factor out repeated safety and linkage printing - Rename functionToCBuffer2 to functionToBufferWithIdent - Rename toCBufferWithAttributes to functionToBufferFull - Do special-case checking in Type::toCBuffer instead of overriding in TypeFunction::toCBuffer and TypeError::toCBuffer - Move Type::toCBuffer3 into internal helper visitWithMask - Rename toCBuffer2 to toBufferShort and make it a free function - Move Type::toCBuffer into a free function Commit: 7b26cfedd3dfa34635a5def14f2ee0d8b0232fc8 https://github.com/D-Programming-Language/dmd/commit/7b26cfedd3dfa34635a5def14f2ee0d8b0232fc8 Author: Andrej Mitrovic <andrej.mitrovich@gmail.com> Date: 2014-02-11 (Tue, 11 Feb 2014) Changed paths: M src/doc.c M src/expression.c M src/func.c M src/hdrgen.c M src/mtype.c M src/mtype.h M src/template.c Log Message: ----------- Merge pull request #3238 from yebblies/typetocbuffer [DMDD] [refactor] Move Type::toCBuffer into a visitor class Compare: https://github.com/D-Programming-Language/dmd/compare/718a98233c8f...7b26cfedd3df |
Copyright © 1999-2021 by the D Language Foundation