commit 9ded84e7a0bc85f7f5512bab2768dc2def9b12d4 from: Omar Polo date: Tue May 10 08:15:00 2022 UTC constify pp_val and ppf_val commit - 02e6fb38c8271d6e8fe6e24c87e003abdf907904 commit + 9ded84e7a0bc85f7f5512bab2768dc2def9b12d4 blob - a752840baf284612fef5d9bdaeb044f41bc27366 blob + 4641658d8b1b2b671b169b046ae2c7892efab882 --- ninepscript/script.c +++ ninepscript/script.c @@ -589,7 +589,7 @@ op_vargs(void) } void -ppf_val(FILE *f, struct value *val) +ppf_val(FILE *f, const struct value *val) { size_t i; @@ -629,7 +629,7 @@ ppf_val(FILE *f, struct value *val) } void -pp_val(struct value *val) +pp_val(const struct value *val) { ppf_val(stdout, val); } blob - 7c619931b543c1d0e22c0879155428e9b2586f5f blob + 314a93cf247e0cea203f842177c8240c3df9061b --- ninepscript/script.h +++ ninepscript/script.h @@ -177,9 +177,8 @@ struct op *op_faccess(struct op *, char *); struct op *op_sfail(struct op *, char *); struct op *op_vargs(void); -void ppf_val(FILE *, struct value *); -void pp_val(struct value *); -void pp_val(struct value *); +void ppf_val(FILE *, const struct value *); +void pp_val(const struct value *); const char *val_type(struct value *); int val_trueish(struct value *); int val_isnum(struct value *);