diff --git a/fem/src/Load.c b/fem/src/Load.c index 60ce8d5056..cdf914c62c 100644 --- a/fem/src/Load.c +++ b/fem/src/Load.c @@ -3,7 +3,7 @@ ! * Elmer, A Finite Element Software for Multiphysical Problems ! * ! * Copyright 1st April 1995 - , CSC - IT Center for Science Ltd., Finland -! * +! * ! * This library is free software; you can redistribute it and/or ! * modify it under the terms of the GNU Lesser General Public ! * License as published by the Free Software Foundation; either @@ -13,10 +13,10 @@ ! * but WITHOUT ANY WARRANTY; without even the implied warranty of ! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ! * Lesser General Public License for more details. -! * +! * ! * You should have received a copy of the GNU Lesser General Public -! * License along with this library (in file ../LGPL-2.1); if not, write -! * to the Free Software Foundation, Inc., 51 Franklin Street, +! * License along with this library (in file ../LGPL-2.1); if not, write +! * to the Free Software Foundation, Inc., 51 Franklin Street, ! * Fifth Floor, Boston, MA 02110-1301 USA ! * ! ****************************************************************************** @@ -31,7 +31,7 @@ ! * Web: http://www.csc.fi/elmer ! * Address: CSC - IT Center for Science Ltd. ! * Keilaranta 14 -! * 02101 Espoo, Finland +! * 02101 Espoo, Finland ! * ! * Original Date: 02 Jun 1997 ! * @@ -64,7 +64,7 @@ /* pc needs more bits on 64bit arch */ #ifdef ARCH_32_BITS #define f_ptr int32_t * -#else +#else #define f_ptr int64_t * #endif @@ -86,7 +86,7 @@ #ifdef USE_ISO_C_BINDINGS void STDCALLBULL getsolverhome( char *solverDir, int *len) #else -void STDCALLBULL FC_FUNC(getsolverhome,GETSOLVERHOME) +void STDCALLBULL FC_FUNC(getsolverhome,GETSOLVERHOME) ( char *solverDir, int *len) #endif { @@ -188,14 +188,14 @@ void STDCALLBULL FC_FUNC(envir,ENVIR) (char *Name, char *Value, int *len) static void STDCALLBULL fortranMangle(char *orig, char *mangled) { int uscore, i; - + strcpy( mangled, orig ); if(ELMER_LINKTYP == 1 || ELMER_LINKTYP == 3 || ELMER_LINKTYP == 4) { for( i=0 ; i= 'A' && mangled[i] <= 'Z' ) + if ( mangled[i] >= 'A' && mangled[i] <= 'Z' ) mangled[i] += 'a' - 'A'; } } @@ -203,11 +203,11 @@ static void STDCALLBULL fortranMangle(char *orig, char *mangled) { for( i=0; i= 'a' && mangled[i] <= 'z' ) + if ( mangled[i] >= 'a' && mangled[i] <= 'z' ) mangled[i] += 'A' - 'a'; } } - + if(ELMER_LINKTYP == 1) /* underscore */ { strcat( mangled, "_" ); @@ -218,12 +218,12 @@ static void STDCALLBULL fortranMangle(char *orig, char *mangled) for( i=0; i