From f8d991fc1b1ab7ae0c3d8a0307b8b2419d152278 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Tue, 21 Mar 2017 00:40:25 -0700 Subject: Allow initial_path to contain variable references which allows the default value to be actually specified in the default config file --- util.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'util.h') diff --git a/util.h b/util.h index c29d040..fc3762e 100644 --- a/util.h +++ b/util.h @@ -21,6 +21,8 @@ typedef struct { char * alloc_concat(char const * first, char const * second); //Allocates a new string containing the concatenation of the strings pointed to by parts char * alloc_concat_m(int num_parts, char const ** parts); +//Returns a newly allocated string in which all variables in based are replaced with values from vars or the environment +char *replace_vars(char *base, tern_node *vars, uint8_t allow_env); //Byteswaps a ROM image in memory void byteswap_rom(int filesize, uint16_t *cart); //Returns the size of a file using fseek and ftell -- cgit v1.2.3