*** empty log message ***

This commit is contained in:
2005-05-22 10:32:37 +00:00
parent b100ae73ff
commit 450c413990
3 changed files with 168 additions and 0 deletions

45
ase/stx/token.h Normal file
View File

@@ -0,0 +1,45 @@
/*
* $Id: token.h,v 1.1 2005-05-22 10:32:37 bacon Exp $
*/
#ifndef _XP_STX_TOKEN_H_
#define _XP_STX_TOKEN_H_
#include <xp/stx/stx.h>
struct xp_stx_token_t
{
int type;
/*
xp_stx_int_t ivalue;
xp_stx_real_t fvalue;
*/
xp_size_t capacity;
xp_size_t size;
xp_char_t* buffer;
xp_bool_t __malloced;
};
typedef struct xp_stx_token_t xp_stx_token_t;
#ifdef __cplusplus
extern "C" {
#endif
xp_stx_token_t* xp_stx_token_open (
xp_stx_token_t* token, xp_stx_word_t capacity);
void xp_stx_token_close (xp_stx_token_t* token);
int xp_stx_token_addc (xp_stx_token_t* token, xp_cint_t c);
void xp_stx_token_clear (xp_stx_token_t* token);
xp_char_t* xp_stx_token_transfer (xp_stx_token_t* token, xp_size_t capacity);
int xp_stx_token_compare (xp_stx_token_t* token, const xp_char_t* str);
#ifdef __cplusplus
}
#endif
#endif