+2002-08-04 Han-Wen <hanwen@cs.uu.nl>
+
+ * lily/main.cc (sane_putenv): Oops. Should supply a private copy
+ to putenv. (this was actually caught by valgrind, but I didn't
+ think the error was mine... )
+
2002-08-03 Han-Wen <hanwen@cs.uu.nl>
+ * tex/lilyponddefs.tex: add filllastpage support.
+
* GNUmakefile.in: barf if config.h is older than configure.
* VERSION: released 1.5.71
Check if directory. TODO: encapsulate for autoconf
*/
struct stat sbuf;
- if (stat (path.to_str0 (), &sbuf) == ENOENT)
+ if (stat (path.to_str0 (), &sbuf) != 0)
continue;
if (! (sbuf.st_mode & __S_IFREG))
#endif
#if !STAT_MACROS_BROKEN
struct stat sbuf;
- if (stat (path.to_str0 (), &sbuf) == ENOENT)
+ if (stat (path.to_str0 (), &sbuf) != 0)
continue;
if (S_ISDIR (sbuf.st_mode))
int p=0;
const char *arg = oparser_p_static->get_next_arg ();
-
- if (!arg)
- {
- usage ();
- /* No FILE arguments is now a usage error */
- exit (2);
- }
do
{
sane_putenv (char const* key, char const* value, bool overwrite)
{
if (overwrite || !getenv (key))
- return putenv ((char*)((String (key) + "=" + value).to_str0 ()));
+ {
+ String combine = String (key) + "=" + String (value);
+ char * s = strdup(combine.to_str0 ());
+ // return putenv (s);
+ }
return -1;
}
exit (0);
}
+
+ if (!oparser_p_static->current_arg () )
+ {
+ usage ();
+ /* No FILE arguments is now a usage error */
+ exit (2);
+ }
+
#ifdef WINNT
scm_boot_guile (argc, argv, main_prog, 0);
#else
SCM
internal_ly_parse_scm (Parse_start * ps)
{
+ /*
+ This is actually pretty wasteful: we stuff the rest of the entire
+ file down GUILE, while we usually need only a bit of it.
+ */
SCM str = ly_str02scm (ps->str);
SCM port = scm_mkstrport (SCM_INUM0, str, SCM_OPN | SCM_RDNG,
"ly_eval_scm_0str");
;;(write standalone (current-error-port))
+; (set-debug-cell-accesses! #t)
+
;;; General settings
\fi
\def\EndLilyPondOutput{%
- \vskip 0pt plus \lilypondpaperinterscorelinefill00 fill\csname bye\endcsname
-}
-\def\postheader{}
+\ifundefined{lilypondpaperfilllastpage}%
+ \vskip 0pt plus \lilypondpaperinterscorelinefill00 fill
+\fi
+\csname bye\endcsname}
% need to do some stuff to turn pagenumbering off
% they seriously mess up your fragments.