[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.1 and 1.2

version 1.1, 2018/09/19 05:45:08 version 1.2, 2020/10/06 06:31:20
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: OpenXM_contrib2/asir2018/parse/load.c,v 1.1 2018/09/19 05:45:08 noro Exp $
 */  */
 #include "ca.h"  #include "ca.h"
 #include "parse.h"  #include "parse.h"
Line 147  void env_init() {
Line 147  void env_init() {
   char rootname[BUFSIZ];    char rootname[BUFSIZ];
     size_t len;      size_t len;
   
   if ( oxhome = getenv("OpenXM_HOME") ) {    if ( ( oxhome = getenv("OpenXM_HOME") ) != 0 ) {
     len = strlen(oxhome);      len = strlen(oxhome);
   }else {    }else {
 #if defined(VISUAL) || defined(__MINGW32__)  #if defined(VISUAL) || defined(__MINGW32__)
Line 206  void env_init() {
Line 206  void env_init() {
       strcpy(asir_pager,MORE);        strcpy(asir_pager,MORE);
     }      }
   }    }
   if ( e = getenv("ASIRLOADPATH" ) ) {    if ( ( e = getenv("ASIRLOADPATH" ) ) != 0 ) {
     for ( i = 0; ; i++, e = p+1 ) {      for ( i = 0; ; i++, e = p+1 ) {
       p = (char *)index(e,ENVDELIM);        p = (char *)index(e,ENVDELIM);
       if ( !p )        if ( !p )
Line 400  int loadfile(char *s)
Line 400  int loadfile(char *s)
 {  {
   FILE *in;    FILE *in;
   
   if ( in = fopen(s,"r") ) {    if ( ( in = fopen(s,"r") ) != 0 ) {
     fclose(in);      fclose(in);
     loadasirfile(s);      loadasirfile(s);
     return 1;      return 1;

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

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