/[ascend]/trunk/models/johnpye/extfn/extfntest.c
ViewVC logotype

Diff of /trunk/models/johnpye/extfn/extfntest.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 533 by johnpye, Tue Apr 18 04:47:11 2006 UTC revision 534 by johnpye, Tue Apr 25 13:25:04 2006 UTC
# Line 1  Line 1 
1  #include <stdio.h>  /*  ASCEND modelling environment
2        Copyright (C) 1999 Benjamin A Allan
3        Copyright (C) 2006 Carnegie Mellon University
4    
5        This program is free software; you can redistribute it and/or modify
6        it under the terms of the GNU General Public License as published by
7        the Free Software Foundation; either version 2, or (at your option)
8        any later version.
9    
10        This program is distributed in the hope that it will be useful,
11        but WITHOUT ANY WARRANTY; without even the implied warranty of
12        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13        GNU General Public License for more details.
14    
15        You should have received a copy of the GNU General Public License
16        along with this program; if not, write to the Free Software
17        Foundation, Inc., 59 Temple Place - Suite 330,
18        Boston, MA 02111-1307, USA.
19    */
20    
21  #include <utilities/error.h>  #include <stdio.h>
22    
23  #include <utilities/ascConfig.h>  #include <utilities/ascConfig.h>
24    #include <utilities/error.h>
25    
26  #include <compiler/fractions.h>  #include <compiler/fractions.h>
27  #include <compiler/compiler.h>  #include <compiler/compiler.h>
# Line 24  int addone_calc(struct Slv_Interp *slv_i Line 43  int addone_calc(struct Slv_Interp *slv_i
43      It sets up the functions in this external function library      It sets up the functions in this external function library
44  */  */
45    
46  extern int  #ifndef ASC_EXPORT
47  ASC_EXPORT extfntest_register(){  # error "Where is ASC_EXPORT?"
48    #endif
49    
50    extern
51    ASC_EXPORT(int) extfntest_register(){
52      const char *addone_help = "This is a test of the dynamic user packages functionality";      const char *addone_help = "This is a test of the dynamic user packages functionality";
53      int result = 0;      int result = 0;
54    

Legend:
Removed from v.533  
changed lines
  Added in v.534

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22