commit 7a495cc06ba718ed1ad5f056fecc99a13b2b38f9 from: Omar Polo date: Thu Dec 02 22:57:09 2021 UTC publish some functions commit - ca8ce622a22580202c01e86572be6e2815018c71 commit + 7a495cc06ba718ed1ad5f056fecc99a13b2b38f9 blob - 65fa73dd4c52b065ae95c552e82fd50a85efb8d9 blob + 206f7b8ed623b244b39b476b06b20fc671014a4c --- script.c +++ script.c @@ -636,7 +636,7 @@ val_trueish(struct value *a) return a->type == V_NUM && a->v.num; } -static inline int +int val_isnum(struct value *a) { return a->type == V_NUM @@ -645,7 +645,7 @@ val_isnum(struct value *a) || a->type == V_U32; } -static inline int64_t +int64_t val_tonum(struct value *a) { switch (a->type) { blob - 048dd13dced6bde63cb49c962a582575cadd95dc blob + 8e094a0a1f2b051994a39fe747d5803f68d7bb85 --- script.h +++ script.h @@ -184,8 +184,11 @@ struct op *op_vargs(void); void ppf_val(FILE *, struct value *); void pp_val(struct value *); +void pp_val(struct value *); const char *val_type(struct value *); int val_trueish(struct value *); +int val_isnum(struct value *); +int64_t val_tonum(struct value *); int val_eq(struct value *, struct value *); int val_cast(struct value *, int); int val_faccess(struct value *, const char *, struct value *);