util/order.jam (and engine/mod_order.cpp) review#593
Open
paolopas wants to merge 2 commits intobfgroup:mainfrom
Open
util/order.jam (and engine/mod_order.cpp) review#593paolopas wants to merge 2 commits intobfgroup:mainfrom
paolopas wants to merge 2 commits intobfgroup:mainfrom
Conversation
+ restored Jam add-pair method, for better error control (Jam does a syntax check for arguments at call site with relative error message emission) and better preconditions checkings too: avoid null arguments, avoid duplicate constraints (which led to edge duplication in final graph,) and avoid self referencing (which led to cycles in final graph.) The old add-pair was even broken, since it spelled .constraits instead of .constraints + removed stale order method implementation, fully replaced by native one + removed all other stale methods, no more useful/functional mod_order.cpp rewritten + to implement the topological sort algorithm using std::vector instead of mem.h + also removed jam_strings.h include + prepared for future warning emission on "cyclic dependency" + no more need for native add_pair
Contributor
Author
|
Well, the 237df2b tests went fine, so there were no problems with Important René, if you think there might be backwards compatibility issues due to the removal of the native Removing the native |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
add-pairmethod, for better error control (Jam does a syntax check for arguments at call site with relative error message emission) and better preconditions checkings too: avoid null arguments, avoid duplicate constraints (which led to edge duplication in final graph,) and avoid self referencing (which led to cycles in final graph.) The oldadd-pairwas even broken, since it spelled.constraitsinstead of.constraintsordermethod implementation, fully replaced by native onemod_order.cpprewrittenstd::vectorinstead ofmem.hjam_strings.hinclude[1]
I am waiting for #581 to be able to use the
outerrwarning function.