Mercurial > mplayer.hg
comparison input/input.c @ 24878:6163f5ead8a5
Fix input.conf parse bug when comment follows key binding in the same line.
author | ulion |
---|---|
date | Wed, 31 Oct 2007 01:23:33 +0000 |
parents | ba929c5ee0bc |
children | f13b32b2bee4 |
comparison
equal
deleted
inserted
replaced
24877:9948f87944eb | 24878:6163f5ead8a5 |
---|---|
755 | 755 |
756 for(i=0; ptr && i < MP_CMD_MAX_ARGS; i++) { | 756 for(i=0; ptr && i < MP_CMD_MAX_ARGS; i++) { |
757 while(ptr[0] != ' ' && ptr[0] != '\t' && ptr[0] != '\0') ptr++; | 757 while(ptr[0] != ' ' && ptr[0] != '\t' && ptr[0] != '\0') ptr++; |
758 if(ptr[0] == '\0') break; | 758 if(ptr[0] == '\0') break; |
759 while(ptr[0] == ' ' || ptr[0] == '\t') ptr++; | 759 while(ptr[0] == ' ' || ptr[0] == '\t') ptr++; |
760 if(ptr[0] == '\0') break; | 760 if(ptr[0] == '\0' || ptr[0] == '#') break; |
761 cmd->args[i].type = cmd_def->args[i].type; | 761 cmd->args[i].type = cmd_def->args[i].type; |
762 switch(cmd_def->args[i].type) { | 762 switch(cmd_def->args[i].type) { |
763 case MP_CMD_ARG_INT: | 763 case MP_CMD_ARG_INT: |
764 errno = 0; | 764 errno = 0; |
765 cmd->args[i].v.i = atoi(ptr); | 765 cmd->args[i].v.i = atoi(ptr); |