qse/ase/lsp/token.h

48 lines
942 B
C
Raw Normal View History

2005-02-04 15:39:11 +00:00
/*
2006-10-24 04:22:40 +00:00
* $Id: token.h,v 1.13 2006-10-24 04:22:40 bacon Exp $
2005-02-04 15:39:11 +00:00
*/
2006-10-24 04:22:40 +00:00
#ifndef _ASE_LSP_TOKEN_H_
#define _ASE_LSP_TOKEN_H_
2005-02-04 15:39:11 +00:00
2006-10-24 04:22:40 +00:00
#include <ase/lsp/types.h>
#include <ase/lsp/name.h>
2005-02-04 15:39:11 +00:00
2005-09-18 08:10:50 +00:00
enum
2005-02-04 15:39:11 +00:00
{
2006-10-24 04:22:40 +00:00
ASE_LSP_TOKEN_END
2005-09-18 08:10:50 +00:00
};
2006-10-24 04:22:40 +00:00
struct ase_lsp_token_t
2005-09-18 08:10:50 +00:00
{
int type;
2005-02-04 15:39:11 +00:00
2006-10-24 04:22:40 +00:00
ase_lsp_int_t ivalue;
ase_lsp_real_t rvalue;
2005-02-04 15:39:11 +00:00
2006-10-24 04:22:40 +00:00
ase_lsp_name_t name;
ase_bool_t __dynamic;
2005-02-04 15:39:11 +00:00
};
2006-10-24 04:22:40 +00:00
typedef struct ase_lsp_token_t ase_lsp_token_t;
2005-02-04 15:39:11 +00:00
#ifdef __cplusplus
extern "C" {
#endif
2006-10-24 04:22:40 +00:00
ase_lsp_token_t* ase_lsp_token_open (
ase_lsp_token_t* token, ase_word_t capacity);
void ase_lsp_token_close (ase_lsp_token_t* token);
2005-09-18 08:10:50 +00:00
2006-10-24 04:22:40 +00:00
int ase_lsp_token_addc (ase_lsp_token_t* token, ase_cint_t c);
int ase_lsp_token_adds (ase_lsp_token_t* token, const ase_char_t* s);
void ase_lsp_token_clear (ase_lsp_token_t* token);
ase_char_t* ase_lsp_token_yield (ase_lsp_token_t* token, ase_word_t capacity);
int ase_lsp_token_compare_name (ase_lsp_token_t* token, const ase_char_t* str);
2005-02-04 15:39:11 +00:00
#ifdef __cplusplus
}
#endif
#endif