comparison src/libpst.c @ 104:39ba19372732

many fixes in pst2ldif by Robert Harris
author Carl Byington <carl@five-ten-sg.com>
date Thu, 09 Oct 2008 12:04:40 -0700
parents 0af0bbe166e1
children 4703d622e95b
comparison
equal deleted inserted replaced
103:0af0bbe166e1 104:39ba19372732
279 * @param node pointer to the new node to be added to the tree 279 * @param node pointer to the new node to be added to the tree
280 */ 280 */
281 static void record_descriptor(pst_file *pf, pst_desc_ll *node); 281 static void record_descriptor(pst_file *pf, pst_desc_ll *node);
282 static void record_descriptor(pst_file *pf, pst_desc_ll *node) 282 static void record_descriptor(pst_file *pf, pst_desc_ll *node)
283 { 283 {
284 DEBUG_ENT("record_descriptor");
284 // finish node initialization 285 // finish node initialization
285 node->parent = NULL; 286 node->parent = NULL;
286 node->child = NULL; 287 node->child = NULL;
287 node->child_tail = NULL; 288 node->child_tail = NULL;
288 node->no_child = 0; 289 node->no_child = 0;
329 else { 330 else {
330 DEBUG_INDEX(("No parent %#"PRIx64", have an orphan child %#"PRIx64"\n", node->parent_id, node->id)); 331 DEBUG_INDEX(("No parent %#"PRIx64", have an orphan child %#"PRIx64"\n", node->parent_id, node->id));
331 add_descriptor_to_list(node, &pf->d_head, &pf->d_tail); 332 add_descriptor_to_list(node, &pf->d_head, &pf->d_tail);
332 } 333 }
333 } 334 }
335 DEBUG_RET();
334 } 336 }
335 337
336 338
337 pst_desc_ll* pst_getTopOfFolders(pst_file *pf, pst_item *root) { 339 pst_desc_ll* pst_getTopOfFolders(pst_file *pf, pst_item *root) {
338 pst_desc_ll *topnode; 340 pst_desc_ll *topnode;