#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.
__WINE_SERVER_LIST_INLINE void list_add_head(struct list *list, struct list *elem)
static ITypeLib * typelib
#define LIST_FOR_EACH_ENTRY(elem, list, type, field)
int strcmp(const char *String1, const char *String2)
char * xstrdup(const char *s)
◆ builtin_vt()
Definition at line 82 of file typelib.c.
84 const char *kw =
t->name;
static type_t * type_array_get_element(const type_t *type)
static enum type_basic_type type_basic_get_type(const type_t *type)
static type_t * type_pointer_get_ref(const type_t *type)
static enum type_type type_get_type(const type_t *type)
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
Referenced by get_type_vt().
◆ get_type_vt()
Definition at line 129 of file typelib.c.
133 chat(
"get_type_vt: %p type->name %s\n",
t,
t->name);
198 error(
"handles can't be used in typelibs\n");
216 if(
match(
t->name,
"IUnknown"))
218 if(
match(
t->name,
"IDispatch"))
239 error(
"get_type_vt: functions not supported\n");
243 error(
"get_type_vt: bitfields not supported\n");
static type_t * type_array_get_element(const type_t *type)
static enum type_basic_type type_basic_get_type(const type_t *type)
static int type_is_alias(const type_t *type)
static enum type_type type_get_type(const type_t *type)
unsigned int pointer_size
static int type_basic_get_sign(const type_t *type)
static int type_array_is_decl_as_ptr(const type_t *type)
Referenced by add_typedef_typeinfo(), encode_type(), encode_var(), get_element_size(), write_args(), write_default_value(), and write_var_desc().
◆ kw_cmp_func()
Definition at line 77 of file typelib.c.
int strcmp(const char *String1, const char *String2)
Referenced by builtin_vt().
◆ match()
◆ msft_read_guid()
◆ open_typelib()
Definition at line 338 of file typelib.c.
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.
382 error(
"Wrong or unsupported typelib magic %x\n",
magic);
ACPI_SIZE strlen(const char *String)
_Check_return_ _CRTIMP _CONST_RETURN char *__cdecl strrchr(_In_z_ const char *_Str, _In_ int _Ch)
#define memcpy(s1, s2, n)
char * strcpy(char *DstString, const char *SrcString)
int strcmp(const char *String1, const char *String2)
Referenced by add_importlib().
◆ read_msft_importlib()
Definition at line 282 of file typelib.c.
319 if(
base.posguid != -1) {
#define MSFT_IMPINFO_OFFSET_IS_GUID
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
Referenced by read_importlib().
◆ tlb_lseek()
◆ tlb_read()
Definition at line 264 of file typelib.c.
267 error(
"error while reading importlib.\n");
GLuint GLuint GLsizei count
GLenum GLuint GLenum GLsizei const GLchar * buf
_CRTIMP int __cdecl read(_In_ int _FileHandle, _Out_writes_bytes_(_MaxCharCount) void *_DstBuf, _In_ unsigned int _MaxCharCount)
Referenced by msft_read_guid(), read_importlib(), and read_msft_importlib().
◆ oatypes