*** empty log message ***

This commit is contained in:
hyung-hwan 2006-10-25 14:42:40 +00:00
parent 08fe087e11
commit f4260f6c66
4 changed files with 16 additions and 17 deletions

View File

@ -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.h>
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;

View File

@ -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

View File

@ -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/lsp_i.h>
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;

View File

@ -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 <ase/lsp/types.h>
#include <ase/lsp/name.h>
#include <ase/lsp/lsp_i.h>
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