Hi,
I need some people (vmiklos) to review the preliminary attached changes.
(Note they are not yet ment to be compiled as this).

In there you can see 3 axes of changes.
- add.* remove.* sync.* trans.*: The first one that is functionnal and
need still a bit more love (but that is currently enought for compiling)
is a kind of transaction engine controled by structs. Instead of using a
switch for each transaction, we use function from the struct. It helps to
reduce the number of private exported symbols and make the libpacman a
little bit more kernel style.
- package.*: The second changes is a proposal to change of the package
descrition that allows the definition of RODEPEND package variables to be
exported. This extension as an intimate relation with the rodepend
FrugalBuild but can be used to do a little bit more. This would help us to
reduce the hidden dependencies introduced by the package plugin
dependencies, using a new tricky variable I have to name. (This part is
not functionnal, the current part only expose the description loader
change required to load the modified files).
- utils.*: Introduce _pacman_{free,malloc,zalloc} functions as generic
memory helpers. the malloc one would reduce the code duplication for error
handling, while the others are just syntax sugars to perform some usual
memory stuff. (Yes I know we have the FREE macro, but it is usually not
safe because we tends to forget that arguments are recomputed at each
usage. Making the code hard to debug sometimes)

Attachment: local-change.diff
Description: Binary data

_______________________________________________
Frugalware-devel mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-devel

Reply via email to