pike.git / src / modules / Math / math_module.c

version» Context lines:

pike.git/src/modules/Math/math_module.c:1:   /* -  * $Id: math_module.c,v 1.8 2001/07/31 19:31:22 marcus Exp $ +  * $Id: math_module.c,v 1.9 2002/05/09 16:04:55 agehall Exp $    */      #include "global.h"   #include "config.h"   #include "program.h"      #include "math_module.h" -  + #include "transforms.h"      /* must be included last */   #include "module_magic.h"      /*** module init & exit & stuff *****************************************/      /* add other parsers here */      struct program *math_matrix_program;   struct program *math_imatrix_program;   struct program *math_fmatrix_program;   struct program *math_smatrix_program;   #ifdef INT64   struct program *math_lmatrix_program;   #endif /* INT64 */ -  + struct program *math_transforms_program;      static struct math_class   {    char *name;    void (*func)(void);    struct program **pd;   } sub[] = {    {"Matrix",init_math_matrix,&math_matrix_program},    {"IMatrix",init_math_imatrix,&math_imatrix_program},   #ifdef INT64    {"LMatrix",init_math_lmatrix,&math_lmatrix_program},   #endif /* INT64 */    {"FMatrix",init_math_fmatrix,&math_fmatrix_program},    {"SMatrix",init_math_smatrix,&math_smatrix_program}, -  +  {"Transforms",init_math_transforms,&math_transforms_program},   };      void pike_module_exit(void)   {    int i;    for (i=0; i<(int)(sizeof(sub)/sizeof(sub[0])); i++)    if (sub[i].pd && sub[i].pd[0])    free_program(sub[i].pd[0]);       exit_math_matrix();    exit_math_imatrix();    exit_math_fmatrix();    exit_math_smatrix(); -  +  exit_math_transforms();   }      void pike_module_init(void)   {    int i;    DECLARE_INF    DECLARE_NAN       for (i=0; i<(int)(sizeof(sub)/sizeof(sub[0])); i++)    {