break; | break; | ||||
case '.': | case '.': | ||||
// dot in pre- section, match on any dot before this point in the word | // dot in pre- section, match on any dot before this point in the word | ||||
for (p = pre_ptr; *p != ' '; p--) { | for (p = pre_ptr; *p && *p != ' '; p--) { | ||||
if (*p == '.') { | if (*p == '.') { | ||||
add_points = 50; | add_points = 50; | ||||
break; | break; | ||||
} | } | ||||
} | } | ||||
if (*p == ' ') | if (!*p || *p == ' ') | ||||
failed = 1; | failed = 1; | ||||
break; | break; | ||||
case '-': | case '-': |