X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/blobdiff_plain/27dcebf2414a7fe37fa130561d14d8bf29e9b12d..c4b24cdb8c9c9c83ad2b4cad26560b3487d15bd7:/emufs_gui/articulos.c diff --git a/emufs_gui/articulos.c b/emufs_gui/articulos.c index 83b5fb8..dd4e29a 100644 --- a/emufs_gui/articulos.c +++ b/emufs_gui/articulos.c @@ -60,7 +60,7 @@ int agregar_nodo_articulo(t_LstArticulos *lst, t_Reg_Articulo *nodo) return 1; } -t_LstArticulos *art_cargar(const char *filename, int tipo) +t_LstArticulos *art_cargar(const char *filename, int tipo, int tam_bloque) { xmlDocPtr document; xmlNode *node, *inicio; @@ -94,7 +94,8 @@ t_LstArticulos *art_cargar(const char *filename, int tipo) node = node->next; } - tmp->fp = emufs_crear("articulos", tipo-1, sizeof(t_Articulo)*40+128, sizeof(t_Articulo)); + fprintf(stderr, "bloque = %d\n", tam_bloque); + tmp->fp = emufs_crear("articulos", tipo-1, tam_bloque, sizeof(t_Articulo)); for (node=inicio ; node ; node = node->next) { if (node->type == XML_ELEMENT_NODE) { if (strcmp(node->name, "ARTICULO") == 0) {