/[ascend]/trunk/base/generic/utilities/ascDynaLoad.c
ViewVC logotype

Diff of /trunk/base/generic/utilities/ascDynaLoad.c

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

revision 477 by ben.allan, Mon Apr 17 03:18:06 2006 UTC revision 478 by johnpye, Mon Apr 17 08:10:48 2006 UTC
# Line 1  Line 1 
1  /* What is the source of this file ?? -- johnpye */  /*  ASCEND modelling environment
2  /*      Copyright (C) 2006 Carnegie Mellon University
  *  -----------------------------------------------------------------  
  *    Copyright 1993 D.I.S. - Universita` di Pavia - Italy  
  *  -----------------------------------------------------------------  
  *  
  *  Permission to  use,  copy,   modify,   distribute  this  software  
  *  and  its  documentation for any purpose is hereby granted without  
  *  fee, provided that the above copyright  notice   appear   in  all  
  *  copies   and  that both that copyright notice and this permission  
  *  notice appear in supporting documentation, and that the  name  of  
  *  D.I.S.   not  be  used  in advertising or publicity pertaining to  
  *  distribution of the software without specific, written prior per-  
  *  mission.   D.I.S.  makes no representations about the suitability  
  *  of this software for any purpose.  It is provided "as is" without  
  *  express or implied warranty.  
  *  
  *  D.I.S. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, IN-  
  *  CLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN  
  *  NO EVENT SHALL D.I.S.  BE LIABLE FOR  ANY  SPECIAL,  INDIRECT  OR  
  *  CONSEQUENTIAL  DAMAGES  OR  ANY DAMAGES WHATSOEVER RESULTING FROM  
  *  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION  OF  CONTRACT,  
  *  NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNEC-  
  *  TION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.  
  */  
3    
4        This program is free software; you can redistribute it and/or modify
5        it under the terms of the GNU General Public License as published by
6        the Free Software Foundation; either version 2, or (at your option)
7        any later version.
8    
9        This program is distributed in the hope that it will be useful,
10        but WITHOUT ANY WARRANTY; without even the implied warranty of
11        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12        GNU General Public License for more details.
13    
14        You should have received a copy of the GNU General Public License
15        along with this program; if not, write to the Free Software
16        Foundation, Inc., 59 Temple Place - Suite 330,
17        Boston, MA 02111-1307, USA.
18    */
19  /*  /*
20      This file *should* support unix/linux-style systems (dlfcn.h)      This file *should* support unix/linux-style systems (dlfcn.h)
21      and Windows.      and Windows.
# Line 32  Line 24 
24      with dynamic libraries!      with dynamic libraries!
25  */  */
26    
   
   
   
 /*#ifdef DYNAMIC_PACKAGES*/  
 /* no, no, no. This is used regardless of whether we have dynamic packages. */  
   
   
   
   
27  #include <stdio.h>  #include <stdio.h>
28  #include <stdlib.h>  #include <stdlib.h>
29  #include <stdarg.h>  #include <stdarg.h>
# Line 365  int Asc_DynamicLoad(CONST char *path, CO Line 348  int Asc_DynamicLoad(CONST char *path, CO
348      Did we get something from the above?      Did we get something from the above?
349  */  */
350    
351  #ifndef ASCDL_OK  #ifndef ASCDL_OK
352  # error "Unable to define an Asc_DynamicLoad function. Check your compiler options and installed system libraries."  # error "Unable to define an Asc_DynamicLoad function. Check your compiler options and installed system libraries."
353  #endif  #endif
354    
# Line 508  DynamicF Asc_DynamicFunction(CONST char Line 491  DynamicF Asc_DynamicFunction(CONST char
491    return symreturn;    return symreturn;
492  }  }
493    
   
   
 /* #endif */  
   
   

Legend:
Removed from v.477  
changed lines
  Added in v.478

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