Changeset 585
- Timestamp:
- 07/10/08 07:53:58 (4 months ago)
- Files:
-
- trunk/rphp/runtime/CMakeLists.txt (modified) (1 diff)
- trunk/rphp/runtime/rphp_hash.cpp (added)
- trunk/rphp/runtime/rphp_hash.h (modified) (2 diffs)
- trunk/rphp/runtime/rphp_pvar.h (modified) (1 diff)
- trunk/rphp/runtime/var-test.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/rphp/runtime/CMakeLists.txt
r574 r585 9 9 include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${Boost_INCLUDE_DIRS}) 10 10 11 set(SRC_FILES 11 # runtime library 12 set(RUNTIME_SRC_FILES 13 rphp_hash.cpp 14 ) 15 16 add_library( rphp_runtime SHARED ${RUNTIME_SRC_FILES} ) 17 18 # test app 19 set(TEST_SRC_FILES 12 20 var-test.cpp 13 21 ) 14 22 15 add_executable( var-test ${ SRC_FILES} )16 target_link_libraries( var-test ${ICU_LIBRARIES} ${ICU_IO_LIBRARIES} )23 add_executable( var-test ${TEST_SRC_FILES} ) 24 target_link_libraries( var-test rphp_runtime ${ICU_LIBRARIES} ${ICU_IO_LIBRARIES} ) 17 25 trunk/rphp/runtime/rphp_hash.h
r584 r585 70 70 } 71 71 72 void insert(const bstring &key, pvar data) { 73 74 hashData.insert(_dataContainer(key, data)); 75 76 } 72 void insert(const bstring &key, pvar data); 77 73 78 74 void varDump() { … … 91 87 }; 92 88 93 std::ostream& operator << (std::ostream& os, const rphp::phash& h) 94 { 95 return os << "php_hash:" << std::endl; 96 } 89 std::ostream& operator << (std::ostream& os, const rphp::phash& h); 97 90 98 91 } /* namespace rphp */ trunk/rphp/runtime/rphp_pvar.h
r583 r585 25 25 26 26 #include "unicode/unistr.h" 27 #include "unicode/ustream.h" // ostream API for UnicodeString 27 28 28 29 #include <iostream> trunk/rphp/runtime/var-test.cpp
r584 r585 7 7 8 8 #include "rphp_runtime.h" 9 #include "unicode/ustream.h" // ostream API for UnicodeString10 #include "boost/variant.hpp"11 9 #include <iostream> 12 10
