version 1.4, 2003/01/11 11:42:31 |
version 1.9, 2005/10/12 04:03:37 |
|
|
/* -*- mode: C; coding: euc-japan -*- */ |
/* -*- mode: C; coding: euc-japan -*- */ |
/* $OpenXM: OpenXM/src/ox_toolkit/ox_Xsample.c,v 1.3 2000/10/10 05:23:20 ohara Exp $ */ |
/* $OpenXM: OpenXM/src/ox_toolkit/ox_Xsample.c,v 1.8 2005/07/26 12:52:05 ohara Exp $ */ |
|
|
#include <stdio.h> |
#include <stdio.h> |
|
#include <stdlib.h> |
#include "ox_toolkit.h" |
#include "ox_toolkit.h" |
|
|
OXFILE *fd_rw; |
OXFILE *fd_rw; |
|
|
} |
} |
} |
} |
|
|
#define VERSION 0x11121400 |
#define OX_XSAMPLE_VERSION 0x11121400 |
#define ID_STRING "1999/12/14 15:25:00" |
#define ID_STRING "1999/12/14 15:25:00" |
|
|
int sm_mathcap() |
int sm_mathcap() |
{ |
{ |
mathcap_sysinfo_set(VERSION, ID_STRING, "ox_Xsample"); |
mathcap_init(OX_XSAMPLE_VERSION, ID_STRING, "ox_Xsample", NULL, NULL); |
push(mathcap_get()); |
push(oxf_cmo_mathcap(fd_rw)); |
return 0; |
return 0; |
} |
} |
|
|
|
|
|
|
int get_xy(int *x, int *y) |
int get_xy(int *x, int *y) |
{ |
{ |
cmo *c = pop(); |
pop(); |
*x = get_i(); |
*x = get_i(); |
*y = get_i(); |
*y = get_i(); |
} |
} |
Line 171 int receive_and_execute_sm_command() |
|
Line 172 int receive_and_execute_sm_command() |
|
pop(); |
pop(); |
break; |
break; |
default: |
default: |
|
; |
} |
} |
} |
} |
|
|
|
|
receive_and_execute_sm_command(); |
receive_and_execute_sm_command(); |
break; |
break; |
default: |
default: |
|
; |
} |
} |
return 0; |
return 0; |
} |
} |
|
|
int main() |
int main() |
{ |
{ |
ox_stderr_init(NULL); |
ox_stderr_init(stderr); |
initialize_stack(); |
initialize_stack(); |
|
|
fd_rw = oxf_open(3); |
fd_rw = oxf_open(3); |