Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libplist
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pwn
libplist
Commits
365acdba
Commit
365acdba
authored
Jul 18, 2009
by
Jonathan Beck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change plist swig allocator name so that it won't collide when included.
parent
1b0bcb34
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
plist.i
swig/plist.i
+12
-12
No files found.
swig/plist.i
View file @
365acdba
...
...
@@ -9,7 +9,7 @@ typedef struct {
char should_keep_plist;
} PListNode;
PListNode *allocate_wrapper(plist_t plist, char should_keep_plist) {
PListNode *allocate_
plist_
wrapper(plist_t plist, char should_keep_plist) {
PListNode* wrapper = (PListNode*) malloc(sizeof(PListNode));
if (wrapper) {
memset(wrapper, 0, sizeof(PListNode));
...
...
@@ -46,10 +46,10 @@ typedef struct {
PListNode* node = NULL;
switch (t) {
case PLIST_ARRAY :
node = allocate_wrapper( plist_new_array(), 0 );
node = allocate_
plist_
wrapper( plist_new_array(), 0 );
break;
case PLIST_DICT :
node = allocate_wrapper( plist_new_dict(), 0 );
node = allocate_
plist_
wrapper( plist_new_dict(), 0 );
break;
default :
node = NULL;
...
...
@@ -69,7 +69,7 @@ typedef struct {
plist_from_xml(data, len, &plist);
}
if (plist)
return allocate_wrapper( plist, 0 );
return allocate_
plist_
wrapper( plist, 0 );
}
return NULL;
}
...
...
@@ -120,7 +120,7 @@ typedef struct {
PListNode* get_first_child() {
plist_t node = plist_get_first_child( $self->node );
if (node) {
return allocate_wrapper(node, 1);
return allocate_
plist_
wrapper(node, 1);
}
return NULL;
}
...
...
@@ -128,7 +128,7 @@ typedef struct {
PListNode* get_next_sibling() {
plist_t node = plist_get_next_sibling( $self->node );
if (node) {
return allocate_wrapper(node, 1);
return allocate_
plist_
wrapper(node, 1);
}
return NULL;
}
...
...
@@ -136,7 +136,7 @@ typedef struct {
PListNode* get_prev_sibling() {
plist_t node = plist_get_prev_sibling( $self->node );
if (node) {
return allocate_wrapper(node, 1);
return allocate_
plist_
wrapper(node, 1);
}
return NULL;
}
...
...
@@ -144,7 +144,7 @@ typedef struct {
PListNode* get_parent() {
plist_t node = plist_get_parent( $self->node );
if (node) {
return allocate_wrapper(node, 1);
return allocate_
plist_
wrapper(node, 1);
}
return NULL;
}
...
...
@@ -198,7 +198,7 @@ typedef struct {
PListNode* find_node_by_key(char *s) {
plist_t node = plist_find_node_by_key($self->node, s);
if (node) {
return allocate_wrapper(node, 1);
return allocate_
plist_
wrapper(node, 1);
}
return NULL;
}
...
...
@@ -206,7 +206,7 @@ typedef struct {
PListNode* find_node_by_string(char* s) {
plist_t node = plist_find_node_by_string($self->node, s);
if (node) {
return allocate_wrapper(node, 1);
return allocate_
plist_
wrapper(node, 1);
}
return NULL;
}
...
...
@@ -214,7 +214,7 @@ typedef struct {
PListNode* get_array_nth_el(unsigned int n) {
plist_t node = plist_get_array_nth_el($self->node, n);
if (node) {
return allocate_wrapper(node, 1);
return allocate_
plist_
wrapper(node, 1);
}
return NULL;
}
...
...
@@ -222,7 +222,7 @@ typedef struct {
PListNode* get_dict_el_from_key(char *key) {
plist_t node = plist_get_dict_el_from_key($self->node, key);
if (node) {
return allocate_wrapper(node, 1);
return allocate_
plist_
wrapper(node, 1);
}
return NULL;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment