]> git.ipfire.org Git - thirdparty/libsolv.git/commit
Rework rules handling
authorMichael Schroeder <mls@suse.de>
Tue, 12 May 2015 14:04:20 +0000 (16:04 +0200)
committerMichael Schroeder <mls@suse.de>
Tue, 12 May 2015 14:07:27 +0000 (16:07 +0200)
commitb0dda2ba2fceb11d9d39cd1f8627256f7e1eb32a
tree03cccfa414b161270739192f9eaa044c0c7d12fb
parent8f415dc52ce39a118f9c145f1e8fe0743c2348a9
Rework rules handling

Instead of having a bastard solver_addrule which wither takes an offset
into whatprovides or a direct literal, we now have two functions:
    solver_addrule2 will add a rule with one or two literals
    solver_addrulen will add a rule specified by an offset into whatprovides

This should make the code cleaner, faster, and less memory is used also.

This commit also adds a pool_ids2whatprovides function.
src/libsolv.ver
src/pool.c
src/pool.h
src/rules.c
src/rules.h
src/solver.c