diff options
| author | ruki <[email protected]> | 2018-05-08 22:46:38 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-05-08 10:39:52 +0800 |
| commit | c61545b0275b64c8b0294ce69e635e30475a2239 (patch) | |
| tree | 0eba3c71f7065c5546f059e755f1ac869d4ac4fd /tests/projects/c/static_library | |
| parent | 5a1eebb5b49e7476ceb773d9b846c0c61c9f99c8 (diff) | |
improve build dependence
Diffstat (limited to 'tests/projects/c/static_library')
| -rw-r--r-- | tests/projects/c/static_library/src/interface.c | 2 | ||||
| -rw-r--r-- | tests/projects/c/static_library/src/interface.h | 3 | ||||
| -rw-r--r-- | tests/projects/c/static_library/src/test.c | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/tests/projects/c/static_library/src/interface.c b/tests/projects/c/static_library/src/interface.c index 598d07560..8ed513871 100644 --- a/tests/projects/c/static_library/src/interface.c +++ b/tests/projects/c/static_library/src/interface.c @@ -1,5 +1,5 @@ #include "interface.h" - + int add(int a, int b) { return a + b; diff --git a/tests/projects/c/static_library/src/interface.h b/tests/projects/c/static_library/src/interface.h index 10ec0f856..915f44b87 100644 --- a/tests/projects/c/static_library/src/interface.h +++ b/tests/projects/c/static_library/src/interface.h @@ -4,5 +4,6 @@ * @param b the second argument * * @return the result - */ + */ int add(int a, int b); + diff --git a/tests/projects/c/static_library/src/test.c b/tests/projects/c/static_library/src/test.c index 9505a2f75..d438027e8 100644 --- a/tests/projects/c/static_library/src/test.c +++ b/tests/projects/c/static_library/src/test.c @@ -1,6 +1,6 @@ #include "interface.h" #include <stdio.h> - + int main(int argc, char** argv) { printf("add(1, 2) = %d\n", add(1, 2)); |
