Develop and Download Open Source Software

Browse CVS Repository

Diff of /xoonips/AL/xnpal.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.52 by tani, Sun Aug 14 07:54:06 2005 UTC revision 1.53 by tani, Tue Aug 23 07:35:33 2005 UTC
# Line 934  result_t itemToZval( const item_t *pItem Line 934  result_t itemToZval( const item_t *pItem
934          add_assoc_long( z, "publication_year", pItem -> getPublicationYear( ) );          add_assoc_long( z, "publication_year", pItem -> getPublicationYear( ) );
935          add_assoc_long( z, "publication_month", pItem -> getPublicationMonth( ) );          add_assoc_long( z, "publication_month", pItem -> getPublicationMonth( ) );
936          add_assoc_long( z, "publication_mday", pItem -> getPublicationMday( ) );          add_assoc_long( z, "publication_mday", pItem -> getPublicationMday( ) );
937            add_assoc_string( z, "lang", ( char* )pItem -> getLang( ), 1 );
938    
939          return RES_OK;          return RES_OK;
940  }  }
# Line 1028  result_t zvalToItem( zval *z, item_t* pI Line 1029  result_t zvalToItem( zval *z, item_t* pI
1029                  convert_to_long_ex( tmp ) ;                  convert_to_long_ex( tmp ) ;
1030                  pItem -> setPublicationMday( (*tmp) -> value.lval );                  pItem -> setPublicationMday( (*tmp) -> value.lval );
1031          }          }
1032            key = "lang";
1033            if( zend_hash_find( z -> value.ht, key, strlen( key ) + 1, ( void** )&tmp ) == SUCCESS ){
1034                    convert_to_string_ex( tmp ) ;
1035                    pItem -> setLang( (*tmp) -> value.str.val );
1036            }
1037          return RES_OK;          return RES_OK;
1038  }  }
1039    

Legend:
Removed from v.1.52  
changed lines
  Added in v.1.53

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26