diff options
Diffstat (limited to 'dev-util/ragel/files')
-rw-r--r-- | dev-util/ragel/files/ragel-6.5+gcc-4.4.patch | 22 | ||||
-rw-r--r-- | dev-util/ragel/files/ragel-6.5-freebsd.patch | 28 |
2 files changed, 0 insertions, 50 deletions
diff --git a/dev-util/ragel/files/ragel-6.5+gcc-4.4.patch b/dev-util/ragel/files/ragel-6.5+gcc-4.4.patch deleted file mode 100644 index 131b05d04f01..000000000000 --- a/dev-util/ragel/files/ragel-6.5+gcc-4.4.patch +++ /dev/null @@ -1,22 +0,0 @@ -diff --git a/ragel/main.cpp b/ragel/main.cpp -index a16a50a..13d0152 100644 ---- a/ragel/main.cpp -+++ b/ragel/main.cpp -@@ -336,7 +336,7 @@ void processArgs( int argc, const char **argv, InputData &id ) - printStatistics = true; - break; - case '-': { -- char *eq = strchr( pc.paramArg, '=' ); -+ char *eq = const_cast<char *>(strchr( pc.paramArg, '=' )); - - if ( eq != 0 ) - *eq++ = 0; -@@ -507,7 +507,7 @@ char *makeIntermedTemplate( const char *baseFileName ) - { - char *result = 0; - const char *templ = "ragel-XXXXXX.xml"; -- char *lastSlash = strrchr( baseFileName, '/' ); -+ const char *lastSlash = strrchr( baseFileName, '/' ); - if ( lastSlash == 0 ) { - result = new char[strlen(templ)+1]; - strcpy( result, templ ); diff --git a/dev-util/ragel/files/ragel-6.5-freebsd.patch b/dev-util/ragel/files/ragel-6.5-freebsd.patch deleted file mode 100644 index f4de33ba4745..000000000000 --- a/dev-util/ragel/files/ragel-6.5-freebsd.patch +++ /dev/null @@ -1,28 +0,0 @@ -From 8da80e890a57c76671d61acf2ee58d9686b7b271 Mon Sep 17 00:00:00 2001 -From: =?utf-8?q?Diego=20Elio=20'Flameeyes'=20Petten=C3=B2?= <flameeyes@gmail.com> -Date: Tue, 19 May 2009 20:46:39 +0200 -Subject: [PATCH 2/2] Fix tests on FreeBSD: malloc.h should not be used, stdlib.h should. - -Also use the C++ proper includes instead of the C includes. ---- - test/cppscan1.h | 4 ++-- - 1 files changed, 2 insertions(+), 2 deletions(-) - -diff --git a/test/cppscan1.h b/test/cppscan1.h -index 3fa0229..346dd9b 100644 ---- a/test/cppscan1.h -+++ b/test/cppscan1.h -@@ -2,8 +2,8 @@ - #define _CPPSCAN1_H - - #include <iostream> --#include <malloc.h> --#include <string.h> -+#include <cstdlib> -+#include <cstring> - - using namespace std; - --- -1.6.3.1 - |