mirror of
https://github.com/reactos/reactos.git
synced 2024-11-19 21:48:10 +00:00
minor changes in the simple DEF-->EDF converter
svn path=/trunk/; revision=588
This commit is contained in:
parent
221e27f1fa
commit
0584d3755f
1 changed files with 17 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: defedf.c,v 1.1 1999/07/04 11:14:15 ea Exp $
|
||||
/* $Id: defedf.c,v 1.2 1999/07/12 21:02:06 ea Exp $
|
||||
*
|
||||
* reactos/iface/dll/defedf.c
|
||||
*
|
||||
|
@ -106,10 +106,14 @@ ParseInput (
|
|||
|
||||
r = strrchr( InputBuffer, '\n' );
|
||||
if (r) *r = '\0';
|
||||
#ifdef DEBUG
|
||||
printf("ParseInput(%s)\n",InputBuffer);
|
||||
#endif
|
||||
if (0 == strlen(InputBuffer))
|
||||
{
|
||||
#ifdef DEBUG
|
||||
printf("LineEmpty\n");
|
||||
#endif
|
||||
return LineEmpty;
|
||||
}
|
||||
|
||||
|
@ -120,20 +124,32 @@ printf("LineEmpty\n");
|
|||
if (*r == ';')
|
||||
{
|
||||
strcpy( InputBuffer, r );
|
||||
#ifdef DEBUG
|
||||
printf("LineComment\n");
|
||||
#endif
|
||||
return LineComment;
|
||||
}
|
||||
r = strchr( InputBuffer, '=' );
|
||||
if (r)
|
||||
{
|
||||
printf( "Fatal error: can not process DEF files with aliases!\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
r = strchr( InputBuffer, '@' );
|
||||
if (r)
|
||||
{
|
||||
strcpy( CleanName, InputBuffer );
|
||||
r = strchr( CleanName, '@' );
|
||||
*r = '\0';
|
||||
#ifdef DEBUG
|
||||
printf("LineSymbol: \"%s\"=\"%s\"\n",InputBuffer,CleanName);
|
||||
#endif
|
||||
return LineSymbol;
|
||||
}
|
||||
/* can not recognize it; copy it verbatim */
|
||||
#ifdef DEBUG
|
||||
printf("LineComment\n");
|
||||
#endif
|
||||
return LineComment;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue