From 4c8ab9d1717002d5faad9c2af6db6d12da761ec9 Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Wed, 2 Mar 2011 00:07:10 -0500 Subject: Fixing typo in main.cpp.example. --- main.cpp.example | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.cpp.example') diff --git a/main.cpp.example b/main.cpp.example index 8fc522a..3ae114b 100644 --- a/main.cpp.example +++ b/main.cpp.example @@ -27,7 +27,7 @@ void loop() { } // Force init to be called *first*, i.e. before static object allocation. -// Otherwise, statically allocated object that need libmaple may fail. +// Otherwise, statically allocated objects that need libmaple may fail. __attribute__(( constructor )) void premain() { init(); } -- cgit v1.2.3 From 5329ec3089b4fb6b3023d7f6a44eabcc30e3c9dd Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Fri, 8 Apr 2011 12:53:28 -0400 Subject: Trivial main.cpp.example cleanup. --- main.cpp.example | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'main.cpp.example') diff --git a/main.cpp.example b/main.cpp.example index 3ae114b..23d5540 100644 --- a/main.cpp.example +++ b/main.cpp.example @@ -28,15 +28,16 @@ void loop() { // Force init to be called *first*, i.e. before static object allocation. // Otherwise, statically allocated objects that need libmaple may fail. -__attribute__(( constructor )) void premain() { +__attribute__((constructor)) void premain() { init(); } int main(void) { setup(); - while (1) { + while (true) { loop(); } + return 0; } -- cgit v1.2.3