Re: [Tinycc-devel] Added virtual io to tinycc

2013-01-12 Thread grischka
Domingo Alvarez Duarte wrote: Let's see if I can explain it better. The modifications I did was replace: "fd" -> "fd or fd->fd depending on the context" [...] Indeed switching tinycc to cope with "struct fd" was a bad decision to begin with. Under any circumstances I'd recommend to switch you

Re: [Tinycc-devel] Added virtual io to tinycc

2013-01-12 Thread Domingo Alvarez Duarte
Let's see if I can explain it better. The modifications I did was replace: "fd" -> "fd or fd->fd depending on the context" "fd = -1;" -> void vio_initialize(vio_fd *fd); "fd = open(file_name, mode)" -> int vio_open(struct TCCState *s, vio_fd *fd, const char *fn, int oflag); "pos = lseek(fd, offset

Re: [Tinycc-devel] Added virtual io to tinycc

2013-01-12 Thread grischka
Domingo Alvarez Duarte wrote: 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. [...] I hope this will improve the utility of tinycc. It's on mob:repository. Thanks in advance for