From: Ben Pfaff Date: Tue, 2 Mar 2010 06:12:48 +0000 (-0800) Subject: casereader: Factor buffering shim out into separate source file. X-Git-Tag: sav-api~368 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0fbcb6682003e6deb5f517c4d54bada0301a61a1;hp=0fbcb6682003e6deb5f517c4d54bada0301a61a1;p=pspp casereader: Factor buffering shim out into separate source file. This moves the "shim" code out of casereader.c into a separate casereader-shim.[ch] in preparation for using it from procedure.c. This commit also adds an optimization: if the shim reads all of the subreader, then it closes the subreader immediately, instead of waiting for the shim itself to be destroyed. This can allow resources to be freed earlier. This commit also adds a new function casereader_shim_slurp(). This function will be used for the first time in the following commit. ---