Commit 17cb83e7 authored by thomas's avatar thomas
Browse files

no message


git-svn-id: https://svn.grrrr.org/ext/trunk@196 4d9ac71a-51e6-0310-8455-cad1006bcd31
parent 0d8d0653
No preview for this file type
......@@ -303,7 +303,10 @@ public:
// get symbol string
static const char *GetString(const t_symbol *s) { return s->s_name; }
static const char *GetAString(const t_symbol *s) { return s?s->s_name:""; }
static void *GetThing(t_symbol *s) { return s->s_thing; }
static void SetThing(t_symbol *s,void *dt) { s->s_thing = (t_thing)dt; }
// --- argument list stuff ----------------------------------------
static bool IsFloat(const t_atom &a) { return a.a_type == A_FLOAT; }
......
......@@ -13,7 +13,7 @@ WARRANTIES, see the file, "license.txt," in this distribution.
#ifdef MAXMSP
#include "flbase.h"
#include <string.h>
//#include <string.h>
#include <stdarg.h>
class libfunction {
......@@ -41,7 +41,7 @@ void libfunction::add(libfunction *n) { if(nxt) nxt->add(n); else nxt = n; }
void flext_obj::libfun_add(const char *name,t_newmethod newfun,void (*freefun)(flext_hdr *),int argtp1,...)
{
for(int ix = 0; ; ++ix) {
const char *c = extractname(name,ix);
const char *c = fl_extract(name,ix);
if(!c || !*c) break;
alias(const_cast<char *>(c)); // make object name available to Max
......
......@@ -36,7 +36,7 @@ const char *fl_extract(const char *name,int ix)
char *t;
for(t = tmp; *n && !isspace(*n); ++t,++n) *t = *n;
*t = 0;
return *tmp?strdup(tmp):NULL;
return *tmp?fl_strdup(tmp):NULL;
}
else {
while(*n && !isspace(*n)) ++n;
......
......@@ -64,6 +64,7 @@ typedef t_gpointer *t_ptrtype;
typedef t_float t_flint;
typedef t_symbol *t_symptr;
typedef t_class **t_thing;
typedef t_clock t_qelem;
......@@ -91,6 +92,7 @@ typedef t_patcher t_canvas;
typedef t_int t_flint;
typedef t_symbol *t_symptr;
typedef t_object *t_thing;
typedef qelem t_qelem;
......
No preview for this file type
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment