X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fbinary-source-file.cc;h=0be17f601d319b48f02ad4aea0b8d64e9e161e42;hb=d445cda01e4d86896f55fd1cf2ccbaba8cb7917a;hp=9f69b5ec986b86dfa880684c77e121b77f87a137;hpb=7e72a1e50e94a7f9738d62599de79fe7745f600c;p=lilypond.git diff --git a/lily/binary-source-file.cc b/lily/binary-source-file.cc index 9f69b5ec98..0be17f601d 100644 --- a/lily/binary-source-file.cc +++ b/lily/binary-source-file.cc @@ -3,21 +3,17 @@ source file of the LilyPond music typesetter - (c) 1997--2004 Jan Nieuwenhuizen + (c) 1997--2006 Jan Nieuwenhuizen */ +#include // INT_MAX +using namespace std; -#include // INT_MAX -#include - -#include "flower-proto.hh" -#include "string.hh" -#include "source-file.hh" #include "binary-source-file.hh" #include "string-convert.hh" -Binary_source_file::Binary_source_file (String& filename_string) - : Source_file (filename_string) +Binary_source_file::Binary_source_file (String &file_name_string) + : Source_file (file_name_string) { } @@ -26,35 +22,37 @@ Binary_source_file::~Binary_source_file () } String -Binary_source_file::error_string (char const* pos_str0) const +Binary_source_file::quote_input (char const *pos_str0) const { assert (this); - if (!in_b (pos_str0)) + if (!contains (pos_str0)) return ""; - char const* begin_str0 = pos_str0 - 8 >? to_str0 (); - char const* end_str0 = pos_str0 + 7