OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [binutils-2.18.50/] [gprof/] [source.h] - Diff between revs 156 and 816

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 156 Rev 816
/* source.h
/* source.h
 
 
   Copyright 2000, 2001, 2002, 2004, 2007 Free Software Foundation, Inc.
   Copyright 2000, 2001, 2002, 2004, 2007 Free Software Foundation, Inc.
 
 
   This file is part of GNU Binutils.
   This file is part of GNU Binutils.
 
 
   This program is free software; you can redistribute it and/or modify
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 3 of the License, or
   the Free Software Foundation; either version 3 of the License, or
   (at your option) any later version.
   (at your option) any later version.
 
 
   This program is distributed in the hope that it will be useful,
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
   GNU General Public License for more details.
 
 
   You should have received a copy of the GNU General Public License
   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   along with this program; if not, write to the Free Software
   Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
   Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
   MA 02110-1301, USA.  */
   MA 02110-1301, USA.  */


#ifndef source_h
#ifndef source_h
#define source_h
#define source_h
 
 
typedef struct source_file
typedef struct source_file
  {
  {
    struct source_file *next;
    struct source_file *next;
    const char *name;           /* Name of source file.  */
    const char *name;           /* Name of source file.  */
    unsigned long ncalls;       /* # of "calls" to this file.  */
    unsigned long ncalls;       /* # of "calls" to this file.  */
    int num_lines;              /* # of lines in file.  */
    int num_lines;              /* # of lines in file.  */
    int nalloced;               /* Number of lines allocated.  */
    int nalloced;               /* Number of lines allocated.  */
    void **line;                /* Usage-dependent per-line data.  */
    void **line;                /* Usage-dependent per-line data.  */
  }
  }
Source_File;
Source_File;
 
 
/* Options.  */
/* Options.  */
 
 
/* Create annotated output files?  */
/* Create annotated output files?  */
extern bfd_boolean create_annotation_files;
extern bfd_boolean create_annotation_files;
 
 
/* List of directories to search for source files.  */
/* List of directories to search for source files.  */
extern Search_List src_search_list;
extern Search_List src_search_list;
 
 
/* Chain of source-file descriptors.  */
/* Chain of source-file descriptors.  */
extern Source_File *first_src_file;
extern Source_File *first_src_file;
 
 
/* Returns pointer to source file descriptor for PATH/FILENAME.  */
/* Returns pointer to source file descriptor for PATH/FILENAME.  */
extern Source_File *source_file_lookup_path (const char *);
extern Source_File *source_file_lookup_path (const char *);
extern Source_File *source_file_lookup_name (const char *);
extern Source_File *source_file_lookup_name (const char *);
 
 
/* Read source file SF output annotated source.  The annotation is at
/* Read source file SF output annotated source.  The annotation is at
   MAX_WIDTH characters wide and for each source-line an annotation is
   MAX_WIDTH characters wide and for each source-line an annotation is
   obtained by invoking function ANNOTE.  ARG is an argument passed to
   obtained by invoking function ANNOTE.  ARG is an argument passed to
   ANNOTE that is left uninterpreted by annotate_source().
   ANNOTE that is left uninterpreted by annotate_source().
 
 
   Returns a pointer to the output file (which maybe stdout) such
   Returns a pointer to the output file (which maybe stdout) such
   that summary statistics can be printed.  If the returned file
   that summary statistics can be printed.  If the returned file
   is not stdout, it should be closed when done with it.  */
   is not stdout, it should be closed when done with it.  */
extern FILE *annotate_source
extern FILE *annotate_source
  (Source_File *sf, unsigned int max_width,
  (Source_File *sf, unsigned int max_width,
           void (*annote) (char *, unsigned int, int, PTR arg),
           void (*annote) (char *, unsigned int, int, PTR arg),
           PTR arg);
           PTR arg);
#endif /* source_h */
#endif /* source_h */
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.