Search:
Login
Help/Guide
About Trac
Preferences
Wiki
Timeline
Roadmap
Browse Source
View Tickets
Search
Context Navigation
←
Previous Change
Next Change
→
Changeset
7fd0bf7
for
list.c
View differences
inline
side by side
Show
lines around each change
Show the changes in full context
Ignore:
Blank lines
Case changes
White space changes
Timestamp:
May 12, 2011, 4:39:26 PM (
14 years
ago)
Author:
David Benjamin <davidben@mit.edu>
Children:
c72f884
Parents:
55b2de8
git-author:
David Benjamin <davidben@mit.edu> (05/07/11 15:17:37)
git-committer:
David Benjamin <davidben@mit.edu> (05/12/11 16:39:26)
Message:
g_strdup and g_new0 never fail Remove pointless failure checks cluttering the code.
File:
1 edited
list.c
(modified)
(
1 diff
)
Legend:
Unmodified
Added
Removed
list.c
rddbbcffa
r7fd0bf7
5
5
#define GROWBY 3 / 2
6
6
7
int
owl_list_create(owl_list *l)
7
void
owl_list_create(owl_list *l)
8
8
{
9
9
l->size=0;
10
10
l->list=g_new(void *, INITSIZE);
11
11
l->avail=INITSIZE;
12
if (l->list==NULL) return(-1);
13
return(0);
14
12
}
15
13
Note:
See
TracChangeset
for help on using the changeset viewer.
Download in other formats:
Unified Diff
Zip Archive