mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
Print substituted values in the output file in the same order as in the
input file svn path=/trunk/; revision=7419
This commit is contained in:
parent
17d470dad4
commit
d36decca0d
1 changed files with 10 additions and 2 deletions
|
@ -43,6 +43,7 @@ typedef struct _KEY_INFO
|
||||||
struct _KEY_INFO *next;
|
struct _KEY_INFO *next;
|
||||||
char keyname[200];
|
char keyname[200];
|
||||||
PKEY_VALUE_INFO keyvalueinfo;
|
PKEY_VALUE_INFO keyvalueinfo;
|
||||||
|
PKEY_VALUE_INFO lastvalue;
|
||||||
} KEY_INFO, *PKEY_INFO;
|
} KEY_INFO, *PKEY_INFO;
|
||||||
|
|
||||||
typedef struct _MAKEFILE_INFO
|
typedef struct _MAKEFILE_INFO
|
||||||
|
@ -392,8 +393,15 @@ parse_key_value(PKEY_INFO key_info)
|
||||||
}
|
}
|
||||||
memset(keyvalue_info, 0, sizeof(KEY_VALUE_INFO));
|
memset(keyvalue_info, 0, sizeof(KEY_VALUE_INFO));
|
||||||
strcpy(keyvalue_info->filename, string);
|
strcpy(keyvalue_info->filename, string);
|
||||||
keyvalue_info->next = key_info->keyvalueinfo;
|
if (NULL != key_info->lastvalue)
|
||||||
key_info->keyvalueinfo = keyvalue_info;
|
{
|
||||||
|
key_info->lastvalue->next = keyvalue_info;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
key_info->keyvalueinfo = keyvalue_info;
|
||||||
|
}
|
||||||
|
key_info->lastvalue = keyvalue_info;
|
||||||
}
|
}
|
||||||
skip_line();
|
skip_line();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue