Mercurial > hg > CbC > CbC_gcc
comparison libiberty/pex-msdos.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | 77e2b8dfacca |
children | 84e7813d76e9 |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* Utilities to execute a program in a subprocess (possibly linked by pipes | 1 /* Utilities to execute a program in a subprocess (possibly linked by pipes |
2 with other subprocesses), and wait for it. Generic MSDOS specialization. | 2 with other subprocesses), and wait for it. Generic MSDOS specialization. |
3 Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2005 | 3 Copyright (C) 1996-2017 Free Software Foundation, Inc. |
4 Free Software Foundation, Inc. | |
5 | 4 |
6 This file is part of the libiberty library. | 5 This file is part of the libiberty library. |
7 Libiberty is free software; you can redistribute it and/or | 6 Libiberty is free software; you can redistribute it and/or |
8 modify it under the terms of the GNU Library General Public | 7 modify it under the terms of the GNU Library General Public |
9 License as published by the Free Software Foundation; either | 8 License as published by the Free Software Foundation; either |
308 struct pex_msdos *ms; | 307 struct pex_msdos *ms; |
309 int i; | 308 int i; |
310 | 309 |
311 ms = (struct pex_msdos *) obj->sysdep; | 310 ms = (struct pex_msdos *) obj->sysdep; |
312 for (i = 0; i < PEX_MSDOS_FILE_COUNT; ++i) | 311 for (i = 0; i < PEX_MSDOS_FILE_COUNT; ++i) |
313 if (msdos->files[i] != NULL) | 312 free (msdos->files[i]); |
314 free (msdos->files[i]); | 313 free (msdos->statuses); |
315 if (msdos->statuses != NULL) | |
316 free (msdos->statuses); | |
317 free (msdos); | 314 free (msdos); |
318 obj->sysdep = NULL; | 315 obj->sysdep = NULL; |
319 } | 316 } |