|
|
@ -36,7 +36,7 @@
|
|
|
|
* Remarks :
|
|
|
|
* Remarks :
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
char *get_typename(resource_t* r)
|
|
|
|
const char *get_typename(const resource_t* r)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
switch(r->type){
|
|
|
|
switch(r->type){
|
|
|
|
case res_acc: return "ACCELERATOR";
|
|
|
|
case res_acc: return "ACCELERATOR";
|
|
|
@ -78,10 +78,10 @@ char *get_typename(resource_t* r)
|
|
|
|
* Remarks : No codepage translation is done.
|
|
|
|
* Remarks : No codepage translation is done.
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
char *strncpyWtoA(char *cs, short *ws, int maxlen)
|
|
|
|
char *strncpyWtoA(char *cs, const short *ws, int maxlen)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
char *cptr = cs;
|
|
|
|
char *cptr = cs;
|
|
|
|
short *wsMax = ws + maxlen - 1;
|
|
|
|
const short *wsMax = ws + maxlen - 1;
|
|
|
|
while(*ws && ws < wsMax)
|
|
|
|
while(*ws && ws < wsMax)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if(*ws < -128 || *ws > 127)
|
|
|
|
if(*ws < -128 || *ws > 127)
|
|
|
@ -102,7 +102,7 @@ char *strncpyWtoA(char *cs, short *ws, int maxlen)
|
|
|
|
* Remarks :
|
|
|
|
* Remarks :
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
void print_string(string_t *str)
|
|
|
|
void print_string(const string_t *str)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
char buffer[512];
|
|
|
|
char buffer[512];
|
|
|
|
if(!str)
|
|
|
|
if(!str)
|
|
|
@ -119,7 +119,7 @@ void print_string(string_t *str)
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
* Function : get_nameid_str
|
|
|
|
* Function : get_nameid_str
|
|
|
|
* Syntax : char *get_nameid_str(name_id_t *n)
|
|
|
|
* Syntax : const char *get_nameid_str(const name_id_t *n)
|
|
|
|
* Input :
|
|
|
|
* Input :
|
|
|
|
* n - nameid to convert to text
|
|
|
|
* n - nameid to convert to text
|
|
|
|
* Output : A pointer to the name.
|
|
|
|
* Output : A pointer to the name.
|
|
|
@ -127,7 +127,7 @@ void print_string(string_t *str)
|
|
|
|
* Remarks : Not reentrant because of static buffer
|
|
|
|
* Remarks : Not reentrant because of static buffer
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
char *get_nameid_str(name_id_t *n)
|
|
|
|
const char *get_nameid_str(const name_id_t *n)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
static char buffer[256];
|
|
|
|
static char buffer[256];
|
|
|
|
|
|
|
|
|
|
|
@ -187,7 +187,7 @@ static void dump_memopt(DWORD memopt)
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
* Function : dump_lvc
|
|
|
|
* Function : dump_lvc
|
|
|
|
* Syntax : void dump_lvc(lvc_t *l)
|
|
|
|
* Syntax : void dump_lvc(const lvc_t *l)
|
|
|
|
* Input :
|
|
|
|
* Input :
|
|
|
|
* l - pointer to lvc structure
|
|
|
|
* l - pointer to lvc structure
|
|
|
|
* Output :
|
|
|
|
* Output :
|
|
|
@ -195,7 +195,7 @@ static void dump_memopt(DWORD memopt)
|
|
|
|
* Remarks :
|
|
|
|
* Remarks :
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
static void dump_lvc(lvc_t *l)
|
|
|
|
static void dump_lvc(const lvc_t *l)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if(l->language)
|
|
|
|
if(l->language)
|
|
|
|
printf("LANGUAGE %04x, %04x\n", l->language->id, l->language->sub);
|
|
|
|
printf("LANGUAGE %04x, %04x\n", l->language->id, l->language->sub);
|
|
|
@ -216,7 +216,7 @@ static void dump_lvc(lvc_t *l)
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
* Function : dump_raw_data
|
|
|
|
* Function : dump_raw_data
|
|
|
|
* Syntax : void dump_raw_data(raw_data_t *d)
|
|
|
|
* Syntax : void dump_raw_data(const raw_data_t *d)
|
|
|
|
* Input :
|
|
|
|
* Input :
|
|
|
|
* d - Raw data descriptor
|
|
|
|
* d - Raw data descriptor
|
|
|
|
* Output :
|
|
|
|
* Output :
|
|
|
@ -224,7 +224,7 @@ static void dump_lvc(lvc_t *l)
|
|
|
|
* Remarks :
|
|
|
|
* Remarks :
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
static void dump_raw_data(raw_data_t *d)
|
|
|
|
static void dump_raw_data(const raw_data_t *d)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
unsigned int n;
|
|
|
|
unsigned int n;
|
|
|
|
int i;
|
|
|
|
int i;
|
|
|
@ -267,7 +267,7 @@ static void dump_raw_data(raw_data_t *d)
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
* Function : dump_accelerator
|
|
|
|
* Function : dump_accelerator
|
|
|
|
* Syntax : void dump_accelerator(resource_t *acc)
|
|
|
|
* Syntax : void dump_accelerator(const accelerator_t *acc)
|
|
|
|
* Input :
|
|
|
|
* Input :
|
|
|
|
* acc - Accelerator resource descriptor
|
|
|
|
* acc - Accelerator resource descriptor
|
|
|
|
* Output : nop
|
|
|
|
* Output : nop
|
|
|
@ -275,7 +275,7 @@ static void dump_raw_data(raw_data_t *d)
|
|
|
|
* Remarks :
|
|
|
|
* Remarks :
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
static void dump_accelerator(accelerator_t *acc)
|
|
|
|
static void dump_accelerator(const accelerator_t *acc)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
event_t *ev = acc->events;
|
|
|
|
event_t *ev = acc->events;
|
|
|
|
|
|
|
|
|
|
|
@ -301,7 +301,7 @@ static void dump_accelerator(accelerator_t *acc)
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
* Function : dump_cursor
|
|
|
|
* Function : dump_cursor
|
|
|
|
* Syntax : void dump_cursor(cursor_t *cur)
|
|
|
|
* Syntax : void dump_cursor(const cursor_t *cur)
|
|
|
|
* Input :
|
|
|
|
* Input :
|
|
|
|
* cur - Cursor resource descriptor
|
|
|
|
* cur - Cursor resource descriptor
|
|
|
|
* Output : nop
|
|
|
|
* Output : nop
|
|
|
@ -309,7 +309,7 @@ static void dump_accelerator(accelerator_t *acc)
|
|
|
|
* Remarks :
|
|
|
|
* Remarks :
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
static void dump_cursor(cursor_t *cur)
|
|
|
|
static void dump_cursor(const cursor_t *cur)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
printf("Id: %d\n", cur->id);
|
|
|
|
printf("Id: %d\n", cur->id);
|
|
|
|
printf("Width: %d\n", cur->width);
|
|
|
|
printf("Width: %d\n", cur->width);
|
|
|
@ -322,7 +322,7 @@ static void dump_cursor(cursor_t *cur)
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
* Function : dump_cursor_group
|
|
|
|
* Function : dump_cursor_group
|
|
|
|
* Syntax : void dump_cursor_group(cursor_group_t *cur)
|
|
|
|
* Syntax : void dump_cursor_group(const cursor_group_t *cur)
|
|
|
|
* Input :
|
|
|
|
* Input :
|
|
|
|
* cur - Cursor group resource descriptor
|
|
|
|
* cur - Cursor group resource descriptor
|
|
|
|
* Output : nop
|
|
|
|
* Output : nop
|
|
|
@ -330,7 +330,7 @@ static void dump_cursor(cursor_t *cur)
|
|
|
|
* Remarks :
|
|
|
|
* Remarks :
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
static void dump_cursor_group(cursor_group_t *curg)
|
|
|
|
static void dump_cursor_group(const cursor_group_t *curg)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
dump_memopt(curg->memopt);
|
|
|
|
dump_memopt(curg->memopt);
|
|
|
|
printf("There are %d cursors in this group\n", curg->ncursor);
|
|
|
|
printf("There are %d cursors in this group\n", curg->ncursor);
|
|
|
@ -339,7 +339,7 @@ static void dump_cursor_group(cursor_group_t *curg)
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
* Function : dump_icon
|
|
|
|
* Function : dump_icon
|
|
|
|
* Syntax : void dump_icon(icon_t *ico)
|
|
|
|
* Syntax : void dump_icon(const icon_t *ico)
|
|
|
|
* Input :
|
|
|
|
* Input :
|
|
|
|
* ico - Icon resource descriptor
|
|
|
|
* ico - Icon resource descriptor
|
|
|
|
* Output : nop
|
|
|
|
* Output : nop
|
|
|
@ -347,7 +347,7 @@ static void dump_cursor_group(cursor_group_t *curg)
|
|
|
|
* Remarks :
|
|
|
|
* Remarks :
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
static void dump_icon(icon_t *ico)
|
|
|
|
static void dump_icon(const icon_t *ico)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
printf("Id: %d\n", ico->id);
|
|
|
|
printf("Id: %d\n", ico->id);
|
|
|
|
printf("Width: %d\n", ico->width);
|
|
|
|
printf("Width: %d\n", ico->width);
|
|
|
@ -361,7 +361,7 @@ static void dump_icon(icon_t *ico)
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
* Function : dump_icon_group
|
|
|
|
* Function : dump_icon_group
|
|
|
|
* Syntax : void dump_icon_group(icon_group_t *ico)
|
|
|
|
* Syntax : void dump_icon_group(const icon_group_t *ico)
|
|
|
|
* Input :
|
|
|
|
* Input :
|
|
|
|
* ico - Icon group resource descriptor
|
|
|
|
* ico - Icon group resource descriptor
|
|
|
|
* Output : nop
|
|
|
|
* Output : nop
|
|
|
@ -369,7 +369,7 @@ static void dump_icon(icon_t *ico)
|
|
|
|
* Remarks :
|
|
|
|
* Remarks :
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
static void dump_icon_group(icon_group_t *icog)
|
|
|
|
static void dump_icon_group(const icon_group_t *icog)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
dump_memopt(icog->memopt);
|
|
|
|
dump_memopt(icog->memopt);
|
|
|
|
printf("There are %d icons in this group\n", icog->nicon);
|
|
|
|
printf("There are %d icons in this group\n", icog->nicon);
|
|
|
@ -378,7 +378,7 @@ static void dump_icon_group(icon_group_t *icog)
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
* Function : dump_ani_curico
|
|
|
|
* Function : dump_ani_curico
|
|
|
|
* Syntax : void dump_ani_curico(ani_curico_t *ani)
|
|
|
|
* Syntax : void dump_ani_curico(const ani_curico_t *ani)
|
|
|
|
* Input :
|
|
|
|
* Input :
|
|
|
|
* ani - Animated object resource descriptor
|
|
|
|
* ani - Animated object resource descriptor
|
|
|
|
* Output : nop
|
|
|
|
* Output : nop
|
|
|
@ -386,7 +386,7 @@ static void dump_icon_group(icon_group_t *icog)
|
|
|
|
* Remarks :
|
|
|
|
* Remarks :
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
static void dump_ani_curico(ani_curico_t *ani)
|
|
|
|
static void dump_ani_curico(const ani_curico_t *ani)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
dump_memopt(ani->memopt);
|
|
|
|
dump_memopt(ani->memopt);
|
|
|
|
dump_lvc(&ani->data->lvc);
|
|
|
|
dump_lvc(&ani->data->lvc);
|
|
|
@ -396,7 +396,7 @@ static void dump_ani_curico(ani_curico_t *ani)
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
* Function : dump_font
|
|
|
|
* Function : dump_font
|
|
|
|
* Syntax : void dump_font(font_t *fnt)
|
|
|
|
* Syntax : void dump_font(const font_t *fnt)
|
|
|
|
* Input :
|
|
|
|
* Input :
|
|
|
|
* fnt - Font resource descriptor
|
|
|
|
* fnt - Font resource descriptor
|
|
|
|
* Output : nop
|
|
|
|
* Output : nop
|
|
|
@ -404,7 +404,7 @@ static void dump_ani_curico(ani_curico_t *ani)
|
|
|
|
* Remarks :
|
|
|
|
* Remarks :
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
static void dump_font(font_t *fnt)
|
|
|
|
static void dump_font(const font_t *fnt)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
dump_memopt(fnt->memopt);
|
|
|
|
dump_memopt(fnt->memopt);
|
|
|
|
dump_lvc(&(fnt->data->lvc));
|
|
|
|
dump_lvc(&(fnt->data->lvc));
|
|
|
@ -414,7 +414,7 @@ static void dump_font(font_t *fnt)
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
* Function : dump_bitmap
|
|
|
|
* Function : dump_bitmap
|
|
|
|
* Syntax : void dump_bitmap(bitmap_t *bmp)
|
|
|
|
* Syntax : void dump_bitmap(const bitmap_t *bmp)
|
|
|
|
* Input :
|
|
|
|
* Input :
|
|
|
|
* bmp - Bitmap resource descriptor
|
|
|
|
* bmp - Bitmap resource descriptor
|
|
|
|
* Output : nop
|
|
|
|
* Output : nop
|
|
|
@ -422,7 +422,7 @@ static void dump_font(font_t *fnt)
|
|
|
|
* Remarks :
|
|
|
|
* Remarks :
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
static void dump_bitmap(bitmap_t *bmp)
|
|
|
|
static void dump_bitmap(const bitmap_t *bmp)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
dump_memopt(bmp->memopt);
|
|
|
|
dump_memopt(bmp->memopt);
|
|
|
|
dump_lvc(&(bmp->data->lvc));
|
|
|
|
dump_lvc(&(bmp->data->lvc));
|
|
|
@ -432,7 +432,7 @@ static void dump_bitmap(bitmap_t *bmp)
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
* Function : dump_rcdata
|
|
|
|
* Function : dump_rcdata
|
|
|
|
* Syntax : void dump_rcdata(rcdata_t *rdt)
|
|
|
|
* Syntax : void dump_rcdata(const rcdata_t *rdt)
|
|
|
|
* Input :
|
|
|
|
* Input :
|
|
|
|
* rdt - RCData resource descriptor
|
|
|
|
* rdt - RCData resource descriptor
|
|
|
|
* Output : nop
|
|
|
|
* Output : nop
|
|
|
@ -440,7 +440,7 @@ static void dump_bitmap(bitmap_t *bmp)
|
|
|
|
* Remarks :
|
|
|
|
* Remarks :
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
static void dump_rcdata(rcdata_t *rdt)
|
|
|
|
static void dump_rcdata(const rcdata_t *rdt)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
dump_memopt(rdt->memopt);
|
|
|
|
dump_memopt(rdt->memopt);
|
|
|
|
dump_lvc(&(rdt->data->lvc));
|
|
|
|
dump_lvc(&(rdt->data->lvc));
|
|
|
@ -450,7 +450,7 @@ static void dump_rcdata(rcdata_t *rdt)
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
* Function : dump_user
|
|
|
|
* Function : dump_user
|
|
|
|
* Syntax : void dump_user(user_t *usr)
|
|
|
|
* Syntax : void dump_user(const user_t *usr)
|
|
|
|
* Input :
|
|
|
|
* Input :
|
|
|
|
* usr - User resource descriptor
|
|
|
|
* usr - User resource descriptor
|
|
|
|
* Output : nop
|
|
|
|
* Output : nop
|
|
|
@ -458,7 +458,7 @@ static void dump_rcdata(rcdata_t *rdt)
|
|
|
|
* Remarks :
|
|
|
|
* Remarks :
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
static void dump_user(user_t *usr)
|
|
|
|
static void dump_user(const user_t *usr)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
dump_memopt(usr->memopt);
|
|
|
|
dump_memopt(usr->memopt);
|
|
|
|
dump_lvc(&(usr->data->lvc));
|
|
|
|
dump_lvc(&(usr->data->lvc));
|
|
|
@ -469,7 +469,7 @@ static void dump_user(user_t *usr)
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
* Function : dump_messagetable
|
|
|
|
* Function : dump_messagetable
|
|
|
|
* Syntax : void dump_messagetable(messagetable_t *msg)
|
|
|
|
* Syntax : void dump_messagetable(const messagetable_t *msg)
|
|
|
|
* Input :
|
|
|
|
* Input :
|
|
|
|
* msg - Messagetable resource descriptor
|
|
|
|
* msg - Messagetable resource descriptor
|
|
|
|
* Output : nop
|
|
|
|
* Output : nop
|
|
|
@ -477,7 +477,7 @@ static void dump_user(user_t *usr)
|
|
|
|
* Remarks :
|
|
|
|
* Remarks :
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
static void dump_messagetable(messagetable_t *msg)
|
|
|
|
static void dump_messagetable(const messagetable_t *msg)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
dump_memopt(msg->memopt);
|
|
|
|
dump_memopt(msg->memopt);
|
|
|
|
dump_lvc(&(msg->data->lvc));
|
|
|
|
dump_lvc(&(msg->data->lvc));
|
|
|
@ -487,7 +487,7 @@ static void dump_messagetable(messagetable_t *msg)
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
* Function : dump_stringtable
|
|
|
|
* Function : dump_stringtable
|
|
|
|
* Syntax : void dump_stringtable(stringtable_t *stt)
|
|
|
|
* Syntax : void dump_stringtable(const stringtable_t *stt)
|
|
|
|
* Input :
|
|
|
|
* Input :
|
|
|
|
* stt - Stringtable resource descriptor
|
|
|
|
* stt - Stringtable resource descriptor
|
|
|
|
* Output : nop
|
|
|
|
* Output : nop
|
|
|
@ -495,7 +495,7 @@ static void dump_messagetable(messagetable_t *msg)
|
|
|
|
* Remarks :
|
|
|
|
* Remarks :
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
static void dump_stringtable(stringtable_t *stt)
|
|
|
|
static void dump_stringtable(const stringtable_t *stt)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
int i;
|
|
|
|
int i;
|
|
|
|
for(; stt; stt = stt->next)
|
|
|
|
for(; stt; stt = stt->next)
|
|
|
@ -519,7 +519,7 @@ static void dump_stringtable(stringtable_t *stt)
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
* Function : dump_control
|
|
|
|
* Function : dump_control
|
|
|
|
* Syntax : void dump_control(control_t *ctrl)
|
|
|
|
* Syntax : void dump_control(const control_t *ctrl)
|
|
|
|
* Input :
|
|
|
|
* Input :
|
|
|
|
* ctrl - Control resource descriptor
|
|
|
|
* ctrl - Control resource descriptor
|
|
|
|
* Output :
|
|
|
|
* Output :
|
|
|
@ -527,7 +527,7 @@ static void dump_stringtable(stringtable_t *stt)
|
|
|
|
* Remarks :
|
|
|
|
* Remarks :
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
static void dump_control(control_t *ctrl)
|
|
|
|
static void dump_control(const control_t *ctrl)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
printf("Control {\n\tClass: %s\n", get_nameid_str(ctrl->ctlclass));
|
|
|
|
printf("Control {\n\tClass: %s\n", get_nameid_str(ctrl->ctlclass));
|
|
|
|
printf("\tText: "); get_nameid_str(ctrl->title); printf("\n");
|
|
|
|
printf("\tText: "); get_nameid_str(ctrl->title); printf("\n");
|
|
|
@ -558,7 +558,7 @@ static void dump_control(control_t *ctrl)
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
* Function : dump_dialog
|
|
|
|
* Function : dump_dialog
|
|
|
|
* Syntax : void dump_dialog(dialog_t *dlg)
|
|
|
|
* Syntax : void dump_dialog(const dialog_t *dlg)
|
|
|
|
* Input :
|
|
|
|
* Input :
|
|
|
|
* dlg - Dialog resource descriptor
|
|
|
|
* dlg - Dialog resource descriptor
|
|
|
|
* Output :
|
|
|
|
* Output :
|
|
|
@ -566,7 +566,7 @@ static void dump_control(control_t *ctrl)
|
|
|
|
* Remarks :
|
|
|
|
* Remarks :
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
static void dump_dialog(dialog_t *dlg)
|
|
|
|
static void dump_dialog(const dialog_t *dlg)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
control_t *c = dlg->controls;
|
|
|
|
control_t *c = dlg->controls;
|
|
|
|
|
|
|
|
|
|
|
@ -608,7 +608,7 @@ static void dump_dialog(dialog_t *dlg)
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
* Function : dump_dialogex
|
|
|
|
* Function : dump_dialogex
|
|
|
|
* Syntax : void dump_dialogex(dialogex_t *dlgex)
|
|
|
|
* Syntax : void dump_dialogex(const dialogex_t *dlgex)
|
|
|
|
* Input :
|
|
|
|
* Input :
|
|
|
|
* dlgex - DialogEx resource descriptor
|
|
|
|
* dlgex - DialogEx resource descriptor
|
|
|
|
* Output :
|
|
|
|
* Output :
|
|
|
@ -616,9 +616,9 @@ static void dump_dialog(dialog_t *dlg)
|
|
|
|
* Remarks :
|
|
|
|
* Remarks :
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
static void dump_dialogex(dialogex_t *dlgex)
|
|
|
|
static void dump_dialogex(const dialogex_t *dlgex)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
control_t *c = dlgex->controls;
|
|
|
|
const control_t *c = dlgex->controls;
|
|
|
|
|
|
|
|
|
|
|
|
dump_memopt(dlgex->memopt);
|
|
|
|
dump_memopt(dlgex->memopt);
|
|
|
|
dump_lvc(&(dlgex->lvc));
|
|
|
|
dump_lvc(&(dlgex->lvc));
|
|
|
@ -659,14 +659,14 @@ static void dump_dialogex(dialogex_t *dlgex)
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
* Function : dump_menu_item
|
|
|
|
* Function : dump_menu_item
|
|
|
|
* Syntax : void dump_menu_item(menu_item_t *item)
|
|
|
|
* Syntax : void dump_menu_item(const menu_item_t *item)
|
|
|
|
* Input :
|
|
|
|
* Input :
|
|
|
|
* Output :
|
|
|
|
* Output :
|
|
|
|
* Description :
|
|
|
|
* Description :
|
|
|
|
* Remarks :
|
|
|
|
* Remarks :
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
static void dump_menu_item(menu_item_t *item)
|
|
|
|
static void dump_menu_item(const menu_item_t *item)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
while(item)
|
|
|
|
while(item)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -696,7 +696,7 @@ static void dump_menu_item(menu_item_t *item)
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
* Function : dump_menu
|
|
|
|
* Function : dump_menu
|
|
|
|
* Syntax : void dump_menu(menu_t *men)
|
|
|
|
* Syntax : void dump_menu(const menu_t *men)
|
|
|
|
* Input :
|
|
|
|
* Input :
|
|
|
|
* men - Menu resource descriptor
|
|
|
|
* men - Menu resource descriptor
|
|
|
|
* Output :
|
|
|
|
* Output :
|
|
|
@ -704,7 +704,7 @@ static void dump_menu_item(menu_item_t *item)
|
|
|
|
* Remarks :
|
|
|
|
* Remarks :
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
static void dump_menu(menu_t *men)
|
|
|
|
static void dump_menu(const menu_t *men)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
dump_memopt(men->memopt);
|
|
|
|
dump_memopt(men->memopt);
|
|
|
|
dump_lvc(&(men->lvc));
|
|
|
|
dump_lvc(&(men->lvc));
|
|
|
@ -714,14 +714,14 @@ static void dump_menu(menu_t *men)
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
* Function : dump_menuex_item
|
|
|
|
* Function : dump_menuex_item
|
|
|
|
* Syntax : void dump_menuex_item(menuex_item_t *item)
|
|
|
|
* Syntax : void dump_menuex_item(const menuex_item_t *item)
|
|
|
|
* Input :
|
|
|
|
* Input :
|
|
|
|
* Output :
|
|
|
|
* Output :
|
|
|
|
* Description :
|
|
|
|
* Description :
|
|
|
|
* Remarks :
|
|
|
|
* Remarks :
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
static void dump_menuex_item(menuex_item_t *item)
|
|
|
|
static void dump_menuex_item(const menuex_item_t *item)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
while(item)
|
|
|
|
while(item)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -766,7 +766,7 @@ static void dump_menuex_item(menuex_item_t *item)
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
* Function : dump_menuex
|
|
|
|
* Function : dump_menuex
|
|
|
|
* Syntax : void dump_menuex(dialogex_t *menex)
|
|
|
|
* Syntax : void dump_menuex(const menuex_t *menex)
|
|
|
|
* Input :
|
|
|
|
* Input :
|
|
|
|
* menex - MenuEx resource descriptor
|
|
|
|
* menex - MenuEx resource descriptor
|
|
|
|
* Output :
|
|
|
|
* Output :
|
|
|
@ -774,7 +774,7 @@ static void dump_menuex_item(menuex_item_t *item)
|
|
|
|
* Remarks :
|
|
|
|
* Remarks :
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
static void dump_menuex(menuex_t *menex)
|
|
|
|
static void dump_menuex(const menuex_t *menex)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
dump_memopt(menex->memopt);
|
|
|
|
dump_memopt(menex->memopt);
|
|
|
|
dump_lvc(&(menex->lvc));
|
|
|
|
dump_lvc(&(menex->lvc));
|
|
|
@ -784,16 +784,16 @@ static void dump_menuex(menuex_t *menex)
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
* Function : dump_ver_value
|
|
|
|
* Function : dump_ver_value
|
|
|
|
* Syntax : void dump_ver_value(ver_value_t *val)
|
|
|
|
* Syntax : void dump_ver_value(const ver_value_t *val)
|
|
|
|
* Input :
|
|
|
|
* Input :
|
|
|
|
* Output :
|
|
|
|
* Output :
|
|
|
|
* Description :
|
|
|
|
* Description :
|
|
|
|
* Remarks :
|
|
|
|
* Remarks :
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
static void dump_ver_block(ver_block_t *); /* Forward ref */
|
|
|
|
static void dump_ver_block(const ver_block_t *); /* Forward ref */
|
|
|
|
|
|
|
|
|
|
|
|
static void dump_ver_value(ver_value_t *val)
|
|
|
|
static void dump_ver_value(const ver_value_t *val)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if(val->type == val_str)
|
|
|
|
if(val->type == val_str)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -821,16 +821,16 @@ static void dump_ver_value(ver_value_t *val)
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
* Function : dump_ver_block
|
|
|
|
* Function : dump_ver_block
|
|
|
|
* Syntax : void dump_ver_block(ver_block_t *blk)
|
|
|
|
* Syntax : void dump_ver_block(const ver_block_t *blk)
|
|
|
|
* Input :
|
|
|
|
* Input :
|
|
|
|
* Output :
|
|
|
|
* Output :
|
|
|
|
* Description :
|
|
|
|
* Description :
|
|
|
|
* Remarks :
|
|
|
|
* Remarks :
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
static void dump_ver_block(ver_block_t *blk)
|
|
|
|
static void dump_ver_block(const ver_block_t *blk)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ver_value_t *val = blk->values;
|
|
|
|
const ver_value_t *val = blk->values;
|
|
|
|
printf("BLOCK ");
|
|
|
|
printf("BLOCK ");
|
|
|
|
print_string(blk->name);
|
|
|
|
print_string(blk->name);
|
|
|
|
printf("\n{\n");
|
|
|
|
printf("\n{\n");
|
|
|
@ -845,7 +845,7 @@ static void dump_ver_block(ver_block_t *blk)
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
* Function : dump_versioninfo
|
|
|
|
* Function : dump_versioninfo
|
|
|
|
* Syntax : void dump_versioninfo(versioninfo_t *ver)
|
|
|
|
* Syntax : void dump_versioninfo(const versioninfo_t *ver)
|
|
|
|
* Input :
|
|
|
|
* Input :
|
|
|
|
* ver - Versioninfo resource descriptor
|
|
|
|
* ver - Versioninfo resource descriptor
|
|
|
|
* Output :
|
|
|
|
* Output :
|
|
|
@ -853,9 +853,9 @@ static void dump_ver_block(ver_block_t *blk)
|
|
|
|
* Remarks :
|
|
|
|
* Remarks :
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
static void dump_versioninfo(versioninfo_t *ver)
|
|
|
|
static void dump_versioninfo(const versioninfo_t *ver)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ver_block_t *blk = ver->blocks;
|
|
|
|
const ver_block_t *blk = ver->blocks;
|
|
|
|
|
|
|
|
|
|
|
|
dump_lvc(&(ver->lvc));
|
|
|
|
dump_lvc(&(ver->lvc));
|
|
|
|
|
|
|
|
|
|
|
@ -891,14 +891,14 @@ static void dump_versioninfo(versioninfo_t *ver)
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
* Function : dump_toolbar_item
|
|
|
|
* Function : dump_toolbar_item
|
|
|
|
* Syntax : void dump_toolbar_item(toolbar_item_t *item)
|
|
|
|
* Syntax : void dump_toolbar_item(const toolbar_item_t *item)
|
|
|
|
* Input :
|
|
|
|
* Input :
|
|
|
|
* Output :
|
|
|
|
* Output :
|
|
|
|
* Description :
|
|
|
|
* Description :
|
|
|
|
* Remarks :
|
|
|
|
* Remarks :
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
static void dump_toolbar_items(toolbar_item_t *items)
|
|
|
|
static void dump_toolbar_items(const toolbar_item_t *items)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
while(items)
|
|
|
|
while(items)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -916,7 +916,7 @@ static void dump_toolbar_items(toolbar_item_t *items)
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
* Function : dump_toolbar
|
|
|
|
* Function : dump_toolbar
|
|
|
|
* Syntax : void dump_toolbar(toolbar_t *toolbar)
|
|
|
|
* Syntax : void dump_toolbar(const toolbar_t *toolbar)
|
|
|
|
* Input :
|
|
|
|
* Input :
|
|
|
|
* toolbar - Toolbar resource descriptor
|
|
|
|
* toolbar - Toolbar resource descriptor
|
|
|
|
* Output :
|
|
|
|
* Output :
|
|
|
@ -924,7 +924,7 @@ static void dump_toolbar_items(toolbar_item_t *items)
|
|
|
|
* Remarks :
|
|
|
|
* Remarks :
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
static void dump_toolbar(toolbar_t *toolbar)
|
|
|
|
static void dump_toolbar(const toolbar_t *toolbar)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
dump_memopt(toolbar->memopt);
|
|
|
|
dump_memopt(toolbar->memopt);
|
|
|
|
dump_lvc(&(toolbar->lvc));
|
|
|
|
dump_lvc(&(toolbar->lvc));
|
|
|
@ -934,7 +934,7 @@ static void dump_toolbar(toolbar_t *toolbar)
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
* Function : dump_dlginit
|
|
|
|
* Function : dump_dlginit
|
|
|
|
* Syntax : void dump_dlginit(dlginit_t *dit)
|
|
|
|
* Syntax : void dump_dlginit(const dlginit_t *dit)
|
|
|
|
* Input :
|
|
|
|
* Input :
|
|
|
|
* dit - DlgInit resource descriptor
|
|
|
|
* dit - DlgInit resource descriptor
|
|
|
|
* Output :
|
|
|
|
* Output :
|
|
|
@ -942,7 +942,7 @@ static void dump_toolbar(toolbar_t *toolbar)
|
|
|
|
* Remarks :
|
|
|
|
* Remarks :
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
static void dump_dlginit(dlginit_t *dit)
|
|
|
|
static void dump_dlginit(const dlginit_t *dit)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
dump_memopt(dit->memopt);
|
|
|
|
dump_memopt(dit->memopt);
|
|
|
|
dump_lvc(&(dit->data->lvc));
|
|
|
|
dump_lvc(&(dit->data->lvc));
|
|
|
@ -952,7 +952,7 @@ static void dump_dlginit(dlginit_t *dit)
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
* Function : dump_resources
|
|
|
|
* Function : dump_resources
|
|
|
|
* Syntax : void dump_resources(resource_t *top)
|
|
|
|
* Syntax : void dump_resources(const resource_t *top)
|
|
|
|
* Input :
|
|
|
|
* Input :
|
|
|
|
* top - Top of the resource tree
|
|
|
|
* top - Top of the resource tree
|
|
|
|
* Output :
|
|
|
|
* Output :
|
|
|
@ -961,7 +961,7 @@ static void dump_dlginit(dlginit_t *dit)
|
|
|
|
* Remarks :
|
|
|
|
* Remarks :
|
|
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
void dump_resources(resource_t *top)
|
|
|
|
void dump_resources(const resource_t *top)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
printf("Internal resource-tree dump:\n");
|
|
|
|
printf("Internal resource-tree dump:\n");
|
|
|
|
while(top)
|
|
|
|
while(top)
|
|
|
|