/* Copyright (C) 2006 T. Scott Dattalo This file is part of gpsim. gpsim is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. gpsim is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with gpsim; see the file COPYING. If not, write to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* IN_MODULE should be defined for modules */ #define IN_MODULE #include #include #include "../../config.h" // get the definition for HAVE_GUI #include "../modules.h" //#include "dspic-processors.h" /* class Module_Types { public: char *names[2]; Module * (*module_constructor) (void); }; */ Module_Types available_modules[] = { // No more modules { {0,0},0} }; #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ /******************************************************************************** * mod_list - Display all of the modules in this library. * * This is a required function for gpsim compliant libraries. */ Module_Types * get_mod_list(void) { return available_modules; } /******************************************************************************** * mod_list - Display all of the modules in this library. * * This is a required function for gpsim compliant libraries. */ void mod_list(void) { unsigned int number_of = sizeof(available_modules) / sizeof(Module_Types); unsigned int i,j,l; unsigned int k,longest; for(i=0,longest=0; ilongest) longest = k; } k=0; do { for(i=0; (i<4) && (k