# HG changeset patch # User Louis Opter # Date 1325967580 -3600 # Node ID cd3e61d6759a16536fe598afe83042f1bc436638 # Parent b4ca25b8869059b23ad9e0235c50773fb24ce1d1 Add a patch to reproduce the issue with pointcut usage in template sequences diff -r b4ca25b88690 -r cd3e61d6759a provided_pointcut_in_required_sequences_fail.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/provided_pointcut_in_required_sequences_fail.patch Sat Jan 07 21:19:40 2012 +0100 @@ -0,0 +1,74 @@ +diff --git a/rathaxes/samples/helloworld/hello.rtx b/rathaxes/samples/helloworld/hello.rtx +--- a/rathaxes/samples/helloworld/hello.rtx ++++ b/rathaxes/samples/helloworld/hello.rtx +@@ -1,6 +1,6 @@ + device HelloWorld use Main, Types, Log + { +- Main::start(Main::Arguments args) ++ Main::main(Main::Arguments args) + { + Main::log(args); + +diff --git a/rathaxes/samples/helloworld/log.blt b/rathaxes/samples/helloworld/log.blt +--- a/rathaxes/samples/helloworld/log.blt ++++ b/rathaxes/samples/helloworld/log.blt +@@ -12,5 +12,11 @@ + { + puts(${msg}); + } ++ ++ chunk Main::at_exit() ++ { ++ fflush(stdout); ++ fflush(stderr); ++ } + } + } +diff --git a/rathaxes/samples/helloworld/log.rti b/rathaxes/samples/helloworld/log.rti +--- a/rathaxes/samples/helloworld/log.rti ++++ b/rathaxes/samples/helloworld/log.rti +@@ -3,5 +3,6 @@ + provided sequence Log::info(::string) + { + provided chunk ::CALL; ++ provided chunk Main::at_exit; + } + } +diff --git a/rathaxes/samples/helloworld/main.blt b/rathaxes/samples/helloworld/main.blt +--- a/rathaxes/samples/helloworld/main.blt ++++ b/rathaxes/samples/helloworld/main.blt +@@ -40,7 +40,7 @@ + } + } + +- template sequence Main::start(Main::Arguments args) ++ template sequence Main::main(Main::Arguments args) + { + chunk Main::include_headers + { +@@ -64,6 +64,8 @@ + ${args.init(argc, argv, env)}; + + ${pointcut ::IMPLEMENTATION}; ++ ++ ${pointcut Main::at_exit}; + } + } + } +diff --git a/rathaxes/samples/helloworld/main.rti b/rathaxes/samples/helloworld/main.rti +--- a/rathaxes/samples/helloworld/main.rti ++++ b/rathaxes/samples/helloworld/main.rti +@@ -6,10 +6,12 @@ + provided type Main::Arguments; + + /* This sequence is required, i.e: its implementation is in the .rtx */ +- required sequence Main::start(Main::Arguments) ++ required sequence Main::main(Main::Arguments) + { + provided chunk Main::include_headers; + provided chunk Main::main; ++ ++ provided pointcut Main::at_exit; + } + + /* diff -r b4ca25b88690 -r cd3e61d6759a series --- a/series Sat Jan 07 21:11:13 2012 +0100 +++ b/series Sat Jan 07 21:19:40 2012 +0100 @@ -1,3 +1,4 @@ +provided_pointcut_in_required_sequences_fail.patch rathaxes_add_a_linux_lkm.patch rathaxes_start_to_implement_pci_stuff_in_the_lkm.patch rathaxes_start_to_implement_the_ethernet_subsystem_in_the_lkm.patch