rizin/subprojects/rzspp/rz_api.h
Riccardo Schirone 6f40dfe493
Move remaining things from shlr/ to meson subprojects (#2126)
* Move binrz meson directives to binrz/ dir

* Move rizin-shell-parser to a subproject

* Move bochs to a meson subproject

* Move rzqnx to meson subproject

* Move winkd to a meson subproject

* Move rzar to a meson subproject

* Move rzw32dbg_wrap to a meson subproject

* Move ptrace-wrap to a meson subproject

* Move rzgdb to a meson subproject

* Rename w32dbg_wrap to rzw32dbg_wrap

* Update CODEOWNERS

* Remove old references to shlr

* Move shlr/heap stuff in core and remove shlr/arm

* Move spp to a meson subproject

* Remove last references to shlr

* Remove use_webui option

* Move include files directives to librz/include/meson.build

* Move librz meson directives into librz/meson.build

* Handle d/ directories inside the specific module meson.build

* Move plugins listing to specific module meson.build

* Move rzheap to its own subproject

* Fix js linter and licenses

* Use meson.override_dependency for all rz_ modules
2021-12-22 09:20:39 +08:00

33 lines
814 B
C

#ifndef S_STRBUF_H
#define S_STRBUF_H
#ifndef RZ_FREE
#define RZ_FREE(x) { free(x); x = NULL; }
#endif
#ifndef RZ_NEW0
#define RZ_NEW0(x) (x*)calloc(1,sizeof(x))
#endif
#ifdef _MSC_VER
void out_printf(Output *out, char *str, ...);
#else
void out_printf(Output *out, char *str, ...) __attribute__ ((format (printf, 2, 3)));
#endif
#if USE_R2
#include <rz_util.h>
#else
SStrBuf *rz_strbuf_new(const char *s);
bool rz_strbuf_set(SStrBuf *sb, const char *s);
bool rz_strbuf_append(SStrBuf *sb, const char *s);
char *rz_strbuf_get(SStrBuf *sb);
char *rz_strbuf_drain(SStrBuf *sb);
void rz_strbuf_free(SStrBuf *sb);
void rz_strbuf_fini(SStrBuf *sb);
void rz_strbuf_init(SStrBuf *sb);
int rz_sys_setenv(const char *key, const char *value);
char *rz_sys_getenv(const char *key);
int rz_sys_getpid(void);
#endif
#endif