/[baselayout]/trunk/src/strlist.h
Gentoo

Diff of /trunk/src/strlist.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 2576 Revision 2577
16 beginning of the entry. '_counter' is used by the macro as index, 16 beginning of the entry. '_counter' is used by the macro as index,
17 but should not be used by code as index (or if really needed, then 17 but should not be used by code as index (or if really needed, then
18 it should usually by +1 from what you expect, and should only be 18 it should usually by +1 from what you expect, and should only be
19 used in the scope of the macro) */ 19 used in the scope of the macro) */
20#define STRLIST_FOREACH(_list, _pos, _counter) \ 20#define STRLIST_FOREACH(_list, _pos, _counter) \
21 if ((_list) && _list[0] && ! (_counter = 0)) \ 21 if ((_list) && _list[0] && ! (_counter = 0)) \
22 while ((_pos = _list[_counter++])) 22 while ((_pos = _list[_counter++]))
23 23
24#endif /* __STRLIST_H__ */ 24#endif /* __STRLIST_H__ */

Legend:
Removed from v.2576  
changed lines
  Added in v.2577

  ViewVC Help
Powered by ViewVC 1.1.20