fromc.h File Reference

#include <stdio.h>
#include <string.h>
#include "machine.h"

Include dependency graph for fromc.h:

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

Go to the source code of this file.

Functions

int C2F (intfromc) _PARAMS((char *fname))
void SetFromCToON (void)
int IsFromC (void)


Function Documentation

int C2F ( intfromc   ) 

Definition at line 17 of file sci_fromc.c.

References C2F, CheckLhs, CheckRhs, CreateVarFromPtr, FALSE, FREE, IsFromC(), LhsVar, MALLOC, Max, n1, NULL, putlhsvar(), Rhs, and TRUE.

00018 {
00019         static int n1;
00020         int *paramoutINT=(int*)MALLOC(sizeof(int));
00021 
00022         Rhs = Max(0, Rhs);
00023         CheckRhs(0,0);
00024         CheckLhs(1,1);
00025 
00026         if ( IsFromC() )
00027         {
00028                 *paramoutINT=(int)(TRUE);
00029         }
00030         else
00031         {
00032                 *paramoutINT=(int)(FALSE);
00033         }
00034 
00035         n1=1;
00036         CreateVarFromPtr(1, "b", &n1, &n1, &paramoutINT);
00037         LhsVar(1)=1;
00038         C2F(putlhsvar)();
00039         if (paramoutINT) {FREE(paramoutINT);paramoutINT=NULL;}
00040 
00041         return 0;
00042 }

Here is the call graph for this function:

int IsFromC ( void   ) 

Definition at line 14 of file fromc.c.

00015 {
00016         return bFromC;
00017 }

void SetFromCToON ( void   ) 

Definition at line 9 of file fromc.c.

References bFromC, int, and TRUE.

Referenced by StartScilab().

00010 {
00011         bFromC=(int)(TRUE);
00012 }

Here is the caller graph for this function:


Generated on Sun Mar 4 15:14:52 2007 for Scilab [trunk] by  doxygen 1.5.1