#ifdef __cplusplus extern "C" { #endif #include #include #include #include static int direct_gateway(char *fname,void F(void)) { F();return 0;}; extern Gatefunc cpp_intfminunc; extern Gatefunc cpp_intfminbnd; extern Gatefunc cpp_intfmincon; static GenericTable Tab[]={ {(Myinterfun)sci_gateway,cpp_intfminunc,"inter_fminunc"}, {(Myinterfun)sci_gateway,cpp_intfminbnd,"inter_fminbnd"}, {(Myinterfun)sci_gateway,cpp_intfmincon,"inter_fmincon"}, }; int C2F(libFOSSEE_Scilab_intqpipopt)() { Rhs = Max(0, Rhs); if (*(Tab[Fin-1].f) != NULL) { if(pvApiCtx == NULL) { pvApiCtx = (StrCtx*)MALLOC(sizeof(StrCtx)); } pvApiCtx->pstName = (char*)Tab[Fin-1].name; (*(Tab[Fin-1].f))(Tab[Fin-1].name,Tab[Fin-1].F); } return 0; } #ifdef __cplusplus } #endif