[Scummvm-devel] PROPOSAL: Removing (f)printf usage
    Max Horn 
    max at quendi.de
       
    Mon Nov  1 15:02:26 CET 2010
    
    
  
P.S.:
Some additional remarks:
* To avoid conflicts (and to make it possible to add printf to the list of "forbidden symbols"), we should also rename Common::String::printf to something else, e.g. Common::String::format. 
* In additton to printf and fprintf, also vprintf and vfprintf  should be avoided / forbidden.
* We may want to consider adding varg variants of warning, error, debug, notify. Or as a simple variant, add a single
  int vlog(ConsoleMsgType type, const char *format, va_list args)
API which could stand in for all of these. Indeed, we could base warning, error, debug etc. on that.
Bye,
Max
    
    
More information about the Scummvm-devel
mailing list