1 | /* |
1 | /* |
2 | configuration.c - Part of psiconv, a PSION 5 file formats converter |
2 | configuration.c - Part of psiconv, a PSION 5 file formats converter |
3 | Copyright (c) 1999-2004 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. |
… | |
… | |
185 | } |
185 | } |
186 | soval ++; |
186 | soval ++; |
187 | while (line[soval] && (line[soval] <= 32)) |
187 | while (line[soval] && (line[soval] <= 32)) |
188 | soval ++; |
188 | soval ++; |
189 | eoval = soval; |
189 | eoval = soval; |
190 | while (line[eoval] && ((line[eoval] >= '0') && (line[eovar] <= '9'))) |
190 | while (line[eoval] && ((line[eoval] >= '0') && (line[eoval] <= '9'))) |
191 | eoval ++; |
191 | eoval ++; |
192 | if (eoval == soval) { |
192 | if (eoval == soval) { |
193 | psiconv_error(*config,0,0,"Configuration file %s, line %d: " |
193 | psiconv_error(*config,0,0,"Configuration file %s, line %d: " |
194 | "Syntax error (no value found)",filename,linenr); |
194 | "Syntax error (no value found)",filename,linenr); |
195 | return; |
195 | return; |