"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/host-crack/main.cc" between
ragel-7.0.0.11.tar.gz and ragel-7.0.0.12.tar.gz

About: Ragel compiles executable finite state machines from regular languages (C, C++, Obj-C, C#, D, Java, Go and Ruby). Development version.

main.cc  (ragel-7.0.0.11):main.cc  (ragel-7.0.0.12)
skipping to change at line 25 skipping to change at line 25
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * 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 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE. * SOFTWARE.
*/ */
#include "inputdata.h" #include "inputdata.h"
extern struct colm_sections rlhc; extern struct colm_sections rlparseCrack;
extern struct colm_sections rlhcCrack;
/* /*
* Crack * Crack
*/ */
const char *crack_defaultOutFn( const char *inputFileName ) const char *defaultOutFnCrack( const char *inputFileName )
{ {
return fileNameFromStem( inputFileName, ".crk" ); return fileNameFromStem( inputFileName, ".crk" );
} }
HostType hostTypesCrack[] = HostType hostTypesCrack[] =
{ {
{ "byte", 0, "byte", false, true, true, 0, 0, 0, UCHAR_MAX, 1 }, { "byte", 0, "byte", false, true, true, 0, 0, 0, UCHAR_MAX, 1 },
{ "int32", 0, "int32", true, true, false, S32BIT_MIN, S32BIT_M AX, 0, 0, 4 }, { "int32", 0, "int32", true, true, false, S32BIT_MIN, S32BIT_M AX, 0, 0, 4 },
{ "uint32", 0, "uint32", false, true, false, 0, 0, 0, U32BIT_MAX, 4 }, { "uint32", 0, "uint32", false, true, false, 0, 0, 0, U32BIT_MAX, 4 },
{ "int", 0, "int", true, true, false, INT_MIN, INT_MAX, 0, 0, sizeof(int) }, { "int", 0, "int", true, true, false, INT_MIN, INT_MAX, 0, 0, sizeof(int) },
{ "uint", 0, "uint", false, true, false, 0, 0, 0, UINT_MAX, sizeof(int) }, { "uint", 0, "uint", false, true, false, 0, 0, 0, UINT_MAX, sizeof(int) },
}; };
const HostLang hostLangCrack = { const HostLang hostLangCrack =
"Crack", {
"-K", hostTypesCrack,
(HostLang::Lang)-1, 5,
hostTypesCrack, 5, 0,
hostTypesCrack+0,
true,
true, true,
"crack", false, /* loopLabels */
&crack_defaultOutFn,
&makeCodeGen,
Translated, Translated,
VarFeature BreakFeature,
&makeCodeGen,
&defaultOutFnCrack,
&genLineDirectiveTrans
}; };
int main( int argc, const char **argv ) int main( int argc, const char **argv )
{ {
InputData id( &hostLangCrack, &rlhc ); InputData id( &hostLangCrack, &rlparseCrack, &rlhcCrack );
return id.rlhcMain( argc, argv ); return id.rlhcMain( argc, argv );
} }
 End of changes. 6 change blocks. 
14 lines changed or deleted 14 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)