File: cmtcmd.h

package info (click to toggle)
audacity 2.0.6-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 80,076 kB
  • sloc: cpp: 192,859; ansic: 158,072; sh: 34,021; python: 24,248; lisp: 7,495; makefile: 3,667; xml: 573; perl: 31; sed: 16
file content (35 lines) | stat: -rw-r--r-- 933 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/* cmtcmd.h -- header for remote action and variable setting interface */

#define var_symb_type 333
#define fn_symb_type 555
#define vec_symb_type 777

#ifdef AMIGA
struct cmd_msg {
    struct Message msg;
    long symb_type;     /* one of var_, fn_, or vec_symb_type */
    char *symbol_name;
    long the_args[8];   /* args for function call.  If var_symb_type,
               the_args[0] is the new value.  If vec_symb_type,
               the_args[0] is index, the_args[1] is new value. */
};
#endif

typedef struct symb_descr {
    char *symbol_name;
    int symb_type;
    int size;     /* for array bounds checking */
    union {
    int *intptr;
    int (*routine)();
    } ptr;
} symb_descr_node;

int lookup(char *s);
void defvar(char *name, int *addr);
void defvec(char *name, int *addr, int size);
typedef int (*defun_type)();
void defun(char *name, defun_type addr);

#define HASHTYPE symb_descr_node
#include "hash.h"