#include <stdlib.h>
#include "m_pd.h"
#include "s_stuff.h"
#include "g_canvas.h"
#include <stdio.h>
#include <errno.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef _WIN32
#include <io.h>
#endif
#include <string.h>
#include <stdarg.h>
#include "m_private_utils.h"
struct _binbuf
{ … };
t_binbuf *binbuf_new(void)
{ … }
void binbuf_free(t_binbuf *x)
{ … }
t_binbuf *binbuf_duplicate(const t_binbuf *y)
{ … }
void binbuf_clear(t_binbuf *x)
{ … }
void binbuf_text(t_binbuf *x, const char *text, size_t size)
{ … }
void binbuf_gettext(const t_binbuf *x, char **bufp, int *lengthp)
{ … }
void binbuf_add(t_binbuf *x, int argc, const t_atom *argv)
{ … }
#define MAXADDMESSV …
void binbuf_addv(t_binbuf *x, const char *fmt, ...)
{ … }
void binbuf_addbinbuf(t_binbuf *x, const t_binbuf *y)
{ … }
void binbuf_addsemi(t_binbuf *x)
{ … }
void binbuf_restore(t_binbuf *x, int argc, const t_atom *argv)
{ … }
void binbuf_print(const t_binbuf *x)
{ … }
int binbuf_getnatom(const t_binbuf *x)
{ … }
t_atom *binbuf_getvec(const t_binbuf *x)
{ … }
int binbuf_resize(t_binbuf *x, int newsize)
{ … }
int canvas_getdollarzero(void);
static int binbuf_expanddollsym(const char *s, char *buf, t_atom *dollar0,
int ac, const t_atom *av, int tonew)
{ … }
t_symbol *binbuf_realizedollsym(t_symbol *s, int ac, const t_atom *av,
int tonew)
{ … }
#define SMALLMSG …
#define HUGEMSG …
void binbuf_eval(const t_binbuf *x, t_pd *target, int argc, const t_atom *argv)
{ … }
int binbuf_read(t_binbuf *b, const char *filename, const char *dirname, int crflag)
{ … }
int binbuf_read_via_canvas(t_binbuf *b, const char *filename,
const t_canvas *canvas, int crflag)
{ … }
int binbuf_read_via_path(t_binbuf *b, const char *filename, const char *dirname,
int crflag)
{ … }
#define WBUFSIZE …
static t_binbuf *binbuf_convert(const t_binbuf *oldb, int maxtopd);
int binbuf_write(const t_binbuf *x, const char *filename, const char *dir, int crflag)
{ … }
#define MAXSTACK …
#define ISSYMBOL(a, b) …
static t_binbuf *binbuf_convert(const t_binbuf *oldb, int maxtopd)
{ … }
void binbuf_evalfile(t_symbol *name, t_symbol *dir)
{ … }
void binbuf_savetext(const t_binbuf *bfrom, t_binbuf *bto)
{ … }