osprey-gcc-4.2.0/gcc/c-ppoutput.c File Reference

#include "config.h"
#include "system.h"
#include "coretypes.h"
#include "tm.h"
#include "cpplib.h"
#include "../libcpp/internal.h"
#include "tree.h"
#include "c-common.h"
#include "c-pragma.h"

Include dependency graph for c-ppoutput.c:

Go to the source code of this file.

Functions/Subroutines

static void scan_translation_unit (cpp_reader *)
static void scan_translation_unit_trad (cpp_reader *)
static void account_for_newlines (const unsigned char *, size_t)
static int dump_macro (cpp_reader *, cpp_hashnode *, void *)
static void print_line (source_location, const char *)
static void maybe_print_line (source_location)
static void cb_line_change (cpp_reader *, const cpp_token *, int)
static void cb_define (cpp_reader *, source_location, cpp_hashnode *)
static void cb_undef (cpp_reader *, source_location, cpp_hashnode *)
static void cb_include (cpp_reader *, source_location, const unsigned char *, const char *, int, const cpp_token **)
static void cb_ident (cpp_reader *, source_location, const cpp_string *)
static void cb_def_pragma (cpp_reader *, source_location)
static void cb_read_pch (cpp_reader *pfile, const char *name, int fd, const char *orig_name)
void preprocess_file (cpp_reader *pfile)
void init_pp_output (FILE *out_stream)
static void cb_ident (cpp_reader *pfile ATTRIBUTE_UNUSED, source_location line, const cpp_string *str)
static void cb_undef (cpp_reader *pfile ATTRIBUTE_UNUSED, source_location line, cpp_hashnode *node)
static void cb_include (cpp_reader *pfile ATTRIBUTE_UNUSED, source_location line, const unsigned char *dir, const char *header, int angle_brackets, const cpp_token **comments)
void pp_dir_change (cpp_reader *pfile ATTRIBUTE_UNUSED, const char *dir)
void pp_file_change (const struct line_map *map)
static int dump_macro (cpp_reader *pfile, cpp_hashnode *node, void *v ATTRIBUTE_UNUSED)
static void cb_read_pch (cpp_reader *pfile, const char *name, int fd, const char *orig_name ATTRIBUTE_UNUSED)

Variables

type {
   FILE *   outf
   const cpp_token *   prev
   const cpp_token *   source
   int   src_line
   unsigned char   printed
   bool   first_time
print


Function Documentation

static void account_for_newlines ( const unsigned char *  str,
size_t  len 
) [static]

Definition at line 184 of file c-ppoutput.c.

References print.

static void cb_def_pragma ( cpp_reader pfile,
source_location  line 
) [static]

Definition at line 422 of file c-ppoutput.c.

References cpp_output_line(), fputs(), maybe_print_line(), and print.

static void cb_define ( cpp_reader pfile,
source_location  line,
cpp_hashnode node 
) [static]

static void cb_ident ( cpp_reader *pfile  ATTRIBUTE_UNUSED,
source_location  line,
const cpp_string str 
) [static]

Definition at line 305 of file c-ppoutput.c.

References fprintf(), maybe_print_line(), print, and cpp_string::text.

static void cb_ident ( cpp_reader ,
source_location  ,
const cpp_string  
) [static]

static void cb_include ( cpp_reader *pfile  ATTRIBUTE_UNUSED,
source_location  line,
const unsigned char *  dir,
const char *  header,
int  angle_brackets,
const cpp_token **  comments 
) [static]

Definition at line 341 of file c-ppoutput.c.

References cpp_output_token(), fprintf(), maybe_print_line(), NULL, PREV_WHITE, print, and putc().

static void cb_include ( cpp_reader ,
source_location  ,
const unsigned char *  ,
const char *  ,
int  ,
const cpp_token **   
) [static]

static void cb_line_change ( cpp_reader pfile,
const cpp_token token,
int  parsing_args 
) [static]

static void cb_read_pch ( cpp_reader pfile,
const char *  name,
int  fd,
const char *orig_name  ATTRIBUTE_UNUSED 
) [static]

Definition at line 451 of file c-ppoutput.c.

References c_common_read_pch(), fprintf(), and print.

static void cb_read_pch ( cpp_reader pfile,
const char *  name,
int  fd,
const char *  orig_name 
) [static]

static void cb_undef ( cpp_reader *pfile  ATTRIBUTE_UNUSED,
source_location  line,
cpp_hashnode node 
) [static]

Definition at line 332 of file c-ppoutput.c.

References fprintf(), maybe_print_line(), NODE_NAME, and print.

static void cb_undef ( cpp_reader ,
source_location  ,
cpp_hashnode  
) [static]

static int dump_macro ( cpp_reader pfile,
cpp_hashnode node,
void *v  ATTRIBUTE_UNUSED 
) [static]

static int dump_macro ( cpp_reader ,
cpp_hashnode ,
void  
) [static]

void init_pp_output ( FILE out_stream  ) 

static void maybe_print_line ( source_location  src_loc  )  [static]

Definition at line 210 of file c-ppoutput.c.

References line_table, linemap_lookup(), map, print, print_line(), putc(), SOURCE_LINE, and src_line.

void pp_dir_change ( cpp_reader *pfile  ATTRIBUTE_UNUSED,
const char *  dir 
)

Definition at line 370 of file c-ppoutput.c.

References alloca, cpp_quote_string(), fprintf(), p, print, and strlen().

void pp_file_change ( const struct line_map map  ) 

void preprocess_file ( cpp_reader pfile  ) 

static void print_line ( source_location  src_loc,
const char *  special_flags 
) [static]

static void scan_translation_unit ( cpp_reader pfile  )  [static]

static void scan_translation_unit_trad ( cpp_reader pfile  )  [static]


Variable Documentation

Definition at line 39 of file c-ppoutput.c.

Definition at line 34 of file c-ppoutput.c.

const cpp_token* prev

Definition at line 35 of file c-ppoutput.c.

struct { ... } print [static]

unsigned char printed

Definition at line 38 of file c-ppoutput.c.

const cpp_token* source

Definition at line 36 of file c-ppoutput.c.

int src_line

Definition at line 37 of file c-ppoutput.c.


Generated on Wed Apr 8 14:19:39 2009 for Open64 by  doxygen 1.5.6