mirror of
https://github.com/reactos/reactos.git
synced 2025-04-22 13:10:39 +00:00
2003-07-11 Casper S. Hornstrup <chorns@users.sourceforge.net>
* tools/rgenstat/rgenstat.c (get_previous_identifier): Skip end-of-line characters when searching for identifier. (parse_file): Print a warning if no identifier is found. svn path=/trunk/; revision=5064
This commit is contained in:
parent
aea9dce89b
commit
153d94b106
2 changed files with 16 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
2003-07-11 Casper S. Hornstrup <chorns@users.sourceforge.net>
|
||||
|
||||
* tools/rgenstat/rgenstat.c (get_previous_identifier): Skip end-of-line
|
||||
characters when searching for identifier.
|
||||
(parse_file): Print a warning if no identifier is found.
|
||||
|
||||
2003-07-10 James Tabor <jimtabor@adsl-64-217-116-74.dsl.hstntx.swbell.net>
|
||||
|
||||
* subsys/win32k/objects/region.c: (W32kFillRgn) Implement.
|
||||
|
|
|
@ -323,7 +323,8 @@ get_previous_identifier(unsigned int end, char *name)
|
|||
|
||||
name[0] = 0;
|
||||
|
||||
while ((my_file_pointer > 0) && (is_whitespace(file_buffer[my_file_pointer])))
|
||||
while ((my_file_pointer > 0) && (is_whitespace(file_buffer[my_file_pointer])
|
||||
|| is_eol_char(file_buffer[my_file_pointer])))
|
||||
{
|
||||
my_file_pointer--;
|
||||
}
|
||||
|
@ -383,11 +384,13 @@ static void
|
|||
parse_file(char *filename)
|
||||
{
|
||||
PAPI_INFO api_info;
|
||||
char prev[200];
|
||||
char name[200];
|
||||
int tag_id;
|
||||
|
||||
read_file(filename);
|
||||
|
||||
prev[0] = 0;
|
||||
do
|
||||
{
|
||||
tag_id = skip_to_next_tag();
|
||||
|
@ -401,6 +404,11 @@ parse_file(char *filename)
|
|||
|
||||
if (skip_to_next_name(name))
|
||||
{
|
||||
if (strlen(name) == 0)
|
||||
{
|
||||
printf("Warning: empty function name in file %s. Previous function name was %s.\n",
|
||||
filename, prev);
|
||||
}
|
||||
api_info = malloc(sizeof(API_INFO));
|
||||
if (api_info == NULL)
|
||||
{
|
||||
|
@ -413,7 +421,7 @@ parse_file(char *filename)
|
|||
|
||||
api_info->next = api_info_list;
|
||||
api_info_list = api_info;
|
||||
|
||||
strcpy(prev, name);
|
||||
}
|
||||
} while (1);
|
||||
|
||||
|
|
Loading…
Reference in a new issue