enhanced moo_inttostr() with 2 new flags - MOO_INTTOSTR_LOWERCASE and MOO_INTTOSTR_NONEWOBJ
redefined bigint and fpdec check macros added the strfmt primitive to String
This commit is contained in:
@ -435,6 +435,7 @@ typedef enum moo_gcfin_t moo_gcfin_t;
|
||||
#define MOO_OBJ_IS_HALFWORD_POINTER(oop) (MOO_OOP_IS_POINTER(oop) && (MOO_OBJ_GET_FLAGS_TYPE(oop) == MOO_OBJ_TYPE_HALFWORD))
|
||||
#define MOO_OBJ_IS_WORD_POINTER(oop) (MOO_OOP_IS_POINTER(oop) && (MOO_OBJ_GET_FLAGS_TYPE(oop) == MOO_OBJ_TYPE_WORD))
|
||||
|
||||
|
||||
/* [NOTE] this macro doesn't check the range of the actual value.
|
||||
* make sure that the value of each bit fields given falls within the
|
||||
* possible range of the defined bits */
|
||||
@ -1632,6 +1633,16 @@ struct moo_t
|
||||
} inttostr;
|
||||
/* == END BIGINT CONVERSION == */
|
||||
|
||||
struct
|
||||
{
|
||||
struct
|
||||
{
|
||||
moo_ooch_t* ptr;
|
||||
moo_oow_t capa;
|
||||
moo_oow_t len;
|
||||
} xbuf; /* buffer to support sprintf */
|
||||
} sprintf;
|
||||
|
||||
moo_sbuf_t sbuf[64];
|
||||
|
||||
struct
|
||||
|
Reference in New Issue
Block a user