- Timestamp:
- Dec 2, 2010, 10:21:26 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-kernel/service_internal_perl.c
r22 r47 28 28 static PerlInterpreter *my_perl; 29 29 30 EXTERN_C31 30 32 31 void xs_init(pTHX) … … 45 44 map * tmp_m = m; 46 45 do { 47 printf("map name %s value %s \n",m->name,m->value);46 //printf("map name %s value %s \n",m->name,m->value); 48 47 49 48 if ( NULL == hv_store( tmp, tmp_m->name, strlen(tmp_m->name), sv_2mortal(newSVpv(tmp_m->value, strlen(tmp_m->value))), 0) ) { … … 59 58 HV * tmp = *hash_maps; 60 59 if (m != NULL) { 61 printf("maps name %s \n",m->name);60 //printf("maps name %s \n",m->name); 62 61 HV* hash_m = (HV *)sv_2mortal((SV *)newHV()); 63 62 if (map_to_hash(m->content,&hash_m) != 0){ … … 83 82 HE * he = hv_iternext(hh); 84 83 while (he != NULL){ 85 printf("key : %s value : %s \n",HeKEY(he),(char *)SvRV(HeVAL(he)));84 //fprintf(stderr,"key : %s value : %s \n",HeKEY(he),(char *)SvRV(HeVAL(he))); 86 85 tmp->name = HeKEY(he); 87 86 tmp->value = (char *)SvRV(HeVAL(he)); … … 111 110 map *mm; 112 111 while (he != NULL) { 113 printf("key ===> %s \n",HeKEY(he));112 //fprintf(stderr,"key ===> %s \n",HeKEY(he)); 114 113 tmp->name = HeKEY(he); 115 114 hash_to_map((HV *) SvRV(HeVAL(he)),&mm); … … 162 161 res = POPi; 163 162 hash_to_maps(h_real_outputs,real_outputs); 163 //dumpMaps(*real_outputs); 164 164 PUTBACK; 165 165 FREETMPS; 166 166 LEAVE; 167 return res;168 } 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 167 return SERVICE_SUCCEEDED; 168 } 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201
Note: See TracChangeset
for help on using the changeset viewer.