#include "config.h"
#include "wine/port.h"
#include "wine/wpp.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <ctype.h>
#include "windef.h"
#include "winbase.h"
#include "widl.h"
#include "utils.h"
#include "parser.h"
#include "header.h"
#include "typelib.h"
#include "widltypes.h"
#include "typelib_struct.h"
#include "typetree.h"
Go to the source code of this file.
|
static int | kw_cmp_func (const void *s1, const void *s2) |
|
static unsigned short | builtin_vt (const type_t *t) |
|
static int | match (const char *n, const char *m) |
|
unsigned short | get_type_vt (type_t *t) |
|
static void | tlb_read (int fd, void *buf, int count) |
|
static void | tlb_lseek (int fd, off_t offset) |
|
static void | msft_read_guid (int fd, MSFT_SegDir *segdir, int offset, GUID *guid) |
|
static void | read_msft_importlib (importlib_t *importlib, int fd) |
|
static int | open_typelib (const char *name) |
|
static void | read_importlib (importlib_t *importlib) |
|
void | add_importlib (const char *name, typelib_t *typelib) |
|
◆ KWP
◆ NTYPES
◆ add_importlib()
Definition at line 391 of file typelib.c.
393{
395
397
400 return;
401
403
405 memset( importlib, 0,
sizeof(*importlib) );
407
410}
int strcmp(const char *String1, const char *String2)
char * xstrdup(const char *s)
static void list_add_head(struct list_entry *head, struct list_entry *entry)
#define LIST_FOR_EACH_ENTRY(elem, list, type, field)
◆ builtin_vt()
Definition at line 82 of file typelib.c.
83{
84 const char *kw =
t->name;
88#ifdef KW_BSEARCH
90#else
91 {
96 break;
97 }
98 }
99#endif
100 if (kwp) {
102 }
104 {
108 else
111 {
113 {
116 default: break;
117 }
118 }
119 }
120 return 0;
121}
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
static enum type_type type_get_type(const type_t *type)
static enum type_basic_type type_basic_get_type(const type_t *type)
static type_t * type_array_get_element(const type_t *type)
static type_t * type_pointer_get_ref(const type_t *type)
Referenced by get_type_vt().
◆ get_type_vt()
Definition at line 129 of file typelib.c.
130{
132
133 chat(
"get_type_vt: %p type->name %s\n",
t,
t->name);
137 }
138
141
151 else
158 else
163 else
170 else
176 else
180 {
183 else
185 }
186 else
187 {
190 else
192 }
198 error(
"handles can't be used in typelibs\n");
199 }
200 break;
201
204
207 {
211 }
212 else
214
216 if(
match(
t->name,
"IUnknown"))
218 if(
match(
t->name,
"IDispatch"))
221
229
232
234
236 break;
237
239 error(
"get_type_vt: functions not supported\n");
240 break;
241
243 error(
"get_type_vt: bitfields not supported\n");
244 break;
245 }
246 return 0;
247}
static REFPROPVARIANT PROPVAR_CHANGE_FLAGS VARTYPE vt
static int type_array_is_decl_as_ptr(const type_t *type)
static int type_basic_get_sign(const type_t *type)
static int type_is_alias(const type_t *type)
unsigned int pointer_size
@ TYPE_ENCAPSULATED_UNION
@ TYPE_BASIC_ERROR_STATUS_T
Referenced by add_typedef_typeinfo(), encode_type(), encode_var(), get_element_size(), write_args(), write_default_value(), and write_var_desc().
◆ kw_cmp_func()
◆ match()
◆ msft_read_guid()
◆ open_typelib()
Definition at line 338 of file typelib.c.
339{
342
346
350}
char * wpp_find_include(const char *name, const char *parent_name)
Referenced by read_importlib().
◆ read_importlib()
Definition at line 352 of file typelib.c.
353{
356
358
359
369 }
370 }
371
374
376
380 break;
381 default:
382 error(
"Wrong or unsupported typelib magic %x\n",
magic);
383 };
384
386}
ACPI_SIZE strlen(const char *String)
char * strcpy(char *DstString, const char *SrcString)
#define memcpy(s1, s2, n)
_Check_return_ _CRTIMP _CONST_RETURN char *__cdecl strrchr(_In_z_ const char *_Str, _In_ int _Ch)
Referenced by add_importlib().
◆ read_msft_importlib()
Definition at line 282 of file typelib.c.
283{
286 int *typeinfo_offs;
288
290
293
295
299
301
304
309
313
318
319 if(
base.posguid != -1) {
322 }
324
327
329
333 }
334
336}
#define MSFT_IMPINFO_OFFSET_IS_GUID
Referenced by read_importlib().
◆ tlb_lseek()
◆ tlb_read()
◆ oatypes