contrib/gcc-2.3.3/c-typeck.c
/* Initialize the table of functions to perform format checking on.
   The ANSI functions are always checked (whether <stdio.h> is
   included or not), since it is common to call printf without
   including <stdio.h>.  There shouldn't be a problem with this,
   since ANSI reserves these function names whether you include the
   header file or not.  In any case, the checking is harmless.  */
Initialize the table of functions to perform format checking on.
The ANSI functions are always checked (whether  is
included or not), since it is common to call printf without
including .  There shouldn't be a problem with this,
since ANSI reserves these function names whether you include the
header file or not.  In any case, the checking is harmless.
Initialize the table of functions to perform format checking on . The ANSI functions are always checked ( whether is included or not ) since it is common to call printf without including . There shouldn ' t be a problem with this since ANSI reserves these function names whether you include the header file or not . In any case the checking is harmless .
void
init_format_info_table ()
{
  record_format_info (get_identifier ("printf"), 0, 1, 2);
  record_format_info (get_identifier ("fprintf"), 0, 2, 3);
  record_format_info (get_identifier ("sprintf"), 0, 2, 3);
  record_format_info (get_identifier ("scanf"), 1, 1, 2);
  record_format_info (get_identifier ("fscanf"), 1, 2, 3);
  record_format_info (get_identifier ("sscanf"), 1, 2, 3);
  record_format_info (get_identifier ("vprintf"), 0, 1, 0);
  record_format_info (get_identifier ("vfprintf"), 0, 2, 0);
  record_format_info (get_identifier ("vsprintf"), 0, 2, 0);
}
void init_format_info_table ( ) { record_format_info ( get_identifier ( " " ) , 0 , 1 , 2 ) ; record_format_info ( get_identifier ( " " ) , 0 , 2 , 3 ) ; record_format_info ( get_identifier ( " " ) , 0 , 2 , 3 ) ; record_format_info ( get_identifier ( " " ) , 1 , 1 , 2 ) ; record_format_info ( get_identifier ( " " ) , 1 , 2 , 3 ) ; record_format_info ( get_identifier ( " " ) , 1 , 2 , 3 ) ; record_format_info ( get_identifier ( " " ) , 0 , 1 , 0 ) ; record_format_info ( get_identifier ( " " ) , 0 , 2 , 0 ) ; record_format_info ( get_identifier ( " " ) , 0 , 2 , 0 ) ; }
Initialize the table of functions to perform format checking on.
Initialize the table of functions to perform format checking on .