Author: matz Date: Sat Dec 8 01:20:21 2007 New Revision: 8070 URL: http://svn.opensuse.org/viewcvs/zypp?rev=8070&view=rev Log: Start moving the attribute store into the library. Added: trunk/sat-solver/src/attr_store.c - copied unchanged from r8069, trunk/sat-solver/tools/attr_store.c trunk/sat-solver/src/attr_store.h - copied unchanged from r8064, trunk/sat-solver/tools/attr_store.h trunk/sat-solver/src/attr_store_p.h - copied, changed from r8068, trunk/sat-solver/tools/attr_store_p.h trunk/sat-solver/src/fastlz.c - copied unchanged from r8063, trunk/sat-solver/tools/fastlz.c Removed: trunk/sat-solver/tools/attr_store.c trunk/sat-solver/tools/attr_store.h trunk/sat-solver/tools/attr_store_p.h trunk/sat-solver/tools/fastlz.c Modified: trunk/sat-solver/src/CMakeLists.txt trunk/sat-solver/tools/CMakeLists.txt Modified: trunk/sat-solver/src/CMakeLists.txt URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/src/CMakeLists.txt?rev=8070&r1=8069&r2=8070&view=diff ============================================================================== --- trunk/sat-solver/src/CMakeLists.txt (original) +++ trunk/sat-solver/src/CMakeLists.txt Sat Dec 8 01:20:21 2007 @@ -1,10 +1,10 @@ -SET(libsatsolver_SRCS bitmap.c poolarch.c poolvendor.c poolid.c strpool.c +SET(libsatsolver_SRCS attr_store.c bitmap.c poolarch.c poolvendor.c poolid.c strpool.c solver.c repo_solv.c evr.c pool.c queue.c repo.c util.c policy.c) ADD_LIBRARY(satsolver STATIC ${libsatsolver_SRCS}) -SET(libsatsolver_HEADERS bitmap.h evr.h hash.h policy.h poolarch.h poolvendor.h pool.h poolid.h pooltypes.h queue.h solvable.h solver.h repo.h repo_solv.h util.h strpool.h) +SET(libsatsolver_HEADERS attr_store.h bitmap.h evr.h hash.h policy.h poolarch.h poolvendor.h pool.h poolid.h pooltypes.h queue.h solvable.h solver.h repo.h repo_solv.h util.h strpool.h) SET( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -O3 -Wall -fPIC" ) Copied: trunk/sat-solver/src/attr_store_p.h (from r8068, trunk/sat-solver/tools/attr_store_p.h) URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/src/attr_store_p.h?p2=trunk/sat-solver/src/attr_store_p.h&p1=trunk/sat-solver/tools/attr_store_p.h&r1=8068&r2=8070&rev=8070&view=diff ============================================================================== --- trunk/sat-solver/tools/attr_store_p.h (original) +++ trunk/sat-solver/src/attr_store_p.h Sat Dec 8 01:20:21 2007 @@ -75,6 +75,8 @@ unsigned int packed:1; }; +void add_attr_from_file (Attrstore *s, unsigned entry, Id name, int type, FILE *fp); + #define get_num(ptr,val) do { \ typedef int __wrong_buf__[(1-sizeof((ptr)[0])) * (sizeof((ptr)[0])-1)];\ val = 0; \ Modified: trunk/sat-solver/tools/CMakeLists.txt URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/tools/CMakeLists.txt?rev=8070&r1=8069&r2=8070&view=diff ============================================================================== --- trunk/sat-solver/tools/CMakeLists.txt (original) +++ trunk/sat-solver/tools/CMakeLists.txt Sat Dec 8 01:20:21 2007 @@ -17,7 +17,7 @@ ADD_EXECUTABLE( helix2solv ${helix2solv_REPOS} ) TARGET_LINK_LIBRARIES( helix2solv satsolver ${EXPAT_LIBRARY}) -SET(susetags2solv_REPOS susetags2solv.c repo_susetags.h repo_susetags.c repo_write.c attr_store.c) +SET(susetags2solv_REPOS susetags2solv.c repo_susetags.h repo_susetags.c repo_write.c) ADD_EXECUTABLE( susetags2solv ${susetags2solv_REPOS} ) TARGET_LINK_LIBRARIES( susetags2solv satsolver) @@ -43,7 +43,7 @@ ADD_EXECUTABLE( mergesolv ${mergesolv_REPOS} ) TARGET_LINK_LIBRARIES( mergesolv satsolver) -SET(dumpattr_REPOS dumpattr.c attr_store.c) +SET(dumpattr_REPOS dumpattr.c) ADD_EXECUTABLE( dumpattr ${dumpattr_REPOS} ) TARGET_LINK_LIBRARIES( dumpattr satsolver) -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org