The Machine Perception Toolbox

[Introduction]- [News]- [Download]- [Screenshots]- [Manual (pdf)]- [Forums]- [API Reference]- [Repository ]

 

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

headers.h File Reference

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Functions

void headers (TARGET *t)


Function Documentation

void headers TARGET t  ) 
 

Definition at line 61 of file headers.c.

References frame::args, _target::boundname, evaluate_rule(), FRAME, frame_free(), frame_init(), hcache(), headers1(), L0, LIST, list_new(), list_next, lol_add(), lol_get(), MAXINC, _target::name, regex_compile(), _list::string, TARGET, and var_get().

Referenced by make0(), and make1c().

00062 {
00063     LIST        *hdrscan;
00064     LIST        *hdrrule;
00065     LIST        *headlist = 0;
00066     regexp      *re[ MAXINC ];
00067     int rec = 0;
00068         
00069     if( !( hdrscan = var_get( "HDRSCAN" ) ) || 
00070         !( hdrrule = var_get( "HDRRULE" ) ) )
00071         return;
00072 
00073     if( DEBUG_HEADER )
00074         printf( "header scan %s\n", t->name );
00075 
00076     /* Compile all regular expressions in HDRSCAN */
00077 
00078     while( rec < MAXINC && hdrscan )
00079     {
00080         re[rec++] = regex_compile( hdrscan->string );
00081         hdrscan = list_next( hdrscan );
00082     }
00083 
00084     /* Doctor up call to HDRRULE rule */
00085     /* Call headers1() to get LIST of included files. */
00086     {
00087         FRAME   frame[1];
00088         frame_init( frame );
00089         lol_add( frame->args, list_new( L0, t->name ) );
00090 #ifdef OPT_HEADER_CACHE_EXT
00091         lol_add( frame->args, hcache( t, rec, re, hdrscan ) );
00092 #else
00093         lol_add( frame->args, headers1( headlist, t->boundname, rec, re ) );
00094 #endif
00095 
00096         if( lol_get( frame->args, 1 ) )
00097             evaluate_rule( hdrrule->string, frame );
00098 
00099         /* Clean up */
00100 
00101         frame_free( frame );
00102     }
00103 }

Here is the call graph for this function:


Generated on Mon Nov 8 17:08:01 2004 for MPT by  doxygen 1.3.9.1