BRoutine Analyzer Source File Analysis - ranalyzer.h8

ranalyzer.h Source Code

LGo to: Contents; Previous section; Beginning of section; Next file in section; Previous file in section.

Q

Routines In This File (Alphabetical)



 Line Name
----- ----,  128 make_filename


BEGINNING OF FILE


V     1: /****************************************************************************/     2: /*									    */1     3: /*  FACILITY:	Routine Analyzer					    */     4: /*									    */+     5: /*  MODULE:	Main Header						    */     6: /*									    */O     7: /*  AUTHOR:	Steve Branam, Network Product Support Group, Digital	    */>     8: /*		Equipment Corporation, Littleton, MA, USA.		    */     9: /*									    */U    10: /*  DESCRIPTION: This header file contains the general definitions and	    */L    11: /*  nested header includes used by Routine Analyzer modules.		    */    12: /*									    */*    13: /*  REVISION HISTORY:							    */    14: /*									    */7    15: /*  V1.0-00 27-JAN-1995 Steve Branam					    */    16: /*									    */A    17: /*	Modified brief help string and version ident.			    */    18: /*									    */7    19: /*  V0.1-00 24-AUG-1994 Steve Branam					    */    20: /*									    */(    21: /*	Original version.						    */    22: /*									    */V    23: /****************************************************************************/    24: B    25: #include "globdb.h"			    /* Global database class.	    */    26:     27: /*									    *//    28: /* Miscellaneous constants.						    */    29: /*									    */    30: <    31: #define PROGRAM_IDENT	    "Routine Analyzer V1.0-00"V    32: #define PROGRAM_COPYRIGHT   "Copyright (C) 1994 Digital Equipment Corporation"’    33: #define PROGRAM_AUTHOR      "Written by Steve Branam, Network Product Support Group,\nDigital Equipment Corporation, Littleton, MA, USA\n"G    34: #define PROGRAM_PARAMS	    "PARAMETERS: product_file [options]"E    35: #define PROGRAM_HELP	    "        OR: %chelp for full help\n"E    36: #define TAB_SIZE	    8		    /* Number of chars in TAB.	    */N    37: #define MAX_PRODUCT_NAME    64		    /* Max length of product name.  */N    38: #define MAX_ROUTINE_NAME    64		    /* Max length of routine name.  */0    39: 					    /* Max routine fullname.	    */L    40: #define MAX_ROUTINE_IDENT   MAX_FILE_NAME + MAX_ROUTINE_NAME + 3    K    41: #define MIN_TREE_SIZE	    5		    /* Minimum number of nodes to   */3    42: 					    /* generate separate call tree  */3    43: 					    /* for routine with callers.    */I    44: #define MAX_TREE_DEPTH	    20		    /* Max call tree depth.	    */M    45: #define DEF_MAX_CALLERS	    3		    /* Default value of max callers */3    46: 					    /* to allow subtree expansion.  */M    47: #define MIN_MAX_CALLERS	    1		    /* Min value of max callers.    */N    48: #define MAX_MAX_CALLERS	    10		    /* Max value of max callers.    */O    49: #define DEF_MAX_HTML_BYFILE 200		    /* Default value of max tree    */3    50: 					    /* entries for HTML output.	    */O    51: #define DEF_MAX_HTML_XREF   200		    /* Default value of max xref    */3    52: 					    /* entries for HTML output.	    */O    53: #define FILE_EXT_SEPARATOR  '.'		    /* File name/extension sep.	    */    54:     55: /*									    */4    56: /* Report/listing format strings.					    */    57: /*									    */    58: +    59: #define LIST_LINE_NUMBER    "%8d: "+    60: #define LIST_LINE_SPACER    "%8c  "    61:     62: /*									    */V    63: /* Report/listing output file name suffixes, to be appended to the output   */)    64: /* file name prefix.							    */    65: /*									    */    66: 4    67: #define OUTFILE_SUFFIX_DEFLIST	    "defined"6    68: #define OUTFILE_SUFFIX_UNDEFLIST    "undefind"0    69: #define OUTFILE_SUFFIX_CALLS	    "calls".    70: #define OUTFILE_SUFFIX_XREF	    "xref"5    71: #define OUTFILE_SUFFIX_MOREXREF     "xrf%05d"6    72: #define OUTFILE_SUFFIX_CALLTREES    "calltree"5    73: #define OUTFILE_SUFFIX_MORETREES    "cat%05d"2    74: #define OUTFILE_SUFFIX_BYFILE	    "byfile"5    75: #define OUTFILE_SUFFIX_MOREBYFILE   "byf%05d"0    76: #define OUTFILE_SUFFIX_FILES	    "files"3    77: #define OUTFILE_SUFFIX_SOURCE	    "src%05d"6    78: #define OUTFILE_SUFFIX_FIRSTSOURCE  "src00001"2    79: #define OUTFILE_SUFFIX_LIST	    "analysis"    80:     81: /*									    */;    82: /* Report/listing output file extensions.				    */    83: /*									    */    84: +    85: #define OUTFILE_EXT_LIST	    ".lis"+    86: #define OUTFILE_EXT_TEXT	    ".txt"    87: #ifdef MSDOS +    88: #define OUTFILE_EXT_SDML	    ".sdm"
    89: #else,    90: #define OUTFILE_EXT_SDML	    ".sdml"    91: #endif    92: #ifdef MSDOS +    93: #define OUTFILE_EXT_HTML	    ".htm"
    94: #else,    95: #define OUTFILE_EXT_HTML	    ".html"    96: #endif+    97: #define OUTFILE_EXT_RTF		    ".doc".    98: #define OUTFILE_EXT_WINHELP	    ".hlp".    99: #define OUTFILE_EXT_VMSHELP	    ".hlp"   100:    101: /*									    */+   102: /* Report field sizes.							    */   103: /*									    */   104: .   105: #define RPT_HTML_FILE_FIELD_LEN	    23.   106: #define RPT_HTML_ROUTINE_FIELD_LEN  23.   107: #define RPT_HTML_ROUTINE_WIDE_LEN   48.   108: #define RPT_HTML_ROUTINE_MEDIUM_LEN 40   109:    110: /*									    */.   111: /* HTML section subtitles.						    */   112: /*									    */   113: 1   114: #define HTML_SECTION_FILES	"Source Files"D   115: #define HTML_SECTION_DEFINED	"Defined Routines Alphabetical"H   116: #define HTML_SECTION_UNDEFINED	"Undefined Routines Alphabetical"C   117: #define HTML_SECTION_CALLS	"Defined Routines Calls/Callers"K   118: #define HTML_SECTION_TREES	"Routine Call Trees (Selected Routines)":   119: #define HTML_SECTION_XREF	"Caller Cross Reference">   120: #define HTML_SECTION_BYFILE	"Defined Routines By File"1   121: #define HTML_SECTION_SOURCE	"Source Code"   122:    123:    124: /*									    */.   125: /* General-purpose macros.						    */   126: /*									    */   127: 

fROUTINE make_filename. Go to: mNext routine in file; Routines in this file.



W   128: #define make_filename(pfx,fn,ext,buf) strcat(strcat(strcpy(buf, pfx), fn), ext)
KEND make_filename. Go to: Beginning of routine.





   129:    130: /*									    */3   131: /* Generic parser-related types.					    */   132: /*									    */   133:    134: typedef	enum {   135:     PARSE_ERROR,   136:     END_OF_SOURCE,   137:     ROUTINE_DEF_BEGIN,   138:     ROUTINE_DEF_END,   139:     ROUTINE_REF   140: } language_element;   141: -   142: typedef language_element (*PARSER)();   143: 
END OF FILETOTAL: 1 routines, 1 Avg Length

LGo to: Contents; Previous section; Beginning of section; Next file in section; Previous file in section.