12 Feb 01:34
fprintf and sprintf: to infringe or not to infringe user namespace?
Claudio Saavedra <csaavedra <at> alumnos.utalca.cl>
2008-02-12 00:34:30 GMT
2008-02-12 00:34:30 GMT
Hi, In data/yacc.c, there's a simple pseudo-implementation of sprintf (line 695) used for the verbose error recovery mechanism. The motivation to use it is to avoid infringing in the user namespace. However, for the implementation of YYDPRINTF, YYFPRINTF and all the other output macros, <stdio.h> is included and fprintf is used anyway. So I wonder, is it really worth to maintain that bit of code? In advance, thanks for clarifying, Claudio -- -- Claudio Saavedra <csaavedra <at> alumnos.utalca.cl>
RSS Feed