Mercurial > repos > blastem
comparison util.h @ 1292:5905593d6828
Allow initial_path to contain variable references which allows the default value to be actually specified in the default config file
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 21 Mar 2017 00:40:25 -0700 |
parents | 4490c9c12272 |
children | 96ad1b9bbb3a |
comparison
equal
deleted
inserted
replaced
1291:f17fe0d00626 | 1292:5905593d6828 |
---|---|
19 | 19 |
20 //Allocates a new string containing the concatenation of first and second | 20 //Allocates a new string containing the concatenation of first and second |
21 char * alloc_concat(char const * first, char const * second); | 21 char * alloc_concat(char const * first, char const * second); |
22 //Allocates a new string containing the concatenation of the strings pointed to by parts | 22 //Allocates a new string containing the concatenation of the strings pointed to by parts |
23 char * alloc_concat_m(int num_parts, char const ** parts); | 23 char * alloc_concat_m(int num_parts, char const ** parts); |
24 //Returns a newly allocated string in which all variables in based are replaced with values from vars or the environment | |
25 char *replace_vars(char *base, tern_node *vars, uint8_t allow_env); | |
24 //Byteswaps a ROM image in memory | 26 //Byteswaps a ROM image in memory |
25 void byteswap_rom(int filesize, uint16_t *cart); | 27 void byteswap_rom(int filesize, uint16_t *cart); |
26 //Returns the size of a file using fseek and ftell | 28 //Returns the size of a file using fseek and ftell |
27 long file_size(FILE * f); | 29 long file_size(FILE * f); |
28 //Strips whitespace and non-printable characters from the beginning and end of a string | 30 //Strips whitespace and non-printable characters from the beginning and end of a string |