ncuri.c#94    NCURIduri = NULL;
#114    duri = (NCURI*)calloc(1,sizeof(NCURI));
#115    if(duri == NULL)
#119    duri->uri = nulldup(uri0);
#130    duri->strings = uri;
#327    duri->protocol = protocol;
#328    duri->user = user;
#329    duri->password = pwd;
#330    duri->host = host;
#331    duri->port = port;
#332    duri->file = file;
#334    ncurisetconstraints(duri,constraint);
#343        duri->params = (char*)malloc(space);
#344 duri->params[0] = EOFCHAR; /* so we can use strcat */
#346            strcat(duri->params,prefixparams);
#348 strcat(duri->params,"&");
#351            strcat(duri->params,suffixparams);
#357        fprintf(stderr," params=|%s|",FIX(duri->params));
#358        fprintf(stderr," protocol=|%s|",FIX(duri->protocol));
#359        fprintf(stderr," host=|%s|",FIX(duri->host));
#360        fprintf(stderr," port=|%s|",FIX(duri->port));
#361        fprintf(stderr," file=|%s|",FIX(duri->file));
#362        fprintf(stderr," constraint=|%s|",FIX(duri->constraint));
#367      *durip = duri;
#369      ncurifree(duri);
#374    if(duri != NULL) {
#375 ncurifree(duri);
#381ncurifree(NCURIduri)
#383    if(duri == NULL) return;
#384    if(duri->uri != NULL) {free(duri->uri);}
#385    if(duri->params != NULL) {free(duri->params);}
#386    if(duri->paramlist != NULLncparamfree(duri->paramlist);
#387    if(duri->strings != NULL) {free(duri->strings);}
#388    if(duri->constraint != NULL) {free(duri->constraint);}
#389    if(duri->projection != NULL) {free(duri->projection);}
#390    if(duri->selection != NULL) {free(duri->selection);}
#391    free(duri);
#396ncurisetconstraints(NCURIduri,const char* constraints)
#402    if(duri->constraint != NULL) free(duri->constraint);
#403    if(duri->projection != NULL) free(duri->projection);
#404    if(duri->selection != NULL) free(duri->selection);
#405    duri->constraint = NULL;
#406    duri->projection = NULL;
#407    duri->selection = NULL;
#411    duri->constraint = nulldup(constraints);
#412    if(*duri->constraint == '?')
#413 nclshift1(duri->constraint);
#415    p = duri->constraint;
#432    duri->projection = proj;
#433    duri->selection = select;
#445ncuribuild(NCURIduri, const char* prefix, const char* suffix, int flags)
#457 && duri->params != NULL);
#459 && duri->params != NULL);
#461                && duri->user != NULL && duri->password != NULL);
#463                    && duri->constraint != NULL);
#471    len += (NILLEN(duri->protocol)+NILLEN("://"));
#473 len += (NILLEN(duri->user)+NILLEN(duri->password)+NILLEN(":@"));
#475    len += (NILLEN(duri->host));
#476    if(duri->port != NULL) {
#477 len += (NILLEN(":")+NILLEN(duri->port));
#480    tmpfile = duri->file;
#493 tmpquery = duri->constraint;
#501 if(duri->paramlist == NULL)
#502     if(!ncuridecodeparams(duri))
#504 for(paramslen=0,nparams=0,p=duri->paramlist;*p;p++) {
#525 ncappendparams(newuri,duri->paramlist);
#527    if(duri->protocol != NULL)
#528 strcat(newuri,duri->protocol);
#531        strcat(newuri,duri->user);
#533        strcat(newuri,duri->password);
#536    if(duri->host != NULL) { /* may be null if using file: protocol */
#537        strcat(newuri,duri->host);
#539    if(duri->port != NULL) {
#541        strcat(newuri,duri->port);
#554 ncappendparams(newuri,duri->paramlist);
ocuri.c#92    OCURIduri = NULL;
#112    duri = (OCURI*)calloc(1,sizeof(OCURI));
#113    if(duri == NULL)
#117    duri->uri = nulldup(uri0);
#128    duri->strings = uri;
#305    duri->protocol = protocol;
#306    duri->userpwd = userpwd;
#307    duri->host = host;
#308    duri->port = port;
#309    duri->file = file;
#311    ocurisetconstraints(duri,constraint);
#321    duri->params = (char*)malloc(space+1);
#322    if(duri->params == NULL)
#324    duri->params[0] = EOFCHAR; /* so we can use strcat */
#326      strncat(duri->params,prefixparams,space);
#328 strncat(duri->params,"&",space);
#331      strncat(duri->params,suffixparams,space);
#339        fprintf(stderr," protocol=|%s|",FIX(duri->protocol));
#340        fprintf(stderr," host=|%s|",FIX(duri->host));
#341        fprintf(stderr," port=|%s|",FIX(duri->port));
#342        fprintf(stderr," file=|%s|",FIX(duri->file));
#343        fprintf(stderr," constraint=|%s|",FIX(duri->constraint));
#344        fprintf(stderr," params=|%s|",FIX(duri->params));
#346 if(duri->paramlist == NULL) {
#347     if(!ocuridecodeparams(duri)) {
#349 duri->paramlist = NULL;
#352 if(duri->paramlist != NULL) {
#353     for(p=duri->paramlist,nparms=0;*p;p++,nparms++);
#357         char** pos = duri->paramlist+(i*2);
#364    if(durip != NULL) *durip = duri; else free(duri);
#368    if(duri != NULL) {
#369 ocurifree(duri);
#375ocurifree(OCURIduri)
#377    if(duri == NULL) return;
#378    if(duri->uri != NULL) {free(duri->uri);}
#379    if(duri->params != NULL) {free(duri->params);}
#380    if(duri->paramlist != NULLocparamfree(duri->paramlist);
#381    if(duri->strings != NULL) {free(duri->strings);}
#382    if(duri->constraint != NULL) {free(duri->constraint);}
#383    if(duri->projection != NULL) {free(duri->projection);}
#384    if(duri->selection != NULL) {free(duri->selection);}
#385    free(duri);
#390ocurisetconstraints(OCURIduri,const char* constraints)
#396    if(duri->constraint != NULL) free(duri->constraint);
#397    if(duri->projection != NULL) free(duri->projection);
#398    if(duri->selection != NULL) free(duri->selection);
#399    duri->constraint = NULL;
#400    duri->projection = NULL;
#401    duri->selection = NULL;
#405    duri->constraint = nulldup(constraints);
#406    if(*duri->constraint == '?')
#407 oclshift1(duri->constraint);
#409    p = duri->constraint;
#426    duri->projection = proj;
#427    duri->selection = select;
#439ocuribuild(OCURIduri, const char* prefix, const char* suffix, int flags)
#451 && duri->params != NULL);
#453 && duri->params != NULL);
#455                && duri->userpwd != NULL);
#457                    && duri->constraint != NULL);
#465    len += (NILLEN(duri->protocol)+NILLEN("://"));
#467 len += (NILLEN(duri->userpwd)+NILLEN("@"));
#468    len += (NILLEN(duri->host));
#469    if(duri->port != NULL) {
#470 len += (NILLEN(":")+NILLEN(duri->port));
#473    tmpfile = duri->file;
#486 tmpquery = duri->constraint;
#494 if(duri->paramlist == NULL)
#495     if(!ocuridecodeparams(duri))
#497 for(paramslen=0,nparams=0,p=duri->paramlist;*p;p++) {
#518 ocappendparams(newuri,duri->paramlist);
#520    if(duri->protocol != NULL)
#521 strcat(newuri,duri->protocol);
#524        strcat(newuri,duri->userpwd);
#527    if(duri->host != NULL) { /* may be null if using file: protocol */
#528        strcat(newuri,duri->host);
#530    if(duri->port != NULL) {
#532        strcat(newuri,duri->port);
#545 ocappendparams(newuri,duri->paramlist);


HyperKWIC - Version 7.20DA executed at 11:37 on 27 Oct 2017 | Polyhedron Solutions - INTERNAL USE | COMMERCIAL (Any O/S) SN 4AKIed