This is the mail archive of the
newlib-cvs@sourceware.org
mailing list for the newlib project.
src/newlib ChangeLog libc/posix/wordexp.c libc ...
- From: corinna at sourceware dot org
- To: newlib-cvs at sourceware dot org
- Date: 9 Oct 2012 12:05:52 -0000
- Subject: src/newlib ChangeLog libc/posix/wordexp.c libc ...
CVSROOT: /cvs/src
Module name: src
Changes by: corinna@sourceware.org 2012-10-09 12:05:52
Modified files:
newlib : ChangeLog
newlib/libc/posix: wordexp.c wordfree.c
Added files:
newlib/libc/posix: wordexp2.h
Log message:
* libc/posix/wordfree.c (wordfree): The wrong words are freed
when WRDE_DOOFFS is in use. Restructure the code so that the memory
needed to be freed is instead kept in an internal linked list...
* libc/posix/wordexp2.h: ...as defined here...
* libc/posix/wordexp.c (wordexp): ...and build this internal
linked list here, avoiding wasteful strdup calls in the process.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/ChangeLog.diff?cvsroot=src&r1=1.1710&r2=1.1711
http://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/libc/posix/wordexp2.h.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/libc/posix/wordexp.c.diff?cvsroot=src&r1=1.5&r2=1.6
http://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/libc/posix/wordfree.c.diff?cvsroot=src&r1=1.1&r2=1.2