[BACK]Return to mlo.h CVS log [TXT][DIR] Up to [local] / OpenXM / src / ox_math

File: [local] / OpenXM / src / ox_math / mlo.h (download)

Revision 1.9, Sun Mar 30 08:07:10 2003 UTC (21 years, 1 month ago) by ohara
Branch: MAIN
CVS Tags: R_1_3_1-2, RELEASE_1_3_1_13b, RELEASE_1_2_3_12, RELEASE_1_2_3, RELEASE_1_2_2_KNOPPIX_b, RELEASE_1_2_2_KNOPPIX, RELEASE_1_2_2, KNOPPIX_2006, HEAD, DEB_REL_1_2_3-9
Changes since 1.8: +1 -3 lines

update for gmp_fake.c

/* $OpenXM: OpenXM/src/ox_math/mlo.h,v 1.9 2003/03/30 08:07:10 ohara Exp $ */
#ifndef _MLO_H_

#define _MLO_H_

#include <ox_toolkit.h>

#define RESERVE_INTERRUPTION 1
#define INTERRUPTED          2
#define RESERVE_ABORTION     4
#define ABORTED              8

/* definitions of Mathlink Local Objects. */
typedef struct {
    int tag;
    int length;
    cell head[1];
    char *function;
} mlo_function;

typedef cmo mlo;
typedef cmo_string mlo_string;
typedef cmo_zz mlo_zz;

mlo_function *new_mlo_function(char *function);

cmo *receive_mlo();
mlo *receive_mlo_zz();
mlo *receive_mlo_string();
cmo *receive_mlo_function();
cmo *convert_mlo_to_cmo(mlo *m);
cmo *receive_mlo_function_newer();
cmo *receive_mlo_symbol();
mlo *receive_mlo_error();
mlo *receive_mlo_real();

int send_mlo(cmo *m);

int ml_abort();
int ml_interrupt();
int ml_next_packet();
int ml_new_packet();
int ml_read_packet();
int ml_init();
int ml_exit();
int ml_flush();
int ml_select();
int ml_evaluateStringByLocalParser(char *str);
int ml_executeFunction(char *function, int argc, cmo *argv[]);
mlo *ml_return();

/* state management for the OpenXM robust interruption */
unsigned ml_state_set(unsigned fl);
unsigned ml_state_clear(unsigned fl);
unsigned ml_state(unsigned fl);
void     ml_state_clear_all();
#endif