… | |
… | |
23 | #ifndef PSICONV_LIST_H |
23 | #ifndef PSICONV_LIST_H |
24 | #define PSICONV_LIST_H |
24 | #define PSICONV_LIST_H |
25 | |
25 | |
26 | #include <stddef.h> |
26 | #include <stddef.h> |
27 | #include <stdio.h> |
27 | #include <stdio.h> |
|
|
28 | |
|
|
29 | #ifdef __cplusplus |
|
|
30 | extern "C" { |
|
|
31 | #endif /* __cplusplus */ |
28 | |
32 | |
29 | /* Always use psiconv_list, never struct psiconv_list */ |
33 | /* Always use psiconv_list, never struct psiconv_list */ |
30 | /* No need to export the actual internal format */ |
34 | /* No need to export the actual internal format */ |
31 | typedef struct psiconv_list *psiconv_list; |
35 | typedef struct psiconv_list *psiconv_list; |
32 | |
36 | |
… | |
… | |
77 | /* Read upto size_t elements from file f, and put them at the end of list l. |
81 | /* Read upto size_t elements from file f, and put them at the end of list l. |
78 | Returned is the actual number of elements added. This assumes the file |
82 | Returned is the actual number of elements added. This assumes the file |
79 | layout and the memory layout of elements is the same. */ |
83 | layout and the memory layout of elements is the same. */ |
80 | extern size_t psiconv_list_fread(psiconv_list l,size_t size, FILE *f); |
84 | extern size_t psiconv_list_fread(psiconv_list l,size_t size, FILE *f); |
81 | |
85 | |
|
|
86 | #ifdef __cplusplus |
|
|
87 | } |
|
|
88 | #endif /* __cplusplus */ |
|
|
89 | |
82 | #endif |
90 | #endif |