Mercurial > mplayer.hg
comparison cfgparser.c @ 7201:22beff6edf75
Improved MacOS X SDL support, enable SDL main() wrapper for Darwin, remove unused envp.
Patch by Donnie Smith <xc0bead2d8130df59@f4n.org>, updated by me.
author | atmos4 |
---|---|
date | Sat, 31 Aug 2002 15:04:18 +0000 |
parents | 3854945aefbb |
children | c4434bdf6e51 |
comparison
equal
deleted
inserted
replaced
7200:9a123ba671fd | 7201:22beff6edf75 |
---|---|
1031 out: | 1031 out: |
1032 --config->recursion_depth; | 1032 --config->recursion_depth; |
1033 return ret; | 1033 return ret; |
1034 } | 1034 } |
1035 | 1035 |
1036 int m_config_parse_command_line(m_config_t *config, int argc, char **argv, char **envp) | 1036 int m_config_parse_command_line(m_config_t *config, int argc, char **argv) |
1037 { | 1037 { |
1038 int i; | 1038 int i; |
1039 int tmp; | 1039 int tmp; |
1040 char *opt; | 1040 char *opt; |
1041 int no_more_opts = 0; | 1041 int no_more_opts = 0; |
1042 | 1042 |
1043 #ifdef MP_DEBUG | 1043 #ifdef MP_DEBUG |
1044 assert(config != NULL); | 1044 assert(config != NULL); |
1045 assert(config->pt != NULL); | 1045 assert(config->pt != NULL); |
1046 assert(argv != NULL); | 1046 assert(argv != NULL); |
1047 assert(envp != NULL); | |
1048 assert(argc >= 1); | 1047 assert(argc >= 1); |
1049 #endif | 1048 #endif |
1050 | 1049 |
1051 if (init_conf(config, COMMAND_LINE) == -1) | 1050 if (init_conf(config, COMMAND_LINE) == -1) |
1052 return -1; | 1051 return -1; |