# HG changeset patch # User anatofuz # Date 1570861353 -32400 # Node ID d4e22a45a575468d39a59ebc4d8fefba0c2d3aa4 # Parent d419660ad71d53f8ec78449099f6d11c19011214 mod copy to interface/*.h to *.dir diff -r d419660ad71d -r d4e22a45a575 src/CMakeLists.txt --- 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 diff -r d419660ad71d -r d4e22a45a575 src/Stack.h --- 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{ - 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; diff -r d419660ad71d -r d4e22a45a575 src/interface/Stack.h --- /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{ + 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;