#include "m_pd.h"
#include "g_canvas.h"
#include <string.h>
#include <errno.h>
static t_class *savestate_class;
t_savestate;
static void *savestate_new(void)
{ … }
static void savestate_doit(t_savestate *x, t_binbuf *b)
{ … }
static void savestate_list(t_savestate *x, t_symbol *s, int argc, t_atom *argv)
{ … }
static void savestate_setup(void)
{ … }
void canvas_statesavers_doit(t_glist *x, t_binbuf *b)
{ … }
void canvas_saved(t_glist *x, t_symbol *s, int argc, t_atom *argv)
{ … }
static t_class *declare_class;
void canvas_savedeclarationsto(t_canvas *x, t_binbuf *b);
static int canvas_scanbinbuf(int natoms, t_atom *vec, int *p_indexout,
int *p_next)
{ … }
int canvas_readscalar(t_glist *x, int natoms, t_atom *vec,
int *p_nextmsg, int selectit);
static void canvas_readerror(int natoms, t_atom *vec, int message,
int nline, char *s)
{ … }
static void glist_readatoms(t_glist *x, int natoms, t_atom *vec,
int *p_nextmsg, t_symbol *templatesym, t_word *w, int argc, t_atom *argv)
{ … }
int canvas_readscalar(t_glist *x, int natoms, t_atom *vec,
int *p_nextmsg, int selectit)
{ … }
void glist_readfrombinbuf(t_glist *x, const t_binbuf *b, const char *filename, int selectem)
{ … }
static void glist_doread(t_glist *x, t_symbol *filename, t_symbol *format,
int clearme)
{ … }
void glist_read(t_glist *x, t_symbol *filename, t_symbol *format)
{ … }
void glist_mergefile(t_glist *x, t_symbol *filename, t_symbol *format)
{ … }
void canvas_dataproperties(t_canvas *x, t_scalar *sc, t_binbuf *b)
{ … }
void canvas_doaddtemplate(t_symbol *templatesym,
int *p_ntemplates, t_symbol ***p_templatevec)
{ … }
static void glist_writelist(t_gobj *y, t_binbuf *b);
void binbuf_savetext(t_binbuf *bfrom, t_binbuf *bto);
void canvas_writescalar(t_symbol *templatesym, t_word *w, t_binbuf *b,
int amarrayelement)
{ … }
static void glist_writelist(t_gobj *y, t_binbuf *b)
{ … }
static void canvas_addtemplatesforlist(t_gobj *y,
int *p_ntemplates, t_symbol ***p_templatevec);
static void canvas_addtemplatesforscalar(t_symbol *templatesym,
t_word *w, int *p_ntemplates, t_symbol ***p_templatevec)
{ … }
static void canvas_addtemplatesforlist(t_gobj *y,
int *p_ntemplates, t_symbol ***p_templatevec)
{ … }
t_binbuf *glist_writetobinbuf(t_glist *x, int wholething)
{ … }
static void glist_write(t_glist *x, t_symbol *filename, t_symbol *format)
{ … }
t_zoomfn;
static void canvas_saveto(t_canvas *x, t_binbuf *b)
{ … }
static void canvas_collecttemplatesfor(t_canvas *x, int *ntemplatesp,
t_symbol ***templatevecp, int wholething)
{ … }
static void canvas_savetemplatesto(t_canvas *x, t_binbuf *b, int wholething)
{ … }
void canvas_reload(t_symbol *name, t_symbol *dir, t_glist *except);
static void canvas_savetofile(t_canvas *x, t_symbol *filename, t_symbol *dir,
float fdestroy)
{ … }
static void canvas_menusaveas(t_canvas *x, t_float fdestroy)
{ … }
static void canvas_menusave(t_canvas *x, t_float fdestroy)
{ … }
void g_readwrite_setup(void)
{ … }
void canvas_readwrite_for_class(t_class *c)
{ … }