- while (*input != 0){
- if (input [0] == 'M' && input [1] == ':'){
- input += 2;
- get_string ();
- return TOKEN_METHOD;
- }
- if (input [0] == 'N' && input [1] == ':'){
- input += 2;
- get_string ();
- return TOKEN_NAMESPACE;
- }
- if (input [0] == 'T' && input [1] == ':'){
- input += 2;
- get_string ();
- return TOKEN_CLASS;
- }
- if (is_filenamechar (*input)){
- get_string ();
- if (strcmp (value, "all") == 0)
- return TOKEN_ALL;
- if (strcmp (value, "program") == 0)
- return TOKEN_PROGRAM;
- return TOKEN_STRING;
- }
- if (*input == '-'){
- input++;
- return TOKEN_EXCLUDE;
- }
- if (*input == ','){
- input++;
- return TOKEN_SEPARATOR;
- }
+ if (input [0] == '\0') {
+ return TOKEN_END;
+ }
+ if (input [0] == 'M' && input [1] == ':'){
+ input += 2;
+ get_string ();
+ return TOKEN_METHOD;
+ }
+ if (input [0] == 'N' && input [1] == ':'){
+ input += 2;
+ get_string ();
+ return TOKEN_NAMESPACE;
+ }
+ if (input [0] == 'T' && input [1] == ':'){
+ input += 2;
+ get_string ();
+ return TOKEN_CLASS;
+ }
+ if (is_filenamechar (*input)){
+ get_string ();
+ if (strcmp (value, "all") == 0)
+ return TOKEN_ALL;
+ if (strcmp (value, "program") == 0)
+ return TOKEN_PROGRAM;
+ if (strcmp (value, "disabled") == 0)
+ return TOKEN_DISABLED;
+ return TOKEN_STRING;
+ }
+ if (*input == '-'){