comparison src/lspst.c @ 172:6954d315aaa8

move version-info into main configure.in, and set it properly. prefix all external symbols in the shared library with pst_ to avoid symbol clashes with other shared libraries.
author Carl Byington <carl@five-ten-sg.com>
date Sat, 04 Apr 2009 16:00:48 -0700
parents 40e9de445038
children 0a4f7ecd7452
comparison
equal deleted inserted replaced
171:6c1e75bc4cac 172:6954d315aaa8
31 pst_convert_utf8(item, &item->file_as); 31 pst_convert_utf8(item, &item->file_as);
32 f->item_count = 0; 32 f->item_count = 0;
33 f->skip_count = 0; 33 f->skip_count = 0;
34 f->type = item->type; 34 f->type = item->type;
35 f->stored_count = (item->folder) ? item->folder->item_count : 0; 35 f->stored_count = (item->folder) ? item->folder->item_count : 0;
36 f->dname = (char*) xmalloc(strlen(item->file_as.str)+1); 36 f->dname = strdup(item->file_as.str);
37 strcpy(f->dname, item->file_as.str);
38 } 37 }
39 38
40 39
41 void close_enter_dir(struct file_ll *f) 40 void close_enter_dir(struct file_ll *f)
42 { 41 {
230 temp = argv[1]; 229 temp = argv[1];
231 else 230 else
232 temp++; // get past the "\\" 231 temp++; // get past the "\\"
233 else 232 else
234 temp++; // get past the "/" 233 temp++; // get past the "/"
235 item->file_as.str = (char*)xmalloc(strlen(temp)+1); 234 item->file_as.str = strdup(temp);
236 strcpy(item->file_as.str, temp);
237 item->file_as.is_utf8 = 1; 235 item->file_as.is_utf8 = 1;
238 } 236 }
239 WARN(("item->file_as = '%s'.\n", item->file_as.str)); 237 WARN(("item->file_as = '%s'.\n", item->file_as.str));
240 238
241 d_ptr = pst_getTopOfFolders(&pstfile, item); 239 d_ptr = pst_getTopOfFolders(&pstfile, item);