X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=lexer.h;h=35b2fb39af2b16f1cf20f9a1fda13ea1a2d3081e;hb=a4f1ed0c99f2485820d192ccc047878913a6a16d;hp=a1a5d767bd061f114c76ff74face6b9156b9d756;hpb=0daba5ce242fa28c1ff81f93cae51902adefd217;p=cparser diff --git a/lexer.h b/lexer.h index a1a5d76..35b2fb3 100644 --- a/lexer.h +++ b/lexer.h @@ -1,3 +1,22 @@ +/* + * This file is part of cparser. + * Copyright (C) 2007-2008 Matthias Braun + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + * 02111-1307, USA. + */ #ifndef LEXER_H #define LEXER_H @@ -5,6 +24,7 @@ #include "token_t.h" extern token_t lexer_token; +extern bool allow_dollar_in_symbol; void lexer_next_token(void); @@ -15,6 +35,7 @@ void init_lexer(void); void exit_lexer(void); void lexer_open_stream(FILE *stream, const char *input_name); +void lexer_open_buffer(const char *buffer, size_t len, const char *input_name); string_t concat_strings( const string_t *s1, const string_t *s2); wide_string_t concat_string_wide_string(const string_t *s1, const wide_string_t *s2);