summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2020-12-28 11:38:58 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2020-12-28 12:56:47 -0800
commit994b1736dba4d59c9c0a9c3142987470b83dcf16 (patch)
tree84ed81b435ff9d6daa011e190bc599dc1311fdcc /config
parentbbaba6ce591b94c8fca491f4ef019187cd171521 (diff)
downloadgnulib-994b1736dba4d59c9c0a9c3142987470b83dcf16.tar.gz
canonicalize: simplify via scratch_buffer_dupfree
* config/srclist.txt: Adjust accordingly. * lib/canonicalize-lgpl.c (realpath_stk): * lib/canonicalize.c (canonicalize_filename_mode_stk): Simplify by using scratch_buffer_dupfree. * lib/malloc/scratch_buffer.h (scratch_buffer_dupfree): New function. * lib/malloc/scratch_buffer_dupfree.c: New file. * modules/scratch_buffer (Files, Depends-on): Add malloc/scratch_buffer_dupfree.c.
Diffstat (limited to 'config')
-rw-r--r--config/srclist.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/srclist.txt b/config/srclist.txt
index f33b1353f8..3956082c84 100644
--- a/config/srclist.txt
+++ b/config/srclist.txt
@@ -49,7 +49,8 @@ $GNUORG Copyright/request-assign.future doc/Copyright
$GNUORG Copyright/request-assign.program doc/Copyright
$GNUORG Copyright/request-disclaim.changes doc/Copyright
-$LIBCSRC include/scratch_buffer.h lib/malloc
+#$LIBCSRC include/scratch_buffer.h lib/malloc
+#$LIBCSRC malloc/scratch_buffer_dupfree.c lib/malloc
$LIBCSRC malloc/scratch_buffer_grow.c lib/malloc
$LIBCSRC malloc/scratch_buffer_grow_preserve.c lib/malloc
$LIBCSRC malloc/scratch_buffer_set_array_size.c lib/malloc