ps: that restored aix behavior gets its ultimate tweak

Now that this 'c' variable initial assignment has been
moved outside the looping code, there is no longer any
need to specifically check for space/comma when 'c' is
not '%'. So, let us eliminate those two lines of code.

[ i promise not to change this algorithm ever again! ]

Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
Jim Warner authored and Craig Small committed 2022-04-17 10:43:19 +10:00
1 parent ef8d1cb6e3
commit 5edeabbd4a
1 file changed
-2
-2
View File
@@ -131,8 +131,6 @@ static const char *aix_format_parse(sf_node *sfn){
initial: initial:
if(c=='%') goto get_desc; if(c=='%') goto get_desc;
if(!c) goto looks_ok; if(!c) goto looks_ok;
if(c==' ') goto get_more;
if(c==',') goto aix_oops;
/* get_text: */ /* get_text: */
items++; items++;
get_more: get_more: