~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Wine Cross Reference
wine/tools/wrc/newstruc.h

Version: ~ [ wine-1.1.33 ] ~ [ wine-1.1.32 ] ~ [ wine-1.1.31 ] ~ [ wine-1.1.30 ] ~ [ wine-1.1.29 ] ~ [ wine-1.1.28 ] ~ [ wine-1.1.27 ] ~ [ wine-1.1.26 ] ~ [ wine-1.1.25 ] ~ [ wine-1.1.24 ] ~ [ wine-1.1.23 ] ~ [ wine-1.1.22 ] ~ [ wine-1.1.21 ] ~ [ wine-1.1.20 ] ~ [ wine-1.1.19 ] ~ [ wine-1.1.18 ] ~ [ wine-1.1.17 ] ~ [ wine-1.1.16 ] ~ [ wine-1.1.15 ] ~ [ wine-1.1.14 ] ~ [ wine-1.1.13 ] ~ [ wine-1.1.12 ] ~ [ wine-1.1.11 ] ~ [ wine-1.1.10 ] ~ [ wine-1.1.9 ] ~ [ wine-1.1.8 ] ~ [ wine-1.1.7 ] ~ [ wine-1.0.1 ] ~ [ wine-1.1.6 ] ~ [ wine-1.1.5 ] ~ [ wine-1.1.4 ] ~ [ wine-1.1.3 ] ~ [ wine-1.1.2 ] ~ [ wine-1.1.1 ] ~ [ wine-1.1.0 ] ~ [ wine-1.0 ] ~

  1 /*
  2  * Create dynamic new structures of various types
  3  *
  4  * Copyright 1998 Bertho A. Stultiens
  5  *
  6  * This library is free software; you can redistribute it and/or
  7  * modify it under the terms of the GNU Lesser General Public
  8  * License as published by the Free Software Foundation; either
  9  * version 2.1 of the License, or (at your option) any later version.
 10  *
 11  * This library is distributed in the hope that it will be useful,
 12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 14  * Lesser General Public License for more details.
 15  *
 16  * You should have received a copy of the GNU Lesser General Public
 17  * License along with this library; if not, write to the Free Software
 18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
 19  */
 20 
 21 #ifndef __WRC_NEWSTRUC_H
 22 #define __WRC_NEWSTRUC_H
 23 
 24 #include "wrctypes.h"
 25 
 26 #define __NEW_STRUCT_FUNC(p)    \
 27         p##_t *new_##p(void)\
 28         {\
 29                 p##_t * ret = xmalloc(sizeof(*ret)); \
 30                 memset( ret, 0, sizeof(*ret) ); \
 31                 return ret; \
 32         }
 33 
 34 #define __NEW_STRUCT_PROTO(p)   p##_t *new_##p(void)
 35 
 36 __NEW_STRUCT_PROTO(dialog);
 37 __NEW_STRUCT_PROTO(dialogex);
 38 __NEW_STRUCT_PROTO(name_id);
 39 __NEW_STRUCT_PROTO(menu);
 40 __NEW_STRUCT_PROTO(menuex);
 41 __NEW_STRUCT_PROTO(menu_item);
 42 __NEW_STRUCT_PROTO(menuex_item);
 43 __NEW_STRUCT_PROTO(control);
 44 __NEW_STRUCT_PROTO(icon);
 45 __NEW_STRUCT_PROTO(cursor);
 46 __NEW_STRUCT_PROTO(versioninfo);
 47 __NEW_STRUCT_PROTO(ver_value);
 48 __NEW_STRUCT_PROTO(ver_block);
 49 __NEW_STRUCT_PROTO(stt_entry);
 50 __NEW_STRUCT_PROTO(accelerator);
 51 __NEW_STRUCT_PROTO(event);
 52 __NEW_STRUCT_PROTO(raw_data);
 53 __NEW_STRUCT_PROTO(lvc);
 54 __NEW_STRUCT_PROTO(res_count);
 55 __NEW_STRUCT_PROTO(string);
 56 __NEW_STRUCT_PROTO(toolbar_item);
 57 __NEW_STRUCT_PROTO(ani_any);
 58 
 59 resource_t *new_resource(enum res_e t, void *res, int memopt, language_t *lan);
 60 version_t *new_version(DWORD v);
 61 characts_t *new_characts(DWORD c);
 62 language_t *new_language(int id, int sub);
 63 language_t *dup_language(language_t *l);
 64 version_t *dup_version(version_t *v);
 65 characts_t *dup_characts(characts_t *c);
 66 html_t *new_html(raw_data_t *rd, int *memopt);
 67 rcdata_t *new_rcdata(raw_data_t *rd, int *memopt);
 68 font_id_t *new_font_id(int size, string_t *face, int weight, int italic);
 69 user_t *new_user(name_id_t *type, raw_data_t *rd, int *memopt);
 70 font_t *new_font(raw_data_t *rd, int *memopt);
 71 fontdir_t *new_fontdir(raw_data_t *rd, int *memopt);
 72 icon_group_t *new_icon_group(raw_data_t *rd, int *memopt);
 73 cursor_group_t *new_cursor_group(raw_data_t *rd, int *memopt);
 74 ani_curico_t *new_ani_curico(enum res_e type, raw_data_t *rd, int *memopt);
 75 bitmap_t *new_bitmap(raw_data_t *rd, int *memopt);
 76 ver_words_t *new_ver_words(int i);
 77 ver_words_t *add_ver_words(ver_words_t *w, int i);
 78 messagetable_t *new_messagetable(raw_data_t *rd, int *memopt);
 79 dlginit_t *new_dlginit(raw_data_t *rd, int *memopt);
 80 void copy_raw_data(raw_data_t *dst, raw_data_t *src, unsigned int offs, int len);
 81 int *new_int(int i);
 82 stringtable_t *new_stringtable(lvc_t *lvc);
 83 toolbar_t *new_toolbar(int button_width, int button_Height, toolbar_item_t *items, int nitems);
 84 style_pair_t *new_style_pair(style_t *style, style_t *exstyle);
 85 style_t *new_style(DWORD or_mask, DWORD and_mask);
 86 
 87 #endif
 88 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.