• R/O
  • SSH
  • HTTPS

yash: Commit


Commit MetaInfo

Revision3852 (tree)
Time2018-09-15 00:57:06
Authormagicant

Log Message

Remove redundant character type check

The is_portable_name and is_name functions use the skip_name function
that tests if the first character is a digit.

Change Summary

Incremental Difference

--- yash/trunk/parser.c (revision 3851)
+++ yash/trunk/parser.c (revision 3852)
@@ -367,11 +367,7 @@
367367 if (wu->wu_type != WT_STRING)
368368 return false;
369369
370- const wchar_t *s = wu->wu_string;
371- if (iswdigit(s[0]))
372- return false;
373-
374- return (posixly_correct ? is_portable_name : is_name)(s);
370+ return (posixly_correct ? is_portable_name : is_name)(wu->wu_string);
375371 }
376372
377373
Show on old repository browser