Mercurial > mplayer.hg
comparison parser-cfg.c @ 29559:8fd1ec0984b9
Make m_config_parse_config_file file name argument const
author | reimar |
---|---|
date | Mon, 31 Aug 2009 09:40:04 +0000 |
parents | 0f1b5b68af32 |
children | 61b1e80faf63 |
comparison
equal
deleted
inserted
replaced
29558:e71981bd196c | 29559:8fd1ec0984b9 |
---|---|
33 /// Setup the \ref Config from a config file. | 33 /// Setup the \ref Config from a config file. |
34 /** \param config The config object. | 34 /** \param config The config object. |
35 * \param conffile Path to the config file. | 35 * \param conffile Path to the config file. |
36 * \return 1 on sucess, -1 on error. | 36 * \return 1 on sucess, -1 on error. |
37 */ | 37 */ |
38 int m_config_parse_config_file(m_config_t* config, char *conffile) | 38 int m_config_parse_config_file(m_config_t* config, const char *conffile) |
39 { | 39 { |
40 #define PRINT_LINENUM mp_msg(MSGT_CFGPARSER,MSGL_V,"%s(%d): ", conffile, line_num) | 40 #define PRINT_LINENUM mp_msg(MSGT_CFGPARSER,MSGL_V,"%s(%d): ", conffile, line_num) |
41 #define MAX_LINE_LEN 10000 | 41 #define MAX_LINE_LEN 10000 |
42 #define MAX_OPT_LEN 1000 | 42 #define MAX_OPT_LEN 1000 |
43 #define MAX_PARAM_LEN 1500 | 43 #define MAX_PARAM_LEN 1500 |