From 5708a992c0293bbb7fcb9c40b28c275ce0ad4702 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Fri, 23 Feb 2007 06:31:06 +0000 Subject: [PATCH] *** empty log message *** --- ase/cmn/makefile.in | 25 +++++++++++++++++++++++++ ase/cmn/str.c | 6 +++--- 2 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 ase/cmn/makefile.in diff --git a/ase/cmn/makefile.in b/ase/cmn/makefile.in new file mode 100644 index 00000000..2a511ab0 --- /dev/null +++ b/ase/cmn/makefile.in @@ -0,0 +1,25 @@ +OUT = asecmn + +C_SRCS = str.c +C_OBJS = $(C_SRCS:.c=.o) + +CC = @CC@ +AR = ar +RANLIB = @RANLIB@ +CFLAGS = @CFLAGS@ -I@abs_top_builddir@/.. +LDFLAGS = @LDFLAGS@ +LIBS = @LIBS@ + +all: lib + +lib: $(C_OBJS) + $(AR) cr lib$(OUT).a $(C_OBJS) + if [ "$(RANLIB)" = "ranlib" ]; then ranlib lib$(OUT).a; fi + +clean: + rm -rf $(OBJS) lib$(OUT).a *.o + +.SUFFIXES: .c .o +.c.o: + $(CC) $(CFLAGS) -c $< + diff --git a/ase/cmn/str.c b/ase/cmn/str.c index b9ddcc36..eaa2436d 100644 --- a/ase/cmn/str.c +++ b/ase/cmn/str.c @@ -1,5 +1,5 @@ /* - * $Id: str.c,v 1.2 2007-02-22 14:46:43 bacon Exp $ + * $Id: str.c,v 1.3 2007-02-23 06:31:06 bacon Exp $ * * {License} */ @@ -124,12 +124,12 @@ ase_size_t ase_str_ncat (ase_str_t* str, const ase_char_t* s, ase_size_t len) else { tmp = (ase_char_t*) ASE_MALLOC ( - str->mmgr, ASE_SIZEOF(ase_char_t) * (capa + 1)); + str->mmgr, ASE_SIZEOF(ase_char_t)*(capa+1)); if (tmp == ASE_NULL) return (ase_size_t)-1; if (str->buf != ASE_NULL) { ASE_MEMCPY (str->mmgr, tmp, str->buf, - ASE_SIZEOF(ase_char_t) * (str->capa + 1)); + ASE_SIZEOF(ase_char_t)*(str->capa+1)); ASE_FREE (str->mmgr, str->buf); } }