root/lang/d/portingdemo/unko.d
@
29657
| Revision 7585, 306 bytes (checked in by itkz, 5 years ago) |
|---|
| Line | |
|---|---|
| 1 | |
| 2 | extern (C): |
| 3 | |
| 4 | struct unko_t { |
| 5 | int* first; |
| 6 | int second; |
| 7 | long third; |
| 8 | int* fourth; |
| 9 | } |
| 10 | |
| 11 | unko_t *create_unko(); |
| 12 | void delete_unko(unko_t *unko); |
| 13 | |
| 14 | int get_offsetof_first(); |
| 15 | int get_offsetof_second(); |
| 16 | int get_offsetof_third(); |
| 17 | int get_offsetof_fourth(); |
| 18 | |
| 19 | long add_long_and_int(long a, int b); |
Note: See TracBrowser
for help on using the browser.
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)