next up previous contents
Next: vg.pl Up: process_c_file.pl Previous: scan_quote

process_file

# Arguments: $infile$ : name of file to process
# Return Values: $LOC$ : lines of code in file
#                $curr_CCD_Vg$ : V(g) of #CCD logic for entire file
#                $curr_CCD_Vgp$ : V'(g) of #CCD logic for entire file
#                @output : array of directives and their associated info:
#                   $directive$ : #CCD                                    
#                   $expression$ : expression for #CCD                    
#                   $line_num_for_directive$ : line #CCD starts on        
#                   $.$ : lines of code up to and including #CCD          
#                   $curr_CCD_Vgp$ : V'(g) up to and including #CCD       
#                   $curr_CCD_Vg$ : V(g) up to and including #CCD
# Description: Given a filename, parse the file and find all preprocessor
#              conditionals (#if, #ifdef, #ifndef, #elif, #els, #endif).  
#              Also handles comments and quoted strings with the help of 
#              scan_comment() and scan_quote().  C++ style comments are
#              handled directly in this subroutine.