pure-data/src/x_misc.c

/* Copyright (c) 1997-1999 Miller Puckette.
* For information on usage and redistribution, and for a DISCLAIMER OF ALL
* WARRANTIES, see the file, "LICENSE.txt," in this distribution.  */

/* misc. */

#include "m_pd.h"
#include "s_stuff.h"
#include "g_canvas.h"
#include <string.h>
#include <stdlib.h>
#ifdef _WIN32
#include <wtypes.h>
#include <time.h>
#else
#include <sys/types.h>
#include <sys/time.h>
#include <sys/times.h>
#include <sys/param.h>
#include <unistd.h>
#endif /* _WIN32 */

#if defined (__APPLE__) || defined (__FreeBSD__)
#define CLOCKHZ
#endif
#if defined (__linux__) || defined (__CYGWIN__) || defined (ANDROID) || defined(__EMSCRIPTEN__)
#define CLOCKHZ
#endif
#if defined (__FreeBSD_kernel__) || defined(__GNU__) || defined(__OpenBSD__) \
    || defined(_WIN32)
#include <time.h>
#define CLOCKHZ
#endif

#include "m_private_utils.h"

/* -------------------------- random ------------------------------ */
/* this is strictly homebrew and untested. */

static t_class *random_class;

t_random;


static int makeseed(void)
{}

static void *random_new(t_floatarg f)
{}

static void random_bang(t_random *x)
{}

static void random_seed(t_random *x, t_float f, t_float glob)
{}

static void random_setup(void)
{}


/* -------------------------- loadbang ------------------------------ */
static t_class *loadbang_class;

t_loadbang;

static void *loadbang_new(void)
{}

static void loadbang_loadbang(t_loadbang *x, t_floatarg action)
{}

static void loadbang_setup(void)
{}

/* ------------- namecanvas (delete this later) --------------------- */
static t_class *namecanvas_class;

t_namecanvas;

static void *namecanvas_new(t_symbol *s)
{}

static void namecanvas_free(t_namecanvas *x)
{}

static void namecanvas_setup(void)
{}

/* -------------------------- cputime ------------------------------ */
#ifdef CLOCKHZ

static t_class *cputime_class;

t_cputime;

static void cputime_bang(t_cputime *x)
{}

static void cputime_bang2(t_cputime *x)
{}

static void *cputime_new(void)
{}

static void cputime_setup(void)
{}
#endif /* CLOCKHZ */

/* -------------------------- realtime ------------------------------ */

static t_class *realtime_class;

t_realtime;

static void realtime_bang(t_realtime *x)
{}

static void realtime_bang2(t_realtime *x)
{}

static void *realtime_new(void)
{}

static void realtime_setup(void)
{}

/* ---------- oscparse - parse simple OSC messages ----------------- */

static t_class *oscparse_class;

t_oscparse;

#define ROUNDUPTO4(x)

#define READINT(x)

static t_symbol *grabstring(int argc, t_atom *argv, int *ip, int slash)
{}

static void oscparse_list(t_oscparse *x, t_symbol *s, int argc, t_atom *argv)
{}

static t_oscparse *oscparse_new(t_symbol *s, int argc, t_atom *argv)
{}

void oscparse_setup(void)
{}

/* --------- oscformat - format simple OSC messages -------------- */
static t_class *oscformat_class;

t_oscformat;

static void oscformat_set(t_oscformat *x, t_symbol *s, int argc, t_atom *argv)
{}

static void oscformat_format(t_oscformat *x, t_symbol *s)
{}

#define WRITEINT(msg, i)

static void putstring(t_atom *msg, int *ip, const char *s)
{}

static void oscformat_list(t_oscformat *x, t_symbol *s, int argc, t_atom *argv)
{}

static void oscformat_free(t_oscformat *x)
{}

static void *oscformat_new(t_symbol *s, int argc, t_atom *argv)
{}

void oscformat_setup(void)
{}


/* ---------- fudiparse - parse bytelists to to FUDI messages ----------------- */

static t_class *fudiparse_class;

t_fudiparse;

static void fudiparse_binbufout(t_fudiparse *x, t_binbuf *b)
{}
static void fudiparse_list(t_fudiparse *x, t_symbol*s, int argc, t_atom*argv) {}

static void fudiparse_free(t_fudiparse *x) {}

static void *fudiparse_new(void) {}

void fudiparse_setup(void) {}
/* --------- fudiformat - format Pd (FUDI) messages to bytelists ------------ */

static t_class *fudiformat_class;

t_fudiformat;

static void fudiformat_any(t_fudiformat *x, t_symbol*s, int argc, t_atom*argv) {}

static void fudiformat_free(t_fudiformat *x) {}

static void *fudiformat_new(t_symbol*s) {}

static void fudiformat_setup(void) {}



void x_misc_setup(void)
{}