comparison src/getidblock.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 ab384fed78c5
children 0a4f7ecd7452
comparison
equal deleted inserted replaced
171:6c1e75bc4cac 172:6954d315aaa8
50 if (ptr->desc && ptr->desc->i_id == i_id) 50 if (ptr->desc && ptr->desc->i_id == i_id)
51 break; 51 break;
52 ptr = pst_getNextDptr(ptr); 52 ptr = pst_getNextDptr(ptr);
53 } 53 }
54 if (!ptr) { 54 if (!ptr) {
55 ptr = (pst_desc_ll *) xmalloc(sizeof(pst_desc_ll)); 55 ptr = (pst_desc_ll *) pst_malloc(sizeof(pst_desc_ll));
56 memset(ptr, 0, sizeof(pst_desc_ll)); 56 memset(ptr, 0, sizeof(pst_desc_ll));
57 ptr->desc = pst_getID(&pstfile, i_id); 57 ptr->desc = pst_getID(&pstfile, i_id);
58 } 58 }
59 pst_item *item = pst_parse_item(&pstfile, ptr, NULL); 59 pst_item *item = pst_parse_item(&pstfile, ptr, NULL);
60 if (item) pst_freeItem(item); 60 if (item) pst_freeItem(item);