[BACK]Return to load.c CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / asir2018 / parse

Diff for /OpenXM_contrib2/asir2018/parse/load.c between version 1.2 and 1.3

version 1.2, 2020/10/06 06:31:20 version 1.3, 2021/03/24 04:35:15
Line 45 
Line 45 
  * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE,   * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE,
  * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE.   * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE.
  *   *
  * $OpenXM: OpenXM_contrib2/asir2018/parse/load.c,v 1.1 2018/09/19 05:45:08 noro Exp $   * $OpenXM: OpenXM_contrib2/asir2018/parse/load.c,v 1.2 2020/10/06 06:31:20 noro Exp $
 */  */
 #include "ca.h"  #include "ca.h"
 #include "parse.h"  #include "parse.h"
Line 212  void env_init() {
Line 212  void env_init() {
       if ( !p )        if ( !p )
         break;          break;
     }      }
     i += 5;      i += 6;
     ASIRLOADPATH_LEN=i;      ASIRLOADPATH_LEN=i;
         ASIRLOADPATH=(char **)MALLOC(sizeof(char *)*i);      ASIRLOADPATH=(char **)MALLOC(sizeof(char *)*i);
     for ( l = 0; l<i; l++) ASIRLOADPATH[l] = NULL;      for ( l = 0; l<i; l++) ASIRLOADPATH[l] = NULL;
     e = getenv("ASIRLOADPATH");      e = getenv("ASIRLOADPATH");
     for ( i = 0; ; i++, e = p+1 ) {      for ( i = 0; ; i++, e = p+1 ) {
Line 226  void env_init() {
Line 226  void env_init() {
       if ( !p )        if ( !p )
         break;          break;
     }      }
     }else{    }else{
     ASIRLOADPATH=(char **)MALLOC(sizeof(char *)*3);      ASIRLOADPATH=(char **)MALLOC(sizeof(char *)*6);
     ASIRLOADPATH[0] = NULL;      ASIRLOADPATH[0] = NULL;
   }    }
   

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>