Mercurial > urweb
annotate tests/test.c @ 764:7f653298dd66
C FFI compiler options
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Thu, 30 Apr 2009 17:15:14 -0400 |
parents | |
children | a28982de5645 |
rev | line source |
---|---|
adamc@764 | 1 #include "../include/urweb.h" |
adamc@764 | 2 |
adamc@764 | 3 typedef uw_Basis_string uw_Test_t; |
adamc@764 | 4 |
adamc@764 | 5 uw_Test_t uw_Test_create(uw_context ctx, uw_Basis_string s) { |
adamc@764 | 6 return s; |
adamc@764 | 7 } |
adamc@764 | 8 |
adamc@764 | 9 uw_Basis_string uw_Test_out(uw_context ctx, uw_Test_t s) { |
adamc@764 | 10 return s; |
adamc@764 | 11 } |
adamc@764 | 12 |
adamc@764 | 13 uw_Test_t uw_Test_frob(uw_context ctx, uw_Test_t s1, uw_Basis_string s2) { |
adamc@764 | 14 return uw_Basis_strcat(ctx, s1, s2); |
adamc@764 | 15 } |