aboutsummaryrefslogtreecommitdiff
path: root/libtcc.h
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2013-01-14 17:34:07 +0100
committerThomas Preud'homme <robotux@celest.fr>2013-01-14 17:34:07 +0100
commit8c56b0cf900cf244029df148f18fda5c11e27344 (patch)
tree3b6e5f6e450ce88afe2c06c3bb7cd1ee076d2194 /libtcc.h
parent60a3ff5f2cdc1248cce683ba11db420bc2cb2311 (diff)
downloadtinycc-8c56b0cf900cf244029df148f18fda5c11e27344.tar.gz
tinycc-8c56b0cf900cf244029df148f18fda5c11e27344.tar.bz2
Revert "Added what I call virtual io to tinycc this way we can make a monolitic executable or library that contains all needed to compile programs, truly tinycc portable."
This reverts commit 59e18aee0e509a3ca75dbe6f909e18c1d17893d1. tcc is being stabilized now in order to do a new release soon. Therefore, such a change is not appropriate now.
Diffstat (limited to 'libtcc.h')
-rw-r--r--libtcc.h29
1 files changed, 0 insertions, 29 deletions
diff --git a/libtcc.h b/libtcc.h
index 791cd29..278dca3 100644
--- a/libtcc.h
+++ b/libtcc.h
@@ -13,28 +13,6 @@ struct TCCState;
typedef struct TCCState TCCState;
-struct vio_module_t;
-
-typedef struct vio_fd {
- int fd;
- void *vio_udata;
- struct vio_module_t *vio_module;
-} vio_fd;
-
-#define CALL_VIO_OPEN_FIRST 0x01
-#define CALL_VIO_OPEN_LAST 0x02
-
-typedef struct vio_module_t {
- void *user_data;
- struct TCCState *tcc_state;
- int call_vio_open_flags; /*CALL_VIO_OPEN_FIRST, CALL_VIO_OPEN_LAST, one or both */
- int (*vio_open)(vio_fd *fd, const char *fn, int oflag) ;
- off_t (*vio_lseek)(vio_fd fd, off_t offset, int whence);
- size_t (*vio_read)(vio_fd fd, void *buf, size_t bytes);
- int (*vio_close)(vio_fd *fd);
-} vio_module_t;
-
-
/* create a new TCC compilation context */
LIBTCCAPI TCCState *tcc_new(void);
@@ -54,9 +32,6 @@ LIBTCCAPI int tcc_set_warning(TCCState *s, const char *warning_name, int value);
/* set linker option */
LIBTCCAPI const char * tcc_set_linker(TCCState *s, char *option, int multi);
-/* set virtual io module */
-LIBTCCAPI void tcc_set_vio_module(TCCState *s, vio_module_t *vio_module);
-
/*****************************/
/* preprocessor */
@@ -83,10 +58,6 @@ LIBTCCAPI int tcc_add_file(TCCState *s, const char *filename);
error. */
LIBTCCAPI int tcc_compile_string(TCCState *s, const char *buf);
-/* compile a string containing a C source. Return non zero if
- error. Can associate a name with string for errors. */
-int tcc_compile_named_string(TCCState *s, const char *buf, const char *strname);
-
/*****************************/
/* linking commands */