Changeset 77bced3


Ignore:
Timestamp:
Aug 15, 2009, 7:08:18 PM (8 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
636b137
Parents:
075ba92
git-author:
Anders Kaseorg <andersk@mit.edu> (08/04/09 02:37:55)
git-committer:
Anders Kaseorg <andersk@mit.edu> (08/15/09 19:08:18)
Message:
Add const qualifiers for owl_list *.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • fmtext.c

    r075ba92 r77bced3  
    770770 * If format_fn is specified, passes it the list element value
    771771 * and it will return a string which this needs to free. */
    772 void owl_fmtext_append_list(owl_fmtext *f, owl_list *l, const char *join_with, char *(format_fn)(const char *))
     772void owl_fmtext_append_list(owl_fmtext *f, const owl_list *l, const char *join_with, char *(format_fn)(const char *))
    773773{
    774774  int i, size;
  • functions.c

    r075ba92 r77bced3  
    22742274void owl_function_show_filters()
    22752275{
    2276   owl_list *l;
     2276  const owl_list *l;
    22772277  owl_filter *f;
    22782278  int i, j;
     
    23202320{
    23212321  owl_filter *f;
    2322   owl_list *fl;
     2322  const owl_list *fl;
    23232323  char buff[5000];
    23242324  char *tmp;
  • global.c

    re19eb97 r77bced3  
    685685
    686686int owl_global_message_is_puntable(owl_global *g, owl_message *m) {
    687   owl_list *pl;
     687  const owl_list *pl;
    688688  int i, j;
    689689
  • list.c

    r4d86e06 r77bced3  
    1414}
    1515
    16 int owl_list_get_size(owl_list *l)
     16int owl_list_get_size(const owl_list *l)
    1717{
    1818  return(l->size);
     
    3333}
    3434
    35 void *owl_list_get_element(owl_list *l, int n)
     35void *owl_list_get_element(const owl_list *l, int n)
    3636{
    3737  if (n>l->size-1) return(NULL);
  • mainwin.c

    rd43edd2 r77bced3  
    1515  WINDOW *recwin;
    1616  owl_view *v;
    17   owl_list *filtlist;
     17  const owl_list *filtlist;
    1818  owl_filter *f;
    1919
  • perlglue.xs

    re19eb97 r77bced3  
    346346        PREINIT:
    347347                AV *filters;
    348                 owl_list *fl;
     348                const owl_list *fl;
    349349                owl_filter *f;
    350350                int i;
  • select.c

    r4d86e06 r77bced3  
    8484{
    8585  int i, len;
    86   owl_list *dl;
     86  const owl_list *dl;
    8787  owl_dispatch *d;
    8888 
     
    199199  int i, len, max_fd;
    200200  owl_dispatch *d;
    201   owl_list *dl;
     201  const owl_list *dl;
    202202
    203203  dl = owl_global_get_dispatchlist(&g);
     
    237237  int i, len;
    238238  owl_dispatch *d;
    239   owl_list *dl;
     239  const owl_list *dl;
    240240
    241241  dl = owl_global_get_dispatchlist(&g);
Note: See TracChangeset for help on using the changeset viewer.