diff --git a/FrontEnd/TestData/wordcount.cw b/FrontEnd/TestData/wordcount.cw index 838485df..03c1f846 100644 --- a/FrontEnd/TestData/wordcount.cw +++ b/FrontEnd/TestData/wordcount.cw @@ -48,7 +48,6 @@ (return stats)) -@doc "cdecl attribute disables name mangling" (fun main [(param argc s32) (param argv (ptr (ptr u8)))] s32 : (trylet stats TextStats (WordCount [os::Stdin]) err : (return 1)) diff --git a/FrontEndDocs/tutorial.md b/FrontEndDocs/tutorial.md index acad2e90..32e70b47 100644 --- a/FrontEndDocs/tutorial.md +++ b/FrontEndDocs/tutorial.md @@ -58,7 +58,7 @@ module: import fmt -@cdecl fun main(argc s32, argv ^^u8) s32: +fun main(argc s32, argv ^^u8) s32: fmt::print#("hello world\n") return 0 @@ -70,10 +70,6 @@ The type information in the function declaration follows the Go model of identifier followed by type. Functions can only return one value. -Annotations are identifiers that start with "@" and can precede certain -syntactic constructs. Here `@cdecl` disables the name mangling of function main -so it can be linked against the startup code. - `fmt::print#` is a macro call. All macros names must end in "#". @@ -204,8 +200,7 @@ fun WordCount(fd os::FD) union(TextStats, os::Error): break return stats --- cdecl attribute disables name mangling -@cdecl fun main(argc s32, argv ^^u8) s32: +fun main(argc s32, argv ^^u8) s32: trylet stats TextStats = WordCount(os::Stdin), err: return 1 -- print# is a stmt macro for printing arbitrary values.