1 | /* |
1 | /* |
2 | buffer.c - Part of psiconv, a PSION 5 file formats converter |
2 | buffer.c - Part of psiconv, a PSION 5 file formats converter |
3 | Copyright (c) 2000 Frodo Looijaard <frodol@dds.nl> |
3 | Copyright (c) 2000-2014 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. |
… | |
… | |
128 | } |
128 | } |
129 | if ((res = psiconv_buffer_add(*buf,*data))) { |
129 | if ((res = psiconv_buffer_add(*buf,*data))) { |
130 | goto ERROR2; |
130 | goto ERROR2; |
131 | } |
131 | } |
132 | } |
132 | } |
|
|
133 | return 0; |
133 | |
134 | |
134 | ERROR2: |
135 | ERROR2: |
135 | psiconv_buffer_free(*buf); |
136 | psiconv_buffer_free(*buf); |
136 | ERROR1: |
137 | ERROR1: |
137 | return res; |
138 | return res; |