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

Annotation of OpenXM/src/ox_ntl/oxstack.h, Revision 1.2

1.2     ! iwane       1: /* $OpenXM: OpenXM/src/ox_ntl/oxstack.h,v 1.1 2003/11/08 12:34:01 iwane Exp $ */
1.1       iwane       2:
                      3: #ifndef __OX_STACK_H__
                      4: #define __OX_STACK_H__
                      5:
                      6: #include "ox_toolkit.h"
                      7:
                      8: #ifndef OXSERV_FAILURE
                      9: #define OXSERV_FAILURE (-1)
                     10: #define OXSERV_SUCCESS  ( 0)
                     11: #endif
                     12:
                     13:
                     14: #ifdef __cplusplus
                     15: extern "C" {
                     16: #endif
                     17:
1.2     ! iwane      18: typedef struct oxstack_node_t {
        !            19:        int tag;
        !            20:        int user;
        !            21:        int reserve;
        !            22:        cmo *c;
        !            23:        void *p; /* user node */
        !            24: } oxstack_node;
        !            25:
1.1       iwane      26: int     oxstack_init_stack     (void);
                     27: int     oxstack_extend_stack   (void);
                     28: void    oxstack_dest           (void);
                     29:
1.2     ! iwane      30: oxstack_node   *oxstack_node_init(cmo *);
        !            31: int     oxstack_push   (oxstack_node *);
        !            32: int     oxstack_push_cmo       (cmo *);
        !            33: oxstack_node   *oxstack_pop    (void);
        !            34: oxstack_node   *oxstack_get    (int);
        !            35: oxstack_node   *oxstack_peek   (void);
1.1       iwane      36:
                     37: int     oxstack_get_stack_pointer      (void);
                     38:
                     39: #ifdef __cplusplus
                     40: }
                     41: #endif
                     42:
                     43: #endif /* !__OX_STACK_H__ */

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>