From 4b4f4329fd3c998757353b90b411655773231423 Mon Sep 17 00:00:00 2001 From: "hyunghwan.chung" Date: Thu, 3 Dec 2015 15:31:21 +0000 Subject: [PATCH] added a missing function prototype for stix_allochalfwordobj() --- stix/lib/stix-dos.h | 2 +- stix/lib/stix-prv.h | 30 ++++++++++++++++++------------ 2 files changed, 19 insertions(+), 13 deletions(-) diff --git a/stix/lib/stix-dos.h b/stix/lib/stix-dos.h index 853de2b..b5d1fb3 100644 --- a/stix/lib/stix-dos.h +++ b/stix/lib/stix-dos.h @@ -122,7 +122,7 @@ # define STIX_SIZEOF_STRUCT_SOCKADDR_IN6 64 # define STIX_SIZEOF_SOCKLEN_T 4 -#elif defined(__ZTC__) && defined(__DOSX386__) +#elif defined(__ZTC__) && defined(DOS386) /* Zortech in DOSX 386 mode (ztc -mx) */ # define STIX_SIZEOF_CHAR 1 diff --git a/stix/lib/stix-prv.h b/stix/lib/stix-prv.h index b7dccb1..53bed4c 100644 --- a/stix/lib/stix-prv.h +++ b/stix/lib/stix-prv.h @@ -906,38 +906,44 @@ stix_oop_t stix_allocoopobj ( #if defined(STIX_USE_OBJECT_TRAILER) stix_oop_t stix_allocoopobjwithtrailer ( - stix_t* stix, - stix_oow_t size, + stix_t* stix, + stix_oow_t size, const stix_oob_t* tptr, - stix_oow_t tlen + stix_oow_t tlen ); #endif stix_oop_t stix_alloccharobj ( stix_t* stix, - const stix_ooch_t* ptr, + const stix_ooch_t* ptr, stix_oow_t len ); stix_oop_t stix_allocbyteobj ( - stix_t* stix, + stix_t* stix, const stix_oob_t* ptr, + stix_oow_t len +); + +stix_oop_t stix_allochalfwordobj ( + stix_t* stix, + const stix_oohw_t* ptr, stix_oow_t len ); stix_oop_t stix_allocwordobj ( - stix_t* stix, - const stix_oow_t* ptr, - stix_oow_t len + stix_t* stix, + const stix_oow_t* ptr, + stix_oow_t len ); #if defined(STIX_USE_OBJECT_TRAILER) stix_oop_t stix_instantiatewithtrailer ( - stix_t* stix, - stix_oop_t _class, - stix_oow_t vlen, + stix_t* stix, + stix_oop_t _class, + stix_oow_t vlen, const stix_oob_t* tptr, - stix_oow_t tlen + stix_oow_t tlen ); #endif