Changes in / [3558ba93:9521eca] in mainline


Ignore:
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/adt/list.h

    r3558ba93 r9521eca  
    3737#define KERN_LIST_H_
    3838
    39 #include <debug.h>
    4039#include <typedefs.h>
    4140#include <trace.h>
     
    7473            _link != &(list).head; _link = _link->next)
    7574
    76 #define list_foreach_rev(list, member, itype, iterator) \
    77         for (itype *iterator = NULL; iterator == NULL; iterator = (itype *) 1) \
    78             for (link_t *_link = (list).head.prev; \
    79             iterator = list_get_instance(_link, itype, member), \
    80             _link != &(list).head; _link = _link->prev)
    81 
    8275#define assert_link_not_used(link) \
    83         ASSERT(!link_used(link))
     76        ASSERT(((link)->prev == NULL) && ((link)->next == NULL))
    8477
    8578/** Initialize doubly-linked circular list link
     
    326319}
    327320
    328 /** Determine if link is used.
    329  *
    330  * @param link Link
    331  * @return @c true if link is used, @c false if not.
    332  */
    333 static inline bool link_used(link_t *link)
    334 {
    335         if (link->prev == NULL && link->next == NULL)
    336                 return false;
    337 
    338         ASSERT(link->prev != NULL && link->next != NULL);
    339         return true;
    340 }
    341 
    342321extern int list_member(const link_t *, const list_t *);
    343322extern void list_concat(list_t *, list_t *);
  • tools/toolchain.sh

    r3558ba93 r9521eca  
    6262
    6363BASEDIR="`pwd`"
    64 SRCDIR="$(readlink -f $(dirname "$0"))"
    6564BINUTILS="binutils-${BINUTILS_VERSION}${BINUTILS_RELEASE}.tar.bz2"
    6665GCC="gcc-${GCC_VERSION}.tar.bz2"
     
    441440        echo ">>> Applying patches"
    442441        for p in $BINUTILS_PATCHES; do
    443                 patch_sources "${SRCDIR}/${p}" 0 "binutils"
     442                patch_sources "${BASEDIR}/${p}" 0 "binutils"
    444443        done
    445444        for p in $GCC_PATCHES; do
    446                 patch_sources "${SRCDIR}/${p}" 0 "GCC"
     445                patch_sources "${BASEDIR}/${p}" 0 "GCC"
    447446        done
    448447        for p in $GDB_PATCHES; do
    449                 patch_sources "${SRCDIR}/${p}" 0 "GDB"
     448                patch_sources "${BASEDIR}/${p}" 0 "GDB"
    450449        done
    451450       
  • uspace/lib/c/include/adt/list.h

    r3558ba93 r9521eca  
    3838
    3939#include <assert.h>
    40 #include <stdbool.h>
    4140#include <unistd.h>
    4241
     
    7372            iterator = list_get_instance(_link, itype, member), \
    7473            _link != &(list).head; _link = _link->next)
    75 
    76 #define list_foreach_rev(list, member, itype, iterator) \
    77         for (itype *iterator = NULL; iterator == NULL; iterator = (itype *) 1) \
    78             for (link_t *_link = (list).head.prev; \
    79             iterator = list_get_instance(_link, itype, member), \
    80             _link != &(list).head; _link = _link->prev)
    8174
    8275/** Unlike list_foreach(), allows removing items while traversing a list.
     
    112105
    113106#define assert_link_not_used(link) \
    114         assert(!link_used(link))
     107        assert(((link)->prev == NULL) && ((link)->next == NULL))
    115108
    116109/** Returns true if the link is definitely part of a list. False if not sure. */
     
    364357}
    365358
    366 /** Determine if link is used.
    367  *
    368  * @param link Link
    369  * @return @c true if link is used, @c false if not.
    370  */
    371 static inline bool link_used(link_t *link)
    372 {
    373         if (link->prev == NULL && link->next == NULL)
    374                 return false;
    375 
    376         assert(link->prev != NULL && link->next != NULL);
    377         return true;
    378 }
    379 
    380359extern int list_member(const link_t *, const list_t *);
    381360extern void list_concat(list_t *, list_t *);
  • uspace/lib/gui/canvas.c

    r3558ba93 r9521eca  
    112112static void canvas_handle_position_event(widget_t *widget, pos_event_t event)
    113113{
    114         canvas_t *canvas = (canvas_t *) widget;
    115         pos_event_t tevent;
    116        
    117         tevent = event;
    118         tevent.hpos -= widget->hpos;
    119         tevent.vpos -= widget->vpos;
    120        
    121         sig_send(&canvas->position_event, &tevent);
     114        /* No-op */
    122115}
    123116
  • uspace/lib/gui/canvas.h

    r3558ba93 r9521eca  
    5050        surface_t *surface;
    5151        signal_t keyboard_event;
    52         signal_t position_event;
    5352} canvas_t;
    5453
Note: See TracChangeset for help on using the changeset viewer.