/[ascend]/trunk/ascend/compiler/importhandler.c
ViewVC logotype

Diff of /trunk/ascend/compiler/importhandler.c

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

revision 2352 by jpye, Sun Dec 26 03:44:24 2010 UTC revision 2353 by jpye, Sat Jan 8 11:21:09 2011 UTC
# Line 38  Line 38 
38  /* #define SEARCH_DEBUG */  /* #define SEARCH_DEBUG */
39  /* #define FIND_DEBUG */  /* #define FIND_DEBUG */
40  /* #define IMPORTHANDLER_VERBOSE */  /* #define IMPORTHANDLER_VERBOSE */
41    /* #define IMPORT_DEBUG */
42    
43  /*  /*
44      Maximum number of importhandlers possible in one session. Hard to imagine      Maximum number of importhandlers possible in one session. Hard to imagine
# Line 165  int importhandler_extlib_import(const st Line 166  int importhandler_extlib_import(const st
166          ERROR_REPORTER_HERE(ASC_PROG_ERR,"File path is NULL");          ERROR_REPORTER_HERE(ASC_PROG_ERR,"File path is NULL");
167          return 1;          return 1;
168      }      }
169  #ifdef SEARCH_DEBUG  #ifdef IMPORT_DEBUG
170      CONSOLE_DEBUG("Importing extlib with path '%s'",path);      CONSOLE_DEBUG("Importing extlib with path '%s'",path);
171  #endif  #endif
172    
# Line 271  int importhandler_destroylibrary(){ Line 272  int importhandler_destroylibrary(){
272              }              }
273              err = err | thiserr;              err = err | thiserr;
274          }          }
275            if(!err){
276                ASC_FREE(importhandler_library);
277                importhandler_library = NULL;
278            }
279      }      }
280      if(err)ERROR_REPORTER_HERE(ASC_PROG_WARNING,"Failed to destroy importhandler library");      if(err)ERROR_REPORTER_HERE(ASC_PROG_WARNING,"Failed to destroy importhandler library");
281      return err;      return err;
# Line 358  int importhandler_search_test(struct Fil Line 363  int importhandler_search_test(struct Fil
363  #endif  #endif
364              continue;              continue;
365          }          }
366          /* CONSOLE_DEBUG("Filename '%s'",filename); */  #ifdef SEARCH_DEBUG
367            CONSOLE_DEBUG("Filename '%s'",filename);
368    #endif
369          fp = ospath_new_noclean(filename); /* eg 'libmyext.so' */          fp = ospath_new_noclean(filename); /* eg 'libmyext.so' */
370          ASC_FREE(filename);          ASC_FREE(filename);
371          asc_assert(fp!=NULL);          asc_assert(fp!=NULL);

Legend:
Removed from v.2352  
changed lines
  Added in v.2353

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