comparison src/lspst.c @ 195:320cfcba8058

add python module interface to the shared library for easy scripting. the shared library must never write to stdout or stderr. fix pst_attach_to_mem so the caller does not need to initialize the buffer pointer.
author Carl Byington <carl@five-ten-sg.com>
date Mon, 20 Apr 2009 19:39:26 -0700
parents 0a4f7ecd7452
children 7c60d6d1c681
comparison
equal deleted inserted replaced
194:885b47107036 195:320cfcba8058
232 else 232 else
233 temp++; // get past the "/" 233 temp++; // get past the "/"
234 item->file_as.str = strdup(temp); 234 item->file_as.str = strdup(temp);
235 item->file_as.is_utf8 = 1; 235 item->file_as.is_utf8 = 1;
236 } 236 }
237 WARN(("item->file_as = '%s'.\n", item->file_as.str));
238 237
239 d_ptr = pst_getTopOfFolders(&pstfile, item); 238 d_ptr = pst_getTopOfFolders(&pstfile, item);
240 if (!d_ptr) DIE(("Top of folders record not found. Cannot continue\n")); 239 if (!d_ptr) DIE(("Top of folders record not found. Cannot continue\n"));
241 DEBUG_MAIN(("d_ptr(TOF) = %p.\n", d_ptr));
242 240
243 process(item, d_ptr->child); // do the childred of TOPF 241 process(item, d_ptr->child); // do the childred of TOPF
244 pst_freeItem(item); 242 pst_freeItem(item);
245 pst_close(&pstfile); 243 pst_close(&pstfile);
246 244