From f4260f6c665ae8e884573f7e0b40dbd06be75eff Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Wed, 25 Oct 2006 14:42:40 +0000 Subject: [PATCH] *** empty log message *** --- ase/lsp/name.c | 8 ++++---- ase/lsp/name.h | 10 +++++----- ase/lsp/token.c | 6 +++--- ase/lsp/token.h | 9 ++++----- 4 files changed, 16 insertions(+), 17 deletions(-) diff --git a/ase/lsp/name.c b/ase/lsp/name.c index 166eb23c..f7f49c98 100644 --- a/ase/lsp/name.c +++ b/ase/lsp/name.c @@ -1,11 +1,11 @@ /* - * $Id: name.c,v 1.6 2006-10-24 04:22:39 bacon Exp $ + * $Id: name.c,v 1.7 2006-10-25 14:42:40 bacon Exp $ */ #include ase_lsp_name_t* ase_lsp_name_open ( - ase_lsp_name_t* name, ase_word_t capacity) + ase_lsp_name_t* name, ase_size_t capacity) { if (capacity == 0) capacity = ase_countof(name->static_buffer) - 1; @@ -97,7 +97,7 @@ void ase_lsp_name_clear (ase_lsp_name_t* name) name->buffer[0] = ASE_CHAR('\0'); } -ase_char_t* ase_lsp_name_yield (ase_lsp_name_t* name, ase_word_t capacity) +ase_char_t* ase_lsp_name_yield (ase_lsp_name_t* name, ase_size_t capacity) { ase_char_t* old_buffer, * new_buffer; @@ -133,7 +133,7 @@ ase_char_t* ase_lsp_name_yield (ase_lsp_name_t* name, ase_word_t capacity) int ase_lsp_name_compare (ase_lsp_name_t* name, const ase_char_t* str) { ase_char_t* p = name->buffer; - ase_word_t index = 0; + ase_size_t index = 0; while (index < name->size) { if (*p > *str) return 1; diff --git a/ase/lsp/name.h b/ase/lsp/name.h index 05abb719..6002ef6c 100644 --- a/ase/lsp/name.h +++ b/ase/lsp/name.h @@ -1,5 +1,5 @@ /* - * $Id: name.h,v 1.5 2006-10-24 04:22:39 bacon Exp $ + * $Id: name.h,v 1.6 2006-10-25 14:42:40 bacon Exp $ */ #ifndef _ASE_LSP_NAME_H_ @@ -10,8 +10,8 @@ struct ase_lsp_name_t { - ase_word_t capacity; - ase_word_t size; + ase_size_t capacity; + ase_size_t size; ase_char_t* buffer; ase_char_t static_buffer[128]; ase_bool_t __dynamic; @@ -24,13 +24,13 @@ extern "C" { #endif ase_lsp_name_t* ase_lsp_name_open ( - ase_lsp_name_t* name, ase_word_t capacity); + ase_lsp_name_t* name, ase_size_t capacity); void ase_lsp_name_close (ase_lsp_name_t* name); int ase_lsp_name_addc (ase_lsp_name_t* name, ase_cint_t c); int ase_lsp_name_adds (ase_lsp_name_t* name, const ase_char_t* s); void ase_lsp_name_clear (ase_lsp_name_t* name); -ase_char_t* ase_lsp_name_yield (ase_lsp_name_t* name, ase_word_t capacity); +ase_char_t* ase_lsp_name_yield (ase_lsp_name_t* name, ase_size_t capacity); int ase_lsp_name_compare (ase_lsp_name_t* name, const ase_char_t* str); #ifdef __cplusplus diff --git a/ase/lsp/token.c b/ase/lsp/token.c index 4dd1083b..3b7a9c53 100644 --- a/ase/lsp/token.c +++ b/ase/lsp/token.c @@ -1,11 +1,11 @@ /* - * $Id: token.c,v 1.15 2006-10-24 04:22:40 bacon Exp $ + * $Id: token.c,v 1.16 2006-10-25 14:42:40 bacon Exp $ */ #include ase_lsp_token_t* ase_lsp_token_open ( - ase_lsp_token_t* token, ase_word_t capacity) + ase_lsp_token_t* token, ase_size_t capacity) { if (token == ASE_NULL) { @@ -56,7 +56,7 @@ void ase_lsp_token_clear (ase_lsp_token_t* token) ase_lsp_name_clear (&token->name); } -ase_char_t* ase_lsp_token_yield (ase_lsp_token_t* token, ase_word_t capacity) +ase_char_t* ase_lsp_token_yield (ase_lsp_token_t* token, ase_size_t capacity) { ase_char_t* p; diff --git a/ase/lsp/token.h b/ase/lsp/token.h index 8ac2d9b7..80156140 100644 --- a/ase/lsp/token.h +++ b/ase/lsp/token.h @@ -1,12 +1,11 @@ /* - * $Id: token.h,v 1.14 2006-10-25 13:42:31 bacon Exp $ + * $Id: token.h,v 1.15 2006-10-25 14:42:40 bacon Exp $ */ #ifndef _ASE_LSP_TOKEN_H_ #define _ASE_LSP_TOKEN_H_ -#include -#include +#include enum { @@ -31,13 +30,13 @@ extern "C" { #endif ase_lsp_token_t* ase_lsp_token_open ( - ase_lsp_token_t* token, ase_word_t capacity); + ase_lsp_token_t* token, ase_size_t capacity); void ase_lsp_token_close (ase_lsp_token_t* token); 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); +ase_char_t* ase_lsp_token_yield (ase_lsp_token_t* token, ase_size_t capacity); int ase_lsp_token_compare_name (ase_lsp_token_t* token, const ase_char_t* str); #ifdef __cplusplus