Skip to content

Commit 2318eaa

Browse files
committed
utf8n_to_uvchr_msgs: Comment why variable not named 'class'
1 parent 7c1ecce commit 2318eaa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

inline.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3034,6 +3034,9 @@ Perl_utf8n_to_uvchr_msgs(const U8 *s,
30343034
return *s;
30353035
}
30363036

3037+
/* The terminology of the dfa refers to a 'class'. The variable 'type'
3038+
* would have been named 'class' except that is a reserved word in C++
3039+
* */
30373040
PERL_UINT_FAST8_T type = PL_strict_utf8_dfa_tab[*s];
30383041

30393042
UV state = PL_strict_utf8_dfa_tab[256 + type];

0 commit comments

Comments
 (0)