1.1 --- a/src/compiler/NameBinding.h Mon Jun 10 00:46:29 2013 +0100
1.2 +++ b/src/compiler/NameBinding.h Mon Jun 10 01:04:43 2013 +0100
1.3 @@ -1,48 +1,48 @@
1.4 -/* vim: set ts=4 sw=4 tw=99 et:
1.5 - *
1.6 - * Copyright (C) 2012 David Anderson
1.7 - *
1.8 - * This file is part of SourcePawn.
1.9 - *
1.10 - * SourcePawn is free software: you can redistribute it and/or modify it under
1.11 - * the terms of the GNU General Public License as published by the Free
1.12 - * Software Foundation, either version 3 of the License, or (at your option)
1.13 - * any later version.
1.14 - *
1.15 - * SourcePawn is distributed in the hope that it will be useful, but WITHOUT ANY
1.16 - * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
1.17 - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
1.18 - *
1.19 - * You should have received a copy of the GNU General Public License along with
1.20 - * SourcePawn. If not, see http://www.gnu.org/licenses/.
1.21 - */
1.22 -#ifndef _include_name_binding_h_
1.23 -#define _include_name_binding_h_
1.24 -
1.25 -#include "../PoolAllocator.h"
1.26 -#include "../Types.h"
1.27 -#include "Scanner.h"
1.28 -
1.29 -namespace ke {
1.30 -
1.31 -class Zone;
1.32 -class CompileContext;
1.33 -struct TranslationUnit;
1.34 -
1.35 -// Creates symbols and types for names that are global or can be derived from
1.36 -// a global. This phase also populates global scopes with lists of exported
1.37 -// symbols.
1.38 -void PopulateNamesAndTypes(Zone *zone, CompileContext &cc, TranslationUnit *unit);
1.39 -
1.40 -// Because of the way globals work in Pawn, we need a precursor step to
1.41 -// actually enter global symbols into the global struct. They're already in
1.42 -// the global symbol table, so we know they won't clash. This process also
1.43 -// binds any remaining types on global variables.
1.44 -void BindGlobals(Zone *zone, CompileContext &cc, TranslationUnit *unit);
1.45 -
1.46 -// Bind all outstanding names and finalize all unfinished types.
1.47 -void BindNamesAndTypes(Zone *zone, CompileContext &cc, TranslationUnit *unit);
1.48 -
1.49 -}
1.50 -
1.51 -#endif // _include_name_binding_h_
1.52 +/* vim: set ts=4 sw=4 tw=99 et:
1.53 + *
1.54 + * Copyright (C) 2012 David Anderson
1.55 + *
1.56 + * This file is part of SourcePawn.
1.57 + *
1.58 + * SourcePawn is free software: you can redistribute it and/or modify it under
1.59 + * the terms of the GNU General Public License as published by the Free
1.60 + * Software Foundation, either version 3 of the License, or (at your option)
1.61 + * any later version.
1.62 + *
1.63 + * SourcePawn is distributed in the hope that it will be useful, but WITHOUT ANY
1.64 + * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
1.65 + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
1.66 + *
1.67 + * You should have received a copy of the GNU General Public License along with
1.68 + * SourcePawn. If not, see http://www.gnu.org/licenses/.
1.69 + */
1.70 +#ifndef _include_name_binding_h_
1.71 +#define _include_name_binding_h_
1.72 +
1.73 +#include "../PoolAllocator.h"
1.74 +#include "../Types.h"
1.75 +#include "Scanner.h"
1.76 +
1.77 +namespace ke {
1.78 +
1.79 +class Zone;
1.80 +class CompileContext;
1.81 +struct TranslationUnit;
1.82 +
1.83 +// Creates symbols and types for names that are global or can be derived from
1.84 +// a global. This phase also populates global scopes with lists of exported
1.85 +// symbols.
1.86 +void PopulateNamesAndTypes(Zone *zone, CompileContext &cc, TranslationUnit *unit);
1.87 +
1.88 +// Because of the way globals work in Pawn, we need a precursor step to
1.89 +// actually enter global symbols into the global struct. They're already in
1.90 +// the global symbol table, so we know they won't clash. This process also
1.91 +// binds any remaining types on global variables.
1.92 +void BindGlobals(Zone *zone, CompileContext &cc, TranslationUnit *unit);
1.93 +
1.94 +// Bind all outstanding names and finalize all unfinished types.
1.95 +void BindNamesAndTypes(Zone *zone, CompileContext &cc, TranslationUnit *unit);
1.96 +
1.97 +}
1.98 +
1.99 +#endif // _include_name_binding_h_