* Makefile.in: Regenerate.
* iniparse.y: Use left recursion, not right in the lines rule to
avoid stack overflows.
* README: Update TODO's.
* io_stream_file.cc: Native builds need to include sys/stat.h
+2002-05-10 Robert Collins <rbtcollins@hotmail.com>
+
+ * Makefile.in: Regenerate.
+ * iniparse.y: Use left recursion, not right in the lines rule to
+ avoid stack overflows.
+ * README: Update TODO's.
+ * io_stream_file.cc: Native builds need to include sys/stat.h
+
2002-05-06 John Marshall <jmarshall@acm.org>
* site.cc (SitePage::OnMessageCmd): recalculate navigation
* Chooser dialog needs work.
* Mirrors list orer is snafued.
-* Handle UNC paths for the localdir correctly.
* Don't downgrade if the curr version is <= installed?
* support rpm/deb files for reading the package from. (To allow the maintainers the use of rpm/deb tools to create packages.)
* make a librar(y|ies) for setup and cygcheck to use containing
* Mark versions as prev/curr/test in the GUI when clicking through them.
* Remove *empty* directories on uninstalls
* Correctly overwrite -r--r--r-- files.
+* Make setup.exe available through Add/Remove
WISHLIST:
* rsync:// support
* ini.cc: add field in setup.ini to specify whether package is installed by default, or not. (base category does this)
* Remove "/" from symlinks (etags.exe->/ctags.exe is an example
* Src tickbox /source only can be confusing.
+ * Handle UNC paths for the localdir correctly.
;
lines
- : simple_line '\n' lines
+ : lines '\n' simple_line
| simple_line
;
#include <stdlib.h>
#include <errno.h>
#include <unistd.h>
-
+#if HAVE_SYS_STAT_H
+#include <sys/stat.h>
+#endif
+#include <stdexcept>
+
#include "io_stream_file.h"
#include "IOStreamProvider.h"
+
/* completely private iostream registration class */
class FileProvider : public IOStreamProvider
{
int move (String const &a,String const &b) const
{return io_stream_file::move (a, b);}
int mkdir_p (enum path_type_t isadir, String const &path) const
- {return ::mkdir_p (isadir == PATH_TO_DIR ? 1 : 0, path.cstr_oneuse());}
+ {
+ return ::mkdir_p (isadir == PATH_TO_DIR ? 1 : 0, path.cstr_oneuse());
+ }
protected:
FileProvider() // no creating this
{