1 | /* |
1 | /* |
2 | list.c - Part of psiconv, a PSION 5 file formats converter |
2 | list.c - Part of psiconv, a PSION 5 file formats converter |
3 | Copyright (c) 1999, 2000 Frodo Looijaard <frodol@dds.nl> |
3 | Copyright (c) 1999-2005 Frodo Looijaard <frodo@frodo.looijaard.name> |
4 | |
4 | |
5 | This program is free software; you can redistribute it and/or modify |
5 | This program is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published by |
6 | it under the terms of the GNU General Public License as published by |
7 | the Free Software Foundation; either version 2 of the License, or |
7 | the Free Software Foundation; either version 2 of the License, or |
8 | (at your option) any later version. |
8 | (at your option) any later version. |
… | |
… | |
20 | |
20 | |
21 | #include "config.h" |
21 | #include "config.h" |
22 | #include "compat.h" |
22 | #include "compat.h" |
23 | #include <stddef.h> |
23 | #include <stddef.h> |
24 | #include <stdlib.h> |
24 | #include <stdlib.h> |
|
|
25 | #include <string.h> |
25 | #include <stdio.h> |
26 | #include <stdio.h> |
26 | #include "general.h" |
27 | #include "general.h" |
27 | #include "list.h" |
28 | #include "list.h" |
28 | #include "error.h" |
29 | #include "error.h" |
|
|
30 | |
|
|
31 | #ifdef DMALLOC |
|
|
32 | #include <dmalloc.h> |
|
|
33 | #endif |
|
|
34 | |
29 | |
35 | |
30 | static int psiconv_list_resize(psiconv_list l,psiconv_u32 nr); |
36 | static int psiconv_list_resize(psiconv_list l,psiconv_u32 nr); |
31 | |
37 | |
32 | struct psiconv_list_s { |
38 | struct psiconv_list_s { |
33 | psiconv_u32 cur_len; |
39 | psiconv_u32 cur_len; |