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

File: [local] / OpenXM / src / oxc / sm.h (download)

Revision 1.2, Tue Nov 28 04:52:05 2000 UTC (23 years, 6 months ago) by ohara
Branch: MAIN
Changes since 1.1: +2 -1 lines

A mathcap bug fixed.

/* -*- mode: C -*- */
/* $OpenXM: OpenXM/src/oxc/sm.h,v 1.2 2000/11/28 04:52:05 ohara Exp $ */

#ifndef _SM_ERRNO_H_
#define _SM_ERRNO_H_

#include <ox_toolkit.h>

#define ERRNO_SM_ILLEGAL      100
#define ERRNO_SM_LF_NOT_FOUND 101

void extend_stack();
void push(cmo *ob);
cmo *pop();
void pops(int n);
void push_error(int errcode, cmo* pushback);
void sm_popCMO(OXFILE *oxfp);
void sm_pops(OXFILE *oxfp);
void sm_executeFunction(OXFILE *oxfp);
void sm_mathcap(OXFILE *oxfp);
void sm_set_mathcap(OXFILE *oxfp);
void sm_run(OXFILE *oxfp, int code);
int sm(OXFILE *oxfp);

int receive_sm_command(OXFILE *oxfp);
int receive_ox(OXFILE *oxfp);

typedef struct {
    int (*func_ptr)();
    void *key;
} db;

int (*sm_search_f(int code))();
int oxc_open(char *cmd, short port);
int lf_oxc_open();

#endif