diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2005-06-02 18:25:00 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2005-06-02 18:25:00 +0000 |
commit | 0c9b89b1018eb7760708ee5b080cd96846861328 (patch) | |
tree | f43a2b20292bba90931fe84e67aca8fb0013a984 /src/iemlib2/unsymbol.c | |
parent | d56ec9d039c904e9230137254ff2fe281320eed9 (diff) |
updated to release-1.16
svn path=/trunk/externals/iemlib/; revision=3102
Diffstat (limited to 'src/iemlib2/unsymbol.c')
-rw-r--r-- | src/iemlib2/unsymbol.c | 97 |
1 files changed, 48 insertions, 49 deletions
diff --git a/src/iemlib2/unsymbol.c b/src/iemlib2/unsymbol.c index b617836..fdf51dd 100644 --- a/src/iemlib2/unsymbol.c +++ b/src/iemlib2/unsymbol.c @@ -1,49 +1,48 @@ -/* Copyright (c) 1997-2003 Miller Puckette. -* For information on usage and redistribution, and for a DISCLAIMER OF ALL -* WARRANTIES, see the file, "LICENSE.txt," in this distribution. - -iemlib2 written by Thomas Musil (c) IEM KUG Graz Austria 2000 - 2003 */ - -#ifdef NT -#pragma warning( disable : 4244 ) -#pragma warning( disable : 4305 ) -#endif - -#include "m_pd.h" -#include "iemlib.h" -#include <stdlib.h> -#include <string.h> -#include <stdio.h> -#include <math.h> - -/* -------------------------- unsymbol ------------------------------ */ - -static t_class *unsymbol_class; - -typedef struct _unsymbol -{ - t_object x_obj; - t_atom x_at; -} t_unsymbol; - -static void unsymbol_symbol(t_unsymbol *x, t_symbol *s) -{ - outlet_anything(x->x_obj.ob_outlet, s, 0, &(x->x_at)); -} - -static void *unsymbol_new(void) -{ - t_unsymbol *x = (t_unsymbol *)pd_new(unsymbol_class); - - outlet_new(&x->x_obj, &s_list); - return (x); -} - -void unsymbol_setup(void) -{ - unsymbol_class = class_new(gensym("unsymbol"), (t_newmethod)unsymbol_new, - 0, sizeof(t_unsymbol), 0, 0); - class_addcreator((t_newmethod)unsymbol_new, gensym("unsym"), 0); - class_addsymbol(unsymbol_class, unsymbol_symbol); - class_sethelpsymbol(unsymbol_class, gensym("iemhelp/help-unsymbol")); -} +/* For information on usage and redistribution, and for a DISCLAIMER OF ALL
+* WARRANTIES, see the file, "LICENSE.txt," in this distribution.
+
+iemlib2 written by Thomas Musil, Copyright (c) IEM KUG Graz Austria 2000 - 2005 */
+
+#ifdef NT
+#pragma warning( disable : 4244 )
+#pragma warning( disable : 4305 )
+#endif
+
+#include "m_pd.h"
+#include "iemlib.h"
+#include <stdlib.h>
+#include <string.h>
+#include <stdio.h>
+
+/* ----------- unsymbol ------------------------- */
+/* -- converts a symbol to an anything message -- */
+
+static t_class *unsymbol_class;
+
+typedef struct _unsymbol
+{
+ t_object x_obj;
+ t_atom x_at;
+} t_unsymbol;
+
+static void unsymbol_symbol(t_unsymbol *x, t_symbol *s)
+{
+ outlet_anything(x->x_obj.ob_outlet, s, 0, &(x->x_at));
+}
+
+static void *unsymbol_new(void)
+{
+ t_unsymbol *x = (t_unsymbol *)pd_new(unsymbol_class);
+
+ outlet_new(&x->x_obj, &s_list);
+ return (x);
+}
+
+void unsymbol_setup(void)
+{
+ unsymbol_class = class_new(gensym("unsymbol"), (t_newmethod)unsymbol_new,
+ 0, sizeof(t_unsymbol), 0, 0);
+ class_addcreator((t_newmethod)unsymbol_new, gensym("unsym"), 0);
+ class_addsymbol(unsymbol_class, unsymbol_symbol);
+ class_sethelpsymbol(unsymbol_class, gensym("iemhelp/help-unsymbol"));
+}
|