"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/common.h" between
ragel-7.0.0.9.tar.gz and ragel-7.0.0.10.tar.gz

About:

common.h  (ragel-7.0.0.9):common.h  (ragel-7.0.0.10)
/* /*
* Copyright 2001-2006, 2013 Adrian Thurston <thurston@complang.org> * Copyright 2001-2006, 2013 Adrian Thurston <thurston@colm.net>
*/
/* This file is part of Ragel.
* *
* Ragel is free software; you can redistribute it and/or modify * Permission is hereby granted, free of charge, to any person obtaining a copy
* it under the terms of the GNU General Public License as published by * of this software and associated documentation files (the "Software"), to
* the Free Software Foundation; either version 2 of the License, or * deal in the Software without restriction, including without limitation the
* (at your option) any later version. * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
* *
* Ragel is distributed in the hope that it will be useful, * The above copyright notice and this permission notice shall be included in al
* but WITHOUT ANY WARRANTY; without even the implied warranty of l
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * copies or substantial portions of the Software.
* GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* along with Ragel; if not, write to the Free Software * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/ */
#ifndef _COMMON_H #ifndef _COMMON_H
#define _COMMON_H #define _COMMON_H
#include <fstream> #include <fstream>
#include <climits> #include <climits>
#include "dlist.h" #include "dlist.h"
struct colm_location; struct colm_location;
skipping to change at line 206 skipping to change at line 207
unsigned long long uMinVal; unsigned long long uMinVal;
unsigned long long uMaxVal; unsigned long long uMaxVal;
unsigned int size; unsigned int size;
}; };
struct HostLang struct HostLang
{ {
/* Target language. */ /* Target language. */
enum Lang enum Lang
{ {
C, C, Asm,
D,
Go,
Java,
Ruby,
CSharp,
OCaml,
Crack,
Asm,
Rust,
Julia,
JS
}; };
const char *name; const char *name;
const char *arg; const char *arg;
Lang lang; Lang lang;
HostType *hostTypes; HostType *hostTypes;
int numHostTypes; int numHostTypes;
HostType *defaultAlphType; HostType *defaultAlphType;
bool explicitUnsigned; bool explicitUnsigned;
bool rlhcRequired; bool rlhcRequired;
const char *rlhcArg; const char *rlhcArg;
}; };
extern const HostLang hostLangC; extern const HostLang hostLangC;
extern const HostLang hostLangD;
extern const HostLang hostLangGo;
extern const HostLang hostLangJava;
extern const HostLang hostLangRuby;
extern const HostLang hostLangCSharp;
extern const HostLang hostLangOCaml;
extern const HostLang hostLangCrack;
extern const HostLang hostLangAsm; extern const HostLang hostLangAsm;
extern const HostLang hostLangRust;
extern const HostLang hostLangJulia;
extern const HostLang hostLangJS;
extern const HostLang *hostLangs[]; extern const HostLang *hostLangs[];
extern const int numHostLangs; extern const int numHostLangs;
HostType *findAlphType( const HostLang *hostLang, const char *s1 ); HostType *findAlphType( const HostLang *hostLang, const char *s1 );
HostType *findAlphType( const HostLang *hostLang, const char *s1, const char *s2 ); HostType *findAlphType( const HostLang *hostLang, const char *s1, const char *s2 );
HostType *findAlphTypeInternal( const HostLang *hostLang, const char *s1 ); HostType *findAlphTypeInternal( const HostLang *hostLang, const char *s1 );
/* An abstraction of the key operators that manages key operations such as /* An abstraction of the key operators that manages key operations such as
* comparison and increment according the signedness of the key. */ * comparison and increment according the signedness of the key. */
skipping to change at line 473 skipping to change at line 453
typedef DList<Export> ExportList; typedef DList<Export> ExportList;
struct exit_object { }; struct exit_object { };
extern exit_object endp; extern exit_object endp;
void operator<<( std::ostream &out, exit_object & ); void operator<<( std::ostream &out, exit_object & );
enum RagelFrontend enum RagelFrontend
{ {
KelbtBased, KelbtBased,
ColmBased,
ReduceBased ReduceBased
}; };
enum RagelBackend
{
Direct,
Translated
};
enum BackendFeature
{
GotoFeature,
VarFeature
};
#endif #endif
 End of changes. 9 change blocks. 
50 lines changed or deleted 18 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS