bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

fprintf and sprintf: to infringe or not to infringe user namespace?


From: Claudio Saavedra
Subject: fprintf and sprintf: to infringe or not to infringe user namespace?
Date: Mon, 11 Feb 2008 21:34:30 -0300

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 <address@hidden>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]