Ignore:
Timestamp:
Sep 29, 2012, 3:59:06 PM (10 years ago)
Author:
djay
Message:

Update to make ZOO-Kernel able to compile and run from Windows Platforms. A special thanks to Espen Messel, Knut Landmark and Benrd Härtwig for providing many patches that I can successfully apply on the SVN source tree and to Farkas for continuing requesting for ZOO-Kernel to run on Windows platforms privately and through the ZOO-Discuss mailing list.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-project/zoo-kernel/service.h

    r362 r364  
    4343#include <string.h>
    4444
     45#ifndef WIN32
    4546#define bool int
    4647#define true 1
    4748#define false -1
     49#endif
    4850
    4951#define SERVICE_ACCEPTED 0
     
    107109      fprintf(stderr,"[%s] => [%s] \n",t->name,t->value);
    108110      fflush(stderr);
    109     }else{
     111        }else{
    110112      fprintf(stderr,"NULL\n");
    111113      fflush(stderr);
     
    124126    map* tmp=t;
    125127    while(tmp!=NULL){
     128#ifdef DEBUG
    126129      fprintf(stderr,"%s = %s\n",tmp->name,tmp->value);
     130#endif
    127131      fprintf(file,"%s = %s\n",tmp->name,tmp->value);
    128132      tmp=tmp->next;
     
    622626    map* tmpSize=getMapArray(m,"size",index);
    623627    if(tmpSize!=NULL && strncasecmp(key,"value",5)==0){
     628#ifdef DEBUG
    624629      fprintf(stderr,"%s\n",tmpSize->value);
     630#endif
    625631      map* ptr=getMapOrFill(m,tmp,"");
    626632      free(ptr->value);
     
    640646      }
    641647    }
    642     dumpMap(tmap);
     648#ifdef DEBUG
     649        dumpMap(tmap);
     650#endif
    643651    return tmap;
    644652  }
     
    676684      map* tmpVI=getMap(tmp->content,tmpV[i]);
    677685      if(tmpVI!=NULL){
     686#ifdef DEBUG
    678687        fprintf(stderr,"%s = %s\n",tmpV[i],tmpVI->value);
     688#endif
    679689        if(i<5)
    680690          setMapArray(_cursor->content,tmpV[i],len,tmpVI->value);
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png