bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Issue 1096 in lilypond: ly:parser-parse-string segfaults when direct


From: lilypond
Subject: Re: Issue 1096 in lilypond: ly:parser-parse-string segfaults when directly called at toplevel
Date: Wed, 25 Aug 2010 20:32:28 +0000


Comment #23 on issue 1096 by n.puttock: ly:parser-parse-string segfaults when directly called at toplevel
http://code.google.com/p/lilypond/issues/detail?id=1096

New patch with better message.

Thanks, looks OK. There are a few minor details which need fixing, but I'll sort them out when applying:

+  bool is_clean() const;

is_clean ()

+  if (!parser->lexer_->is_clean ()) {

brace on next line

+ parser->parser_error("ly:parser-parse-string is only valid with a new parser. "

space after parser_error
needs gettextifying for translations (_ ("..."))
no space at end of string (add to following string)

+    return SCM_UNSPECIFIED;
+  }

simpler to use `else' here

I assume you don't have tests for error conditions?

Only warning messages (which we'll eventually catch using warning-as-error).

Cheers,
Neil




reply via email to

[Prev in Thread] Current Thread [Next in Thread]