declare.h File Reference

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

Go to the source code of this file.

Functions

int CheckDeclare (int type, char *declaration)
void WriteInitDeclarations (FILE *f)


Function Documentation

int CheckDeclare ( int  type,
char *  declaration 
)

Definition at line 68 of file declare.c.

References i, Init, j, and Declare::ndecls.

00069 {
00070   int j = 0;
00071   while ( Init[j].type != -1) 
00072     {
00073       if ( Init[j].type == type ) 
00074         {
00075           int i;
00076           for ( i = 0 ; i < Init[j].ndecls ; i++ ) 
00077             {
00078               if ( strcmp(declaration,Init[j].decls[i])==0) 
00079                 return(1);
00080             }
00081           return(0);
00082         }
00083       j++;
00084     }
00085   return(0);
00086 }

void WriteInitDeclarations ( FILE *  f  ) 

Definition at line 160 of file declare.c.

References DEC_INIT, Fprintf(), i, indent, Init, j, and Declare::ndecls.

Referenced by WriteDeclaration().

00161 {
00162   int j = 0;
00163   int i;
00164   while ( Init[j].type != -1) 
00165     {
00166       if ( Init[j].type == DEC_INIT) 
00167         {
00168           for (i= 0 ; i < Init[j].ndecls ; i++) 
00169             {
00170               Fprintf(f,indent,"%s",Init[j].decls[i]);
00171               Fprintf(f,indent,";\n");
00172             }
00173         }
00174       j++;
00175     }
00176 }

Here is the call graph for this function:

Here is the caller graph for this function:


Generated on Sun Mar 4 16:08:21 2007 for Scilab [trunk] by  doxygen 1.5.1