diff options
| author | grischka <grischka> | 2010-01-14 20:55:51 +0100 |
|---|---|---|
| committer | grischka <grischka> | 2010-01-14 20:59:42 +0100 |
| commit | 2341ee5142c184e06964f66696ebf88931953e7d (patch) | |
| tree | 6f858fd311ae47ec4508301e6ebf1df33bd42c8a /tcc.h | |
| parent | bdb9387a7494d7d5e299cb13bcc94f00215976dd (diff) | |
| download | tinycc-2341ee5142c184e06964f66696ebf88931953e7d.tar.gz tinycc-2341ee5142c184e06964f66696ebf88931953e7d.tar.bz2 | |
tccpe: improve dllimport/export and use for tcc_add_symbol
Diffstat (limited to 'tcc.h')
| -rw-r--r-- | tcc.h | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -261,12 +261,13 @@ typedef struct DLLReference { /* GNUC attribute definition */ typedef struct AttributeDef { unsigned - packed : 1, - aligned : 5, /* alignement (0..16) */ func_call : 3, /* calling convention (0..5), see below */ + aligned : 5, /* alignement (0..16) */ + packed : 1, func_export : 1, func_import : 1, - func_args : 8; + func_args : 5, + fill : 16; struct Section *section; } AttributeDef; @@ -1176,7 +1177,8 @@ ST_FUNC void asm_clobber(uint8_t *clobber_regs, const char *str); ST_FUNC int pe_load_file(struct TCCState *s1, const char *filename, int fd); ST_FUNC int pe_add_dll(struct TCCState *s, const char *libraryname); ST_FUNC int pe_output_file(TCCState * s1, const char *filename); -ST_FUNC int pe_dllimport(int r, SValue *sv, void (*fn)(int r, SValue *sv)); +ST_FUNC int pe_putimport(TCCState *s1, int dllindex, const char *name, const void *value); +ST_FUNC SValue *pe_getimport(SValue *sv, SValue *v2); /* tiny_impdef.c */ ST_FUNC char *get_export_names(FILE *fp); #ifdef TCC_TARGET_X86_64 |
