Temporarily implemented the LCMAP_SORTKEY flag in the LCMapStringW()
[wine/multimedia.git] / tools / wrc / newstruc.h
blob354c4e4fa91f04632bd9a2ee73485292e562ee52
1 /*
2 * Create dynamic new structures of various types
4 * Copyright 1998 Bertho A. Stultiens
6 */
8 #ifndef __WRC_NEWSTRUC_H
9 #define __WRC_NEWSTRUC_H
11 #ifndef __WRC_WRCTYPES_H
12 #include "wrctypes.h"
13 #endif
15 #define __NEW_STRUCT_FUNC(p) \
16 p##_t *new_##p(void)\
18 return (p##_t *)xmalloc(sizeof(p##_t));\
21 #define __NEW_STRUCT_PROTO(p) p##_t *new_##p(void)
23 __NEW_STRUCT_PROTO(dialog);
24 __NEW_STRUCT_PROTO(dialogex);
25 __NEW_STRUCT_PROTO(name_id);
26 __NEW_STRUCT_PROTO(menu);
27 __NEW_STRUCT_PROTO(menuex);
28 __NEW_STRUCT_PROTO(menu_item);
29 __NEW_STRUCT_PROTO(menuex_item);
30 __NEW_STRUCT_PROTO(control);
31 __NEW_STRUCT_PROTO(icon);
32 __NEW_STRUCT_PROTO(cursor);
33 __NEW_STRUCT_PROTO(versioninfo);
34 __NEW_STRUCT_PROTO(ver_value);
35 __NEW_STRUCT_PROTO(ver_block);
36 __NEW_STRUCT_PROTO(stt_entry);
37 __NEW_STRUCT_PROTO(accelerator);
38 __NEW_STRUCT_PROTO(event);
39 __NEW_STRUCT_PROTO(raw_data);
40 __NEW_STRUCT_PROTO(lvc);
41 __NEW_STRUCT_PROTO(res_count);
42 __NEW_STRUCT_PROTO(string);
43 __NEW_STRUCT_PROTO(toolbar_item);
45 resource_t *new_resource(enum res_e t, void *res, int memopt, language_t *lan);
46 version_t *new_version(DWORD v);
47 characts_t *new_characts(DWORD c);
48 language_t *new_language(int id, int sub);
49 language_t *dup_language(language_t *l);
50 version_t *dup_version(version_t *v);
51 characts_t *dup_characts(characts_t *c);
52 rcdata_t *new_rcdata(raw_data_t *rd, int *memopt);
53 font_id_t *new_font_id(int size, string_t *face, int weight, int italic);
54 user_t *new_user(name_id_t *type, raw_data_t *rd, int *memopt);
55 font_t *new_font(raw_data_t *rd, int *memopt);
56 icon_group_t *new_icon_group(raw_data_t *rd, int *memopt);
57 cursor_group_t *new_cursor_group(raw_data_t *rd, int *memopt);
58 bitmap_t *new_bitmap(raw_data_t *rd, int *memopt);
59 ver_words_t *new_ver_words(int i);
60 ver_words_t *add_ver_words(ver_words_t *w, int i);
61 messagetable_t *new_messagetable(raw_data_t *rd);
62 dlginit_t *new_dlginit(raw_data_t *rd, int *memopt);
63 void copy_raw_data(raw_data_t *dst, raw_data_t *src, int offs, int len);
64 int *new_int(int i);
65 stringtable_t *new_stringtable(lvc_t *lvc);
66 toolbar_t *new_toolbar(int button_width, int button_Height, toolbar_item_t *items, int nitems);
67 style_pair_t *new_style_pair(style_t *style, style_t *exstyle);
68 style_t *new_style(DWORD or_mask, DWORD and_mask);
70 #endif