Mercurial > hg > octave-kai > gnulib-hg
comparison lib/glob.c @ 9549:de8a758aeb9a
Use plain ANSI C syntax.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Wed, 26 Dec 2007 16:28:08 +0100 |
parents | 75e43b0e5159 |
children | 81a0ee2e4e00 |
comparison
equal
deleted
inserted
replaced
9548:827a525c7057 | 9549:de8a758aeb9a |
---|---|
1441 { | 1441 { |
1442 memory_error: | 1442 memory_error: |
1443 while (1) | 1443 while (1) |
1444 { | 1444 { |
1445 struct globnames *old = names; | 1445 struct globnames *old = names; |
1446 for (size_t i = 0; i < cur; ++i) | 1446 size_t i; |
1447 for (i = 0; i < cur; ++i) | |
1447 free (names->name[i]); | 1448 free (names->name[i]); |
1448 names = names->next; | 1449 names = names->next; |
1449 /* NB: we will not leak memory here if we exit without | 1450 /* NB: we will not leak memory here if we exit without |
1450 freeing the current block assigned to OLD. At least | 1451 freeing the current block assigned to OLD. At least |
1451 the very first block is always allocated on the stack | 1452 the very first block is always allocated on the stack |
1466 else | 1467 else |
1467 { | 1468 { |
1468 while (1) | 1469 while (1) |
1469 { | 1470 { |
1470 struct globnames *old = names; | 1471 struct globnames *old = names; |
1471 for (size_t i = 0; i < cur; ++i) | 1472 size_t i; |
1473 for (i = 0; i < cur; ++i) | |
1472 new_gl_pathv[pglob->gl_offs + pglob->gl_pathc++] | 1474 new_gl_pathv[pglob->gl_offs + pglob->gl_pathc++] |
1473 = names->name[i]; | 1475 = names->name[i]; |
1474 names = names->next; | 1476 names = names->next; |
1475 /* NB: we will not leak memory here if we exit without | 1477 /* NB: we will not leak memory here if we exit without |
1476 freeing the current block assigned to OLD. At least | 1478 freeing the current block assigned to OLD. At least |