Home | History | Annotate | Download | only in patches
      1  16755  bewitche --- babl-0.0.22/babl/babl-list.c.orig	2008-12-02 17:15:54.263327000 +0800
      2  16755  bewitche +++ babl-0.0.22/babl/babl-list.c	2008-12-02 17:18:13.992208000 +0800
      3  16755  bewitche @@ -67,7 +67,7 @@
      4  16755  bewitche      return list->count;
      5  16755  bewitche  }
      6  16755  bewitche  
      7  16755  bewitche -inline void
      8  16755  bewitche +void
      9  16755  bewitche  babl_list_insert_last (BablList *list,
     10  16755  bewitche                         Babl     *item)
     11  16755  bewitche  {
     12  16755  bewitche @@ -87,7 +87,7 @@
     13  16755  bewitche      list->items[list->count++] = item;
     14  16755  bewitche  }
     15  16755  bewitche  
     16  16755  bewitche -inline void
     17  16755  bewitche +void
     18  16755  bewitche  babl_list_remove_last (BablList *list)
     19  16755  bewitche  {
     20  16755  bewitche    babl_assert (list);
     21  16755  bewitche @@ -96,7 +96,7 @@
     22  16755  bewitche    list->count--;
     23  16755  bewitche  }
     24  16755  bewitche  
     25  16755  bewitche -inline Babl *
     26  16755  bewitche +Babl *
     27  16755  bewitche  babl_list_get_first (BablList *list)
     28  16755  bewitche  {
     29  16755  bewitche    babl_assert (list);
     30  16755  bewitche @@ -105,7 +105,7 @@
     31  16755  bewitche    return (list->items[0]);
     32  16755  bewitche  }
     33  16755  bewitche  
     34  16755  bewitche -inline Babl *
     35  16755  bewitche +Babl *
     36  16755  bewitche  babl_list_get_last (BablList *list)
     37  16755  bewitche  {
     38  16755  bewitche    babl_assert (list);
     39  16755  bewitche @@ -114,7 +114,7 @@
     40  16755  bewitche    return (list->items[list->count - 1]);
     41  16755  bewitche  }
     42  16755  bewitche  
     43  16755  bewitche -inline void
     44  16755  bewitche +void
     45  16755  bewitche  babl_list_copy (BablList *from,
     46  16755  bewitche                  BablList *to)
     47  16755  bewitche  {
     48  16755  bewitche --- babl-0.0.22/babl/babl-hash-table.c.orig	2008-12-02 17:15:31.767039000 +0800
     49  16755  bewitche +++ babl-0.0.22/babl/babl-hash-table.c	2008-12-02 17:16:51.983739000 +0800
     50  16755  bewitche @@ -33,7 +33,7 @@
     51  16755  bewitche  hash_rehash (BablHashTable *htab);
     52  16755  bewitche  
     53  16755  bewitche  
     54  16755  bewitche -inline int
     55  16755  bewitche +int
     56  16755  bewitche  babl_hash_by_str (BablHashTable *htab,
     57  16755  bewitche                    const char    *str)
     58  16755  bewitche  {
     59  16755  bewitche @@ -52,7 +52,7 @@
     60  16755  bewitche    return (hash & htab->mask);
     61  16755  bewitche  }
     62  16755  bewitche  
     63  16755  bewitche -inline int
     64  16755  bewitche +int
     65  16755  bewitche  babl_hash_by_int (BablHashTable *htab,
     66  16755  bewitche                    int           id)
     67  16755  bewitche  {
     68  16755  bewitche @@ -136,7 +136,7 @@
     69  16755  bewitche    babl_free (nhtab);
     70  16755  bewitche  }
     71  16755  bewitche  
     72  16755  bewitche -inline int
     73  16755  bewitche +int
     74  16755  bewitche  babl_hash_table_size (BablHashTable *htab)
     75  16755  bewitche  {
     76  16755  bewitche      return htab->mask + 1;
     77  16755  bewitche --- babl-0.0.22/babl/babl-hash-table.h.orig	2008-12-02 17:15:45.983409000 +0800
     78  16755  bewitche +++ babl-0.0.22/babl/babl-hash-table.h	2008-12-02 17:17:11.447094000 +0800
     79  16755  bewitche @@ -44,15 +44,15 @@
     80  16755  bewitche  babl_hash_table_init (BablHashValFunction  hfunc,
     81  16755  bewitche                        BablHashFindFunction ffunc);
     82  16755  bewitche  
     83  16755  bewitche -inline int
     84  16755  bewitche +int
     85  16755  bewitche  babl_hash_by_str (BablHashTable *htab,
     86  16755  bewitche                    const char    *str);
     87  16755  bewitche  
     88  16755  bewitche -inline int
     89  16755  bewitche +int
     90  16755  bewitche  babl_hash_by_int (BablHashTable *htab,
     91  16755  bewitche                    int           id);
     92  16755  bewitche  
     93  16755  bewitche -inline int
     94  16755  bewitche +int
     95  16755  bewitche  babl_hash_table_size (BablHashTable *htab);
     96  16755  bewitche  
     97  16755  bewitche  int
     98  16755  bewitche --- babl-0.0.22/babl/babl-list.h.orig	2008-12-02 17:16:01.943530000 +0800
     99  16755  bewitche +++ babl-0.0.22/babl/babl-list.h	2008-12-02 17:18:12.728107000 +0800
    100  16755  bewitche @@ -47,20 +47,20 @@
    101  16755  bewitche  int
    102  16755  bewitche  babl_list_size (BablList *list);
    103  16755  bewitche  
    104  16755  bewitche -inline void
    105  16755  bewitche +void
    106  16755  bewitche  babl_list_insert_last (BablList *list,
    107  16755  bewitche                         Babl     *item);
    108  16755  bewitche  
    109  16755  bewitche -inline void
    110  16755  bewitche +void
    111  16755  bewitche  babl_list_remove_last (BablList *list);
    112  16755  bewitche  
    113  16755  bewitche -inline Babl *
    114  16755  bewitche +Babl *
    115  16755  bewitche  babl_list_get_first (BablList *list);
    116  16755  bewitche  
    117  16755  bewitche -inline Babl *
    118  16755  bewitche +Babl *
    119  16755  bewitche  babl_list_get_last (BablList *list);
    120  16755  bewitche  
    121  16755  bewitche -inline void
    122  16755  bewitche +void
    123  16755  bewitche  babl_list_copy (BablList *from,
    124  16755  bewitche                  BablList *to);
    125  16755  bewitche  
    126