No problem, forwardeo una mezcla de 2 mails y sus attachments
---------- Forwarded message ----------
From: Nicolas Palumbo <
napa...@gmail.com>
Date: 2012/4/15
Subject: Re: [safa:118] Re: SAFA - 2012
To: Dario Rodriguez <
soft....@gmail.com>
Adjunto el codigo de la libreria del dccionario dd_datadictionary de
sunrisetel, compilada para linux 64 bits, pero pueden bien
recompilarla para su arquitectura, junto con un test que prueba que se
pueden almacenar y recuperar objetos con una clave de un diccionario.
Tuve que arreglar un bug que tenia la libreria. Este es el mail que le
mande al fabricante:
Hello,
My name is Nicolás Palumbo. I am a software developer from Argentina.
I'd like to report a bug present at least in versions 1.00 revision 27
and Latest development snapshot of the Sunrise Data Dictionary.
I used this code to reproduce it:
#include "../dd_data_dictionary.h"
int main(int argc, char **argv) {
dd_dictionary dict;
dict = dd_new_dictionary();
int obj = 65;
//FAILS HERE
dd_add_object_for_key(dict,"obj1",obj);
int result = dd_object_count(dict);
printf("%d",result);
return 0;
}
In function dd_status dd_add_object_for_key(dd_dictionary dict, const
char *key, void *object) {
dd_data_dictionary.c [line 641 of version 1.00 revision 27]
The present code in the zip file tries to assign this_entry to
subsequently_added, member of last_entry object. It turns out that
last_entry pointer is null and therefore is not possible to assign
anything there. Find the actua code and a possible solution below:
ACTUAL CODE:
this_entry->previously_added = this_dict->last_entry;
this_dict->last_entry->subsequently_added = this_entry;
this_dict->last_entry = this_entry;
SOLUTION:
this_entry->previously_added = this_dict->last_entry;
this_dict->last_entry = this_entry;
this_dict->last_entry->subsequently_added = this_entry;
La licencia esta incluida en el codigo de la biblioteca, pero la
adjunto aca de nuevo por las dudas.
No presenta ningun tipo de restriccion de uso, a mi criterio,
simplemente exige no tomar credito por ella y poner el authorship en
cualquier instalador.
De todas maneras, nunca esta mas si alguno tiene un abogado amigo que
la pued revisar.
2012/3/28 Dario Rodriguez <
soft....@gmail.com>: