]> git.donarmstrong.com Git - lilypond.git/blobdiff - mi2mu/midi-lexer.l
release: 0.0.44
[lilypond.git] / mi2mu / midi-lexer.l
index f83258789f6bb60ec72978d4fcde51205d53c637..6add2613c7e6d4d86c14e4f16d53d50262849aac 100644 (file)
@@ -1,16 +1,16 @@
-%{
+%{//-*-Fundamental-*-
 // midi-lexer.l
 
 
 #include "mi2mu.hh"
 #include "midi-parser.hh"
 
+#define YY_USER_ACTION char_count_ += YYLeng(); // ugh
 %}
 
 %option c++
 %option noyywrap
 %option nodefault
-%option yylineno
 %option debug
 %option yyclass="My_midi_lexer"
 %option stack
@@ -374,7 +374,7 @@ SSME                [\0x7f][\x03]
 <meta_event>{U8} {
        warning( String( "meta_event: unimplemented event: " )
                + String_convert::bin2hex_str( String( *YYText() ) ),
-               this->here_ch_c_l() );
+               this->here_ch_C() );
        yy_pop_state();
        yy_pop_state();
        yy_push_state( u8 );