/[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 15 by aw0a, Sat Nov 13 16:45:56 2004 UTC revision 16 by ben.allan, Thu Nov 25 22:52:42 2004 UTC
# Line 45  Line 45 
45  #include <stdlib.h>  #include <stdlib.h>
46  #include "utilities/ascConfig.h"  #include "utilities/ascConfig.h"
47  #include "utilities/ascPrint.h"  #include "utilities/ascPrint.h"
48    #include "utilities/ascMalloc.h"
49  struct ascend_dlrecord {  struct ascend_dlrecord {
50    char *path;   /* library name */    char *path;   /* library name */
51    void *dlreturn; /* return from dlopen */    void *dlreturn; /* return from dlopen */
# Line 66  int AscAddRecord(void *dlreturn, CONST c Line 67  int AscAddRecord(void *dlreturn, CONST c
67    if (dlreturn == NULL || path == NULL) {    if (dlreturn == NULL || path == NULL) {
68      return 1;      return 1;
69    }    }
70    keeppath = strdup((char *)path);    keeppath = ascstrdup((char *)path);
71    if (keeppath==NULL) return 1;    if (keeppath==NULL) return 1;
72    new = (struct ascend_dlrecord *)malloc(sizeof(struct ascend_dlrecord));    new = (struct ascend_dlrecord *)malloc(sizeof(struct ascend_dlrecord));
73    if (new==NULL) {    if (new==NULL) {

Legend:
Removed from v.15  
changed lines
  Added in v.16

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