Changeset f34dd65 for list.c


Ignore:
Timestamp:
Feb 11, 2009, 12:20:22 PM (15 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, debian, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
7980fb2
Parents:
823671c
git-author:
Nelson Elhage <nelhage@mit.edu> (02/08/09 16:31:14)
git-committer:
Nelson Elhage <nelhage@mit.edu> (02/11/09 12:20:22)
Message:
Kill a whole bunch of unused code.

I generated a list of dead functions by building with
-ffunction-sections and linking with -Wl,--gc-sections
-Wl,--print-gc-sections

I kept a number of functions that seemed to be logical parts of an
existing API, as well as stuff in varstubs.c, since that file is
autogenerated.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • list.c

    r50622a5 rf34dd65  
    7878}
    7979
    80 /* todo: might leak memory */
    81 int owl_list_replace_element(owl_list *l, int n, void *element)
    82 {
    83   if (n>l->size-1) return(-1);
    84 
    85   l->list[n]=element;
    86   return(0);
    87 }
    88 
    8980void owl_list_free_all(owl_list *l, void (*elefree)(void *))
    9081{
Note: See TracChangeset for help on using the changeset viewer.