2005-06-12 16:22:47 +00:00
|
|
|
/*
|
2007-03-22 11:19:28 +00:00
|
|
|
* $Id: name.h,v 1.5 2007-03-22 11:19:28 bacon Exp $
|
2005-06-12 16:22:47 +00:00
|
|
|
*/
|
|
|
|
|
2007-03-22 11:19:28 +00:00
|
|
|
#ifndef _ASE_STX_NAME_H_
|
|
|
|
#define _ASE_STX_NAME_H_
|
2005-06-12 16:22:47 +00:00
|
|
|
|
2007-03-22 11:19:28 +00:00
|
|
|
#include <ase/stx/stx.h>
|
2005-06-12 16:22:47 +00:00
|
|
|
|
2007-03-22 11:19:28 +00:00
|
|
|
struct ase_stx_name_t
|
2005-06-12 16:22:47 +00:00
|
|
|
{
|
2007-03-22 11:19:28 +00:00
|
|
|
ase_word_t capacity;
|
|
|
|
ase_word_t size;
|
|
|
|
ase_char_t* buffer;
|
|
|
|
ase_char_t static_buffer[128];
|
|
|
|
ase_bool_t __dynamic;
|
2005-06-12 16:22:47 +00:00
|
|
|
};
|
|
|
|
|
2007-03-22 11:19:28 +00:00
|
|
|
typedef struct ase_stx_name_t ase_stx_name_t;
|
2005-06-12 16:22:47 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2007-03-22 11:19:28 +00:00
|
|
|
ase_stx_name_t* ase_stx_name_open (
|
|
|
|
ase_stx_name_t* name, ase_word_t capacity);
|
|
|
|
void ase_stx_name_close (ase_stx_name_t* name);
|
2005-06-12 16:22:47 +00:00
|
|
|
|
2007-03-22 11:19:28 +00:00
|
|
|
int ase_stx_name_addc (ase_stx_name_t* name, ase_cint_t c);
|
|
|
|
int ase_stx_name_adds (ase_stx_name_t* name, const ase_char_t* s);
|
|
|
|
void ase_stx_name_clear (ase_stx_name_t* name);
|
|
|
|
ase_char_t* ase_stx_name_yield (ase_stx_name_t* name, ase_word_t capacity);
|
|
|
|
int ase_stx_name_compare (ase_stx_name_t* name, const ase_char_t* str);
|
2005-06-12 16:22:47 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|