Changeset 623 for trunk/zoo-project
- Timestamp:
- Apr 9, 2015, 6:33:14 PM (10 years ago)
- Location:
- trunk/zoo-project/zoo-kernel
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/request_parser.c
r622 r623 292 292 } 293 293 else 294 addMapsToMaps ( &(*request_output), tmpmaps);294 addMapsToMaps (request_output, tmpmaps); 295 295 } 296 296 freeMaps (&tmpmaps); … … 403 403 *request_output = dupMaps (&tmp_output); 404 404 else 405 addMapsToMaps ( &(*request_output), tmp_output);405 addMapsToMaps (request_output, tmp_output); 406 406 freeMaps (&tmp_output); 407 407 free (tmp_output); … … 530 530 { 531 531 if (loadRemoteFile 532 ( &(*main_conf), &tmpmaps->content, hInternet,532 (main_conf, &tmpmaps->content, hInternet, 533 533 (char *) val) != 0) 534 534 { … … 647 647 if (btmp != NULL) 648 648 { 649 addRequestToQueue( &(*main_conf),hInternet,(char *) btmp->value,false);649 addRequestToQueue(main_conf,hInternet,(char *) btmp->value,false); 650 650 InternetOpenUrl (hInternet, 651 651 btmp->value, … … 714 714 if (btmp != NULL) 715 715 { 716 addRequestToQueue( &(*main_conf),hInternet,(char *) btmp->value,false);716 addRequestToQueue(main_conf,hInternet,(char *) btmp->value,false); 717 717 718 718 res = … … 939 939 } 940 940 else 941 addMapsToMaps ( &(*request_output), tmpmaps);941 addMapsToMaps (request_output, tmpmaps); 942 942 } 943 943 freeMaps (&tmpmaps); … … 1021 1021 *request_output = dupMaps (&tmpmaps); 1022 1022 else 1023 addMapsToMaps ( &(*request_output), tmpmaps);1023 addMapsToMaps (request_output, tmpmaps); 1024 1024 if (tmpmaps != NULL) 1025 1025 { -
trunk/zoo-project/zoo-kernel/service.h
r621 r623 653 653 } 654 654 } 655 char sname[10]="size"; 656 if(strlen(n)>5) 657 sprintf(sname,"size_%s",n+6); 655 658 map *tmp=getMap(m,n); 656 659 if(tmp->value!=NULL) … … 661 664 char sin[128]; 662 665 sprintf(sin,"%d",size); 663 addToMap(m, "size",sin);666 addToMap(m,sname,sin); 664 667 } 665 668 -
trunk/zoo-project/zoo-kernel/service_internal.c
r621 r623 3704 3704 void addRequestToQueue(maps** m,HINTERNET* hInternet,const char* url,bool req){ 3705 3705 hInternet->waitingRequests[hInternet->nb]=strdup(url); 3706 hInternet->ihandle[hInternet->nb].header=NULL; 3706 3707 if(req) 3707 3708 InternetOpenUrl(hInternet,hInternet->waitingRequests[hInternet->nb],NULL,0,INTERNET_FLAG_NO_CACHE_WRITE,0); -
trunk/zoo-project/zoo-kernel/service_internal_ms.c
r607 r623 430 430 char *odsName=zStrdup(pszDataSource); 431 431 char *sdsName=zStrdup(pszDataSource); 432 char *demo= strstr(odsName,".");432 char *demo=".data"; 433 433 sdsName[strlen(sdsName)-(strlen(demo)-1)]='d'; 434 434 sdsName[strlen(sdsName)-(strlen(demo)-2)]='i'; -
trunk/zoo-project/zoo-kernel/service_internal_python.c
r581 r623 581 581 #endif 582 582 583 if(str cmp(PyString_AsString(key),"value")==0){583 if(strncmp(PyString_AsString(key),"value",5)==0){ 584 584 char *buffer=NULL; 585 585 Py_ssize_t size; … … 589 589 PyString_AsStringAndSize(value,&buffer,&size); 590 590 #endif 591 addToMapWithSize(res, "value",buffer,size);591 addToMapWithSize(res,PyString_AsString(key),buffer,size); 592 592 }else{ 593 593 char* lkey=PyString_AsString(key);
Note: See TracChangeset
for help on using the changeset viewer.