source: trunk/src/fortran/RpFortranCommon.h @ 829

Last change on this file since 829 was 511, checked in by dkearney, 15 years ago

moving all .h files to their respective src directories, updating tools.py to include python's re module, updated setup.py.in to use .h files from the installed version of rappture and to adapt to the new location of .h files. .h files are now all stored in the lib directory under the rappture installation folder. this should simplify people's code, so they dont have to include wierd search paths for header files. adjusted the paths in rappture.in, allowing people to use their own version of python and perl. octave on the other hand is still broken for people downloading our binary and not using libhdf5-1.6.2. src's makefile.in was modified to copy the .h files from the core and cee directories over to the rappture installation directory. the top level makefile.in has all kinds of changes mainly you can now type in ./configure --prefix=... --with-matlab=... and then make install. this will build and install the gui, language bindings, and examples. these changes will probably break the automatic builds but the necessary changes to the rappture-runtime package should be committed in good time.

File size: 966 bytes
Line 
1/*
2 * ----------------------------------------------------------------------
3 *  INTERFACE: Fortran Rappture Common Functions
4 *
5 *    Fortran functions common to all interfaces.
6 *
7 * ======================================================================
8 *  AUTHOR:  Derrick Kearney, Purdue University
9 *  Copyright (c) 2004-2005  Purdue Research Foundation
10 *
11 *  See the file "license.terms" for information on usage and
12 *  redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
13 * ======================================================================
14 */
15
16#include <stdlib.h>
17#include <ctype.h>
18#include <string.h>
19#include <string>
20
21#ifndef _RpFORTRAN_COMMON_H
22#define _RpFORTRAN_COMMON_H
23
24std::string null_terminate_str(const char* inStr, int len);
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
30char* null_terminate(char* inStr, int len);
31void fortranify(const char* inBuff, char* retText, int retTextLen);
32
33#ifdef __cplusplus
34}
35#endif
36   
37#endif
Note: See TracBrowser for help on using the repository browser.