comparison test/callf/main.c @ 379:7d9f526dc2ad

cosmetics
author Tassilo Philipp
date Mon, 28 Dec 2020 14:14:59 +0100
parents 451299d50c1a
children 11483966a3ee
comparison
equal deleted inserted replaced
378:4d6c594b15ab 379:7d9f526dc2ad
1 /* 1 /*
2 2
3 Package: dyncall 3 Package: dyncall
4 Library: test 4 Library: test
5 File: test/callf/main.c 5 File: test/callf/main.c
6 Description: 6 Description:
7 License: 7 License:
8 8
9 Copyright (c) 2007-2020 Daniel Adler <dadler@uni-goettingen.de>, 9 Copyright (c) 2007-2020 Daniel Adler <dadler@uni-goettingen.de>,
10 Tassilo Philipp <tphilipp@potion-studios.com> 10 Tassilo Philipp <tphilipp@potion-studios.com>
11 11
12 Permission to use, copy, modify, and distribute this software for any 12 Permission to use, copy, modify, and distribute this software for any
13 purpose with or without fee is hereby granted, provided that the above 13 purpose with or without fee is hereby granted, provided that the above
14 copyright notice and this permission notice appear in all copies. 14 copyright notice and this permission notice appear in all copies.
31 #include "../common/platformInit.h" 31 #include "../common/platformInit.h"
32 #include "../common/platformInit.c" /* Impl. for functions only used in this translation unit */ 32 #include "../common/platformInit.c" /* Impl. for functions only used in this translation unit */
33 33
34 #include <stdarg.h> 34 #include <stdarg.h>
35 #if defined(DC_UNIX) 35 #if defined(DC_UNIX)
36 #include <sys/syscall.h> 36 #include <sys/syscall.h>
37 #endif 37 #endif
38 38
39 39
40 /* sample void function */ 40 /* sample void function */
41 41
147 dcFree(vm); 147 dcFree(vm);
148 148
149 printf("\nresult: callf: %d\n", r); 149 printf("\nresult: callf: %d\n", r);
150 150
151 dcTest_deInitPlatform(); 151 dcTest_deInitPlatform();
152 152
153 return 0; 153 return 0;
154 } 154 }
155 155