aboutsummaryrefslogtreecommitdiff
path: root/pd/src/g_readwrite.c
diff options
context:
space:
mode:
authorGuenter Geiger <ggeiger@users.sourceforge.net>2003-05-09 16:04:00 +0000
committerGuenter Geiger <ggeiger@users.sourceforge.net>2003-05-09 16:04:00 +0000
commit9c0e19a3be2288db79e2502e5fa450c3e20a668d (patch)
treeca97ce615e037a533304fc4660dcf372ca3b9cd6 /pd/src/g_readwrite.c
parentef50dd62804d54af7da18d8bd8413c0dccd729b8 (diff)
This commit was generated by cvs2svn to compensate for changes in r610,
which included commits to RCS files with non-trunk default branches. svn path=/trunk/; revision=611
Diffstat (limited to 'pd/src/g_readwrite.c')
-rw-r--r--pd/src/g_readwrite.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pd/src/g_readwrite.c b/pd/src/g_readwrite.c
index 40755bb0..ddf11670 100644
--- a/pd/src/g_readwrite.c
+++ b/pd/src/g_readwrite.c
@@ -10,7 +10,7 @@ scalars into a file and reload them; also, support is included here for
#include <stdlib.h>
#include <stdio.h>
-#include "m_imp.h"
+#include "m_pd.h"
#include "g_canvas.h"
#include <string.h>
@@ -662,6 +662,8 @@ static void canvas_savetemplatesto(t_canvas *x, t_binbuf *b, int wholething)
}
}
+void canvas_reload(t_symbol *name, t_symbol *dir, t_gobj *except);
+
/* save a "root" canvas to a file; cf. canvas_saveto() which saves the
body (and which is called recursively.) */
static void canvas_savetofile(t_canvas *x, t_symbol *filename, t_symbol *dir)
@@ -677,9 +679,7 @@ static void canvas_savetofile(t_canvas *x, t_symbol *filename, t_symbol *dir)
canvas_rename(x, filename, dir);
post("saved to: %s/%s", dir->s_name, filename->s_name);
canvas_dirty(x, 0);
-#if 0 /* not yet written */
- canvas_reload(filename, dir);
-#endif
+ canvas_reload(filename, dir, &x->gl_gobj);
}
binbuf_free(b);
}