summaryrefslogtreecommitdiff
path: root/util.h
blob: 09bedd645c57579c6de03365c298e125033ff729 (plain)
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
#ifndef _UTIL_H
#define _UTIL_H

#undef HAVE_STRERROR
#undef SIZEOF_LONG

#include "call_scilab.h"
#include "api_scilab.h"
#include <api_common.h>
#define BUFSIZE 1024

#define TLIST_NAME	"__tlist_name"

/*
 * This has to be defined when a numpy extension
 * is split accross multiple files
 */
#define PY_ARRAY_UNIQUE_SYMBOL UNIQUE

typedef double complex[2] ;

int read_sci_type(char *name) ;
int is_real(char *name) ;

void sci_debug(const char *format, ...) ;
void sci_error(const char *format, ...) ;

PyObject* create_list(PyObject *obj) ;
char *get_SCI(char*) ;
extern const int sci_max_len ;

#endif