Mercurial > hg > Members > tobaru > CbC_xv6
changeset 83:d4e22a45a575
mod copy to interface/*.h to *.dir
author | anatofuz |
---|---|
date | Sat, 12 Oct 2019 15:22:33 +0900 |
parents | d419660ad71d |
children | a4307abefd0b |
files | src/CMakeLists.txt src/Stack.h src/interface/Stack.h |
diffstat | 3 files changed, 18 insertions(+), 17 deletions(-) [+] |
line wrap: on
line diff
--- a/src/CMakeLists.txt Fri Oct 11 19:32:16 2019 +0900 +++ b/src/CMakeLists.txt Sat Oct 12 15:22:33 2019 +0900 @@ -77,6 +77,7 @@ endforeach(i) #target_link_libraries(syslib) + file(COPY "${CMAKE_SOURCE_DIR}/interface/" DESTINATION ${CMAKE_KERNEL_DIR}) file(COPY "${CMAKE_SOURCE_DIR}/context.h" DESTINATION ${CMAKE_KERNEL_DIR}) add_custom_command ( OUTPUT ${CMAKE_KERNEL_DIR}/c/${_Gears_TARGET}-context.c
--- a/src/Stack.h Fri Oct 11 19:32:16 2019 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17 +0,0 @@ -typedef struct Stack<Type, Impl>{ - union Data* stack; - union Data* data; - union Data* data1; - /* Type* stack; */ - /* Type* data; */ - /* Type* data1; */ - __code whenEmpty(...); - __code clear(Impl* stack,__code next(...)); - __code push(Impl* stack,Type* data, __code next(...)); - __code pop(Impl* stack, __code next(Type* data, ...)); - __code pop2(Impl* stack, __code next(Type* data, Type* data1, ...)); - __code isEmpty(Impl* stack, __code next(...), __code whenEmpty(...)); - __code get(Impl* stack, __code next(Type* data, ...)); - __code get2(Impl* stack, __code next(Type* data, Type* data1, ...)); - __code next(...); -} Stack;
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/interface/Stack.h Sat Oct 12 15:22:33 2019 +0900 @@ -0,0 +1,17 @@ +typedef struct Stack<Type, Impl>{ + union Data* stack; + union Data* data; + union Data* data1; + /* Type* stack; */ + /* Type* data; */ + /* Type* data1; */ + __code whenEmpty(...); + __code clear(Impl* stack,__code next(...)); + __code push(Impl* stack,Type* data, __code next(...)); + __code pop(Impl* stack, __code next(Type* data, ...)); + __code pop2(Impl* stack, __code next(Type* data, Type* data1, ...)); + __code isEmpty(Impl* stack, __code next(...), __code whenEmpty(...)); + __code get(Impl* stack, __code next(Type* data, ...)); + __code get2(Impl* stack, __code next(Type* data, Type* data1, ...)); + __code next(...); +} Stack;