mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-21 11:11:37 +00:00
[libr] Add bindings for new string functions
And correct str_free's return type.
This commit is contained in:
parent
58ebbb147d
commit
45d23ce521
2 changed files with 8 additions and 2 deletions
|
@ -5,7 +5,10 @@
|
|||
@extern string sprintf (string fmt, ...);
|
||||
@extern string vsprintf (string fmt, @va_list args);
|
||||
@extern string str_new (void);
|
||||
@extern string str_free (string str);
|
||||
@extern void str_free (string str);
|
||||
@extern string str_hold (string str);
|
||||
@extern int str_valid (string str);
|
||||
@extern int str_mutable (string str);
|
||||
@extern string str_copy (string dst, string src);
|
||||
@extern string str_cat (string dst, string src);
|
||||
@extern string str_clear (string str);
|
||||
|
|
|
@ -4,7 +4,10 @@ int (string s) strlen = #0;
|
|||
string (string fmt, ...) sprintf = #0;
|
||||
string vsprintf (string fmt, @va_list args) = #0;
|
||||
string (void) str_new = #0;
|
||||
string (string str) str_free = #0;
|
||||
void (string str) str_free = #0;
|
||||
string str_hold (string str) = #0;
|
||||
int str_valid (string str) = #0;
|
||||
int str_mutable (string str) = #0;
|
||||
string (string dst, string src) str_copy = #0;
|
||||
string (string dst, string src) str_cat = #0;
|
||||
string (string str) str_clear = #0;
|
||||
|
|
Loading…
Reference in a new issue