Ignore:
Timestamp:
Apr 2, 2001, 12:38:55 PM (24 years ago)
Author:
umoeller
Message:

Dialog mgr.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/helpers/linklist.h

    r41 r53  
    1010 */
    1111
    12 /*      Copyright (C) 1997-2000 Ulrich M”ller.
     12/*      Copyright (C) 1997-2001 Ulrich M”ller.
    1313 *      This file is part of the "XWorkplace helpers" source package.
    1414 *      This is free software; you can redistribute it and/or modify
     
    9898                            // changed V0.9.0 (99-10-22) [umoeller]
    9999    typedef FNSORTLIST *PFNSORTLIST;
     100
     101    /*
     102     *@@ FOR_ALL_NODES:
     103     *      helper macro to iterator over all nodes in
     104     *      a list.
     105     *
     106     *      Usage:
     107     +
     108     +          PLINKLIST pll = ...;
     109     +          PLISTNODE pNode;
     110     +
     111     +          FOR_ALL_NODES(pll, pNode)
     112     +          {
     113     +              PVOID pData = (PVOID)pNode->pItemData;
     114     +          }
     115     +
     116     *      This really is a "for" loop, so you can "break"
     117     *      out of the loop.
     118     *
     119     *@@added V0.9.9 (2001-04-01) [umoeller]
     120     */
     121
     122    #define FOR_ALL_NODES(pll, pNode) for (pNode = lstQueryFirstNode(pll); (pNode); pNode = pNode->pNext)
    100123
    101124    /* ******************************************************************
Note: See TracChangeset for help on using the changeset viewer.