wok-current diff linld/stuff/src/CRTL.H @ rev 20751
Add libsbc
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 12 12:12:36 2019 +0100 (2019-02-12) |
parents | ab907169f156 |
children | 378b0ba41272 |
line diff
1.1 --- a/linld/stuff/src/CRTL.H Sat Jan 05 17:23:23 2019 +0100 1.2 +++ b/linld/stuff/src/CRTL.H Tue Feb 12 12:12:36 2019 +0100 1.3 @@ -21,11 +21,19 @@ 1.4 1.5 void parse_cmdline(); 1.6 extern _fastcall void strcatb(const char* a,const char* b); 1.7 +#ifdef USE_ARGSTR 1.8 +extern _fastcall int argstr(const char *s, const char keywords[], const char **var); 1.9 +extern _fastcall int argnum(char *s, const char keywords[], unsigned long *var); 1.10 +extern _fastcall void set_cmdline(const char *filename); 1.11 +#define strhead(a,b) (strstr(a,b) != (int) a) 1.12 +#else 1.13 extern _fastcall int strhead(const char* a,const char* head); 1.14 +#endif 1.15 extern _fastcall int fileexist(const char* name); 1.16 //extern "C" int open(const char* name, int flags); 1.17 extern _fastcall int open(const char* name); 1.18 extern _fastcall int close(int fd); 1.19 +extern _fastcall int readrm(struct image_himem *m, int sz); 1.20 extern _fastcall int read(int fd, void* data, int sz); 1.21 extern _fastcall long lseekcur(int fd, int whence); 1.22 extern _fastcall int puts(const char* s); 1.23 @@ -42,4 +50,3 @@ 1.24 //extern "C" unsigned long* malloc_bufv_or_die(struct image_himem *m); 1.25 extern _fastcall int malloc_or_die(unsigned size); 1.26 extern _fastcall int malloc_bufv_or_die(struct image_himem *m); 1.27 -extern _fastcall void set_cmdline(const char *filename);