mirror of
https://github.com/reactos/wine.git
synced 2024-12-11 21:36:20 +00:00
abe635cfd7
comparisons and incomplete initializations.
75 lines
2.4 KiB
C
75 lines
2.4 KiB
C
/*
|
|
* Create dynamic new structures of various types
|
|
*
|
|
* Copyright 1998 Bertho A. Stultiens
|
|
*
|
|
*/
|
|
|
|
#ifndef __WRC_NEWSTRUC_H
|
|
#define __WRC_NEWSTRUC_H
|
|
|
|
#ifndef __WRC_WRCTYPES_H
|
|
#include "wrctypes.h"
|
|
#endif
|
|
|
|
#define __NEW_STRUCT_FUNC(p) \
|
|
p##_t *new_##p(void)\
|
|
{\
|
|
return (p##_t *)xmalloc(sizeof(p##_t));\
|
|
}
|
|
|
|
#define __NEW_STRUCT_PROTO(p) p##_t *new_##p(void)
|
|
|
|
__NEW_STRUCT_PROTO(dialog);
|
|
__NEW_STRUCT_PROTO(dialogex);
|
|
__NEW_STRUCT_PROTO(name_id);
|
|
__NEW_STRUCT_PROTO(menu);
|
|
__NEW_STRUCT_PROTO(menuex);
|
|
__NEW_STRUCT_PROTO(menu_item);
|
|
__NEW_STRUCT_PROTO(menuex_item);
|
|
__NEW_STRUCT_PROTO(control);
|
|
__NEW_STRUCT_PROTO(icon);
|
|
__NEW_STRUCT_PROTO(cursor);
|
|
__NEW_STRUCT_PROTO(versioninfo);
|
|
__NEW_STRUCT_PROTO(ver_value);
|
|
__NEW_STRUCT_PROTO(ver_block);
|
|
__NEW_STRUCT_PROTO(stt_entry);
|
|
__NEW_STRUCT_PROTO(accelerator);
|
|
__NEW_STRUCT_PROTO(event);
|
|
__NEW_STRUCT_PROTO(raw_data);
|
|
__NEW_STRUCT_PROTO(lvc);
|
|
__NEW_STRUCT_PROTO(res_count);
|
|
__NEW_STRUCT_PROTO(string);
|
|
__NEW_STRUCT_PROTO(toolbar_item);
|
|
__NEW_STRUCT_PROTO(ani_any);
|
|
|
|
resource_t *new_resource(enum res_e t, void *res, int memopt, language_t *lan);
|
|
version_t *new_version(DWORD v);
|
|
characts_t *new_characts(DWORD c);
|
|
language_t *new_language(int id, int sub);
|
|
language_t *dup_language(language_t *l);
|
|
version_t *dup_version(version_t *v);
|
|
characts_t *dup_characts(characts_t *c);
|
|
rcdata_t *new_rcdata(raw_data_t *rd, int *memopt);
|
|
font_id_t *new_font_id(int size, string_t *face, int weight, int italic);
|
|
user_t *new_user(name_id_t *type, raw_data_t *rd, int *memopt);
|
|
font_t *new_font(raw_data_t *rd, int *memopt);
|
|
fontdir_t *new_fontdir(raw_data_t *rd, int *memopt);
|
|
icon_group_t *new_icon_group(raw_data_t *rd, int *memopt);
|
|
cursor_group_t *new_cursor_group(raw_data_t *rd, int *memopt);
|
|
ani_curico_t *new_ani_curico(enum res_e type, raw_data_t *rd, int *memopt);
|
|
bitmap_t *new_bitmap(raw_data_t *rd, int *memopt);
|
|
ver_words_t *new_ver_words(int i);
|
|
ver_words_t *add_ver_words(ver_words_t *w, int i);
|
|
messagetable_t *new_messagetable(raw_data_t *rd, int *memopt);
|
|
dlginit_t *new_dlginit(raw_data_t *rd, int *memopt);
|
|
void copy_raw_data(raw_data_t *dst, raw_data_t *src, unsigned int offs, int len);
|
|
int *new_int(int i);
|
|
stringtable_t *new_stringtable(lvc_t *lvc);
|
|
toolbar_t *new_toolbar(int button_width, int button_Height, toolbar_item_t *items, int nitems);
|
|
style_pair_t *new_style_pair(style_t *style, style_t *exstyle);
|
|
style_t *new_style(DWORD or_mask, DWORD and_mask);
|
|
|
|
#endif
|
|
|