Adime / redtamarin

Automatically exported from code.google.com/p/redtamarin
Other
0 stars 0 forks source link

implement C.stdio #67

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
stdio.h

Original issue reported on code.google.com by zwetan on 25 Nov 2013 at 4:42

GoogleCodeExporter commented 9 years ago
partially supported

We do not support some extensions to ISO C

Original comment by zwetan on 18 Jan 2014 at 3:13

GoogleCodeExporter commented 9 years ago
stdio locking functions namely flockfile(), ftrylockfile() and funlockfile() 
are not supported because "These functions can be used by a thread to delineate 
a sequence of I/O statements that are executed as a unit.".

By extension we also don't support stdio with explicit client locking which 
implies no support for getc_unlocked(), getchar_unlocked(), putc_unlocked(), 
and putchar_unlocked().

Original comment by zwetan on 18 Jan 2014 at 3:13

GoogleCodeExporter commented 9 years ago
fmemopen() and open_memstream are not supported.

Original comment by zwetan on 18 Jan 2014 at 3:13

GoogleCodeExporter commented 9 years ago
We don't support all print formatted output namely dprintf(), fprintf(), 
printf(), snprintf(), and sprintf(), as well as any functions that convert 
formatted input like fscanf(), scanf(), and sscanf().

Original comment by zwetan on 18 Jan 2014 at 3:14

GoogleCodeExporter commented 9 years ago
We don't support fseeko()/ftello(), use fseek()/ftell() instead (eg. the off_t 
typedef is not that important).

Original comment by zwetan on 18 Jan 2014 at 3:14

GoogleCodeExporter commented 9 years ago
getline() and getdelim() are not supported; it is easy in AS3 to to find 
delimiter or newline char in a string so we don't need native functions for 
that. At best, we could implement in AS3 those function reusing getc()/fgetc().

Original comment by zwetan on 18 Jan 2014 at 3:14

GoogleCodeExporter commented 9 years ago
We don't support command option parsing namely getopt(), optarg, opterr, 
optind, and optopt because our AS3 programs do not have to follow the rules of 
main(int argc, char *argv[ ]), you can access command line arguments as an 
Array and do your own parsing.

Original comment by zwetan on 18 Jan 2014 at 3:15

GoogleCodeExporter commented 9 years ago
renameat() is not supported, use rename() as equivalent function.

setbuf() is not supported, use setvbuf() instead as it got more options.

tempnam() is not supported, use tmpnam() or tmpfile() instead.

Original comment by zwetan on 18 Jan 2014 at 3:15

GoogleCodeExporter commented 9 years ago
need to finnish the implementation and doc

Original comment by zwetan on 18 Jan 2014 at 3:15