Changeset 34373 for lang/objective-cplusplus
- Timestamp:
- 07/09/09 15:40:16 (4 years ago)
- Location:
- lang/objective-cplusplus/i3/trunk
- Files:
-
- 5 modified
-
src/gui-windows/InputWindowPlatform.cpp (modified) (2 diffs)
-
src/mil/include/mil/Mil.h (modified) (1 diff)
-
src/mil/include/mil/ModuleCommon.h (modified) (8 diffs)
-
src/mil/include/mil/gui-windows/GuiModule.h (modified) (3 diffs)
-
windows/mil_test.vcproj (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/objective-cplusplus/i3/trunk/src/gui-windows/InputWindowPlatform.cpp
r34301 r34373 129 129 memset((void*)&ce, 0, sizeof(ce)); 130 130 is_dwm_extend_frame_into_client_area = 0; 131 layout.icon_edit_space = 2;131 layout.icon_edit_space = 1; 132 132 layout.margin_right = 5; 133 133 #ifdef _WIN32_WCE … … 714 714 SetFocus(hEdit); 715 715 setWindow(hWnd); 716 wndproc.set(hWnd);717 716 hSharedEdit.store(hEdit); 718 717 -
lang/objective-cplusplus/i3/trunk/src/mil/include/mil/Mil.h
r34361 r34373 87 87 */ 88 88 typedef int SFINAE_CONDITION; 89 const int SFINAE_DUMMY_VALUE = 0;89 const int SFINAE_DUMMY_VALUE = (0); 90 90 91 91 } -
lang/objective-cplusplus/i3/trunk/src/mil/include/mil/ModuleCommon.h
r34361 r34373 37 37 }; 38 38 MemoryList* memory; 39 typedef int isReturnMemoryEvent;39 typedef SFINAE_CONDITION IsReturnMemoryEvent; 40 40 }; 41 41 … … 109 109 #ifdef DEBUG_PRODUCER 110 110 { 111 DebugInfo* d = (DebugInfo*)((char*)memory - sizeof(DebugInfo)); 111 memory = (void*)((char*)memory - sizeof(DebugInfo)); 112 DebugInfo* d = (DebugInfo*)memory; 112 113 BOOST_ASSERT(d->os_thread_id == GetCurrentThreadId()); 113 114 BOOST_ASSERT(d->mil_thread_id == thread_id); … … 131 132 { 132 133 MemoryList* current = m; 133 MemoryList* next = NULL;134 134 for (;;) 135 135 { … … 138 138 break; 139 139 } 140 next = current->next;140 MemoryList* next = current->next; 141 141 free2(current, current->blocks); 142 142 current = next; … … 147 147 struct ReturnMemoryProxy { 148 148 template <typename T> 149 static void free(void* m, mil::pool::Producer& p, int blocks, typename T:: isReturnMemoryEvent) {149 static void free(void* m, mil::pool::Producer& p, int blocks, typename T::IsReturnMemoryEvent) { 150 150 p.free2(m, T::BLOCKS); 151 151 } 152 152 153 153 template <typename T> 154 static void free(void* m, mil::pool::Producer& p, int blocks, void*) {154 static void free(void* m, mil::pool::Producer& p, int blocks, ...) { 155 155 p.free2(m, blocks); 156 156 } … … 268 268 { 269 269 template <class EventData, class Target> 270 static void execute(EventData& data, Target& target, typename EventData:: isReturnMemoryEvent)270 static void execute(EventData& data, Target& target, typename EventData::IsReturnMemoryEvent) 271 271 { 272 272 target.tls.producer.free(data.memory); … … 274 274 275 275 template <class EventData, class Target> 276 static void execute(EventData& data, Target& target, void*)276 static void execute(EventData& data, Target& target, ...) 277 277 { 278 278 target.getChild().execute(data); … … 280 280 281 281 template <class, class Target> 282 static void execute(ExitEvent data, Target& target, void*)282 static void execute(ExitEvent data, Target& target, ...) 283 283 { 284 284 target.destroy(); -
lang/objective-cplusplus/i3/trunk/src/mil/include/mil/gui-windows/GuiModule.h
r34340 r34373 100 100 Data data; 101 101 memcpy(&data, &event_, sizeof(data)); 102 mil::ModuleExecuteProxy::execute<Data, Target>(data, target, 0);102 mil::ModuleExecuteProxy::execute<Data, Target>(data, target, SFINAE_DUMMY_VALUE); 103 103 if (!target.repost) 104 104 { … … 114 114 115 115 Event<Data>& event = *static_cast<Event<Data>*>(event_); 116 mil::ModuleExecuteProxy::execute<Data, Target>(event.data, target, 0);116 mil::ModuleExecuteProxy::execute<Data, Target>(event.data, target, SFINAE_DUMMY_VALUE); 117 117 if (target.repost) 118 118 { … … 132 132 hLocalWnd = hWnd_; 133 133 hSharedWnd.store(hWnd_); 134 wndproc.set(hWnd_); 134 135 } 135 136 -
lang/objective-cplusplus/i3/trunk/windows/mil_test.vcproj
r34332 r34373 919 919 </File> 920 920 <File 921 RelativePath="..\src\mil\src\Test2.cpp" 922 > 923 </File> 924 <File 925 RelativePath="..\src\mil\src\Test3.cpp" 926 > 927 </File> 928 <File 929 RelativePath="..\src\mil\src\Test4.cpp" 930 > 931 </File> 932 <File 933 RelativePath="..\src\mil\src\Test5.cpp" 934 > 935 </File> 936 <File 937 RelativePath="..\src\mil\src\Test6.cpp" 938 > 939 </File> 940 <File 941 RelativePath="..\src\mil\src\Test7.cpp" 942 > 943 </File> 944 <File 945 RelativePath="..\src\mil\src\Test8.cpp" 921 RelativePath="..\src\mil\src\Test9.cpp" 946 922 > 947 923 </File> … … 958 934 </FileConfiguration> 959 935 </File> 960 <File961 RelativePath="..\src\mil\src\windows\WindowProcedureTest.cpp"962 >963 </File>964 936 </Filter> 965 937 <Filter … … 977 949 </File> 978 950 <File 951 RelativePath="..\src\mil\include\mil\Debug.h" 952 > 953 </File> 954 <File 979 955 RelativePath="..\src\mil\include\mil\os-windows\Debug.h" 980 956 > 981 957 </File> 982 958 <File 983 RelativePath="..\src\mil\include\mil\Debug.h"984 >985 </File>986 <File987 959 RelativePath="..\src\mil\include\mil\gui-windows\DummyMessageHandler-inl.h" 988 960 > … … 997 969 </File> 998 970 <File 971 RelativePath="..\src\mil\include\mil\GuiModule.h" 972 > 973 </File> 974 <File 999 975 RelativePath="..\src\mil\include\mil\gui-windows\GuiModule.h" 1000 976 > 1001 977 </File> 1002 978 <File 1003 RelativePath="..\src\mil\include\mil\GuiModule.h"1004 >1005 </File>1006 <File1007 979 RelativePath="..\src\mil\include\mil\gui-windows\MessageCracker-inl.h" 1008 980 > … … 1049 1021 </File> 1050 1022 <File 1023 RelativePath="..\src\mil\include\mil\os-windows\Thread.h" 1024 > 1025 </File> 1026 <File 1051 1027 RelativePath="..\src\mil\include\mil\Thread.h" 1052 >1053 </File>1054 <File1055 RelativePath="..\src\mil\include\mil\os-windows\Thread.h"1056 1028 > 1057 1029 </File>
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)