[llvm-commits] CVS: llvm-test/MultiSource/Applications/SPASS/stringsx.h dfgparser.c flags.c options.c strings.c symbol.h top.c strings.h

Jeff Cohen jeffc at jolt-lang.org
Wed Mar 28 17:24:57 PDT 2007



Changes in directory llvm-test/MultiSource/Applications/SPASS:

stringsx.h added (r1.1)
dfgparser.c updated: 1.1 -> 1.2
flags.c updated: 1.1 -> 1.2
options.c updated: 1.1 -> 1.2
strings.c updated: 1.1 -> 1.2
symbol.h updated: 1.1 -> 1.2
top.c updated: 1.1 -> 1.2
strings.h (r1.1) removed
---
Log message:

The header file strings.h was overriding the POSIX-defined header file strings.h
supplied by FreeBSD.  Fixed by renaming it.


---
Diffs of the changes:  (+108 -20)

 dfgparser.c |    2 -
 flags.c     |    8 ++---
 options.c   |    6 ++--
 strings.c   |    8 ++---
 stringsx.h  |   88 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 symbol.h    |    8 ++---
 top.c       |    8 ++---
 7 files changed, 108 insertions(+), 20 deletions(-)


Index: llvm-test/MultiSource/Applications/SPASS/stringsx.h
diff -c /dev/null llvm-test/MultiSource/Applications/SPASS/stringsx.h:1.1
*** /dev/null	Wed Mar 28 19:24:50 2007
--- llvm-test/MultiSource/Applications/SPASS/stringsx.h	Wed Mar 28 19:24:40 2007
***************
*** 0 ****
--- 1,88 ----
+ /**************************************************************/
+ /* ********************************************************** */
+ /* *                                                        * */
+ /* *                STRING HANDLING                         * */
+ /* *                                                        * */
+ /* *  $Module:   STRINGS                                    * */ 
+ /* *                                                        * */
+ /* *  Copyright (C) 1999, 2000, 2001 MPI fuer Informatik    * */
+ /* *                                                        * */
+ /* *  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         * */
+ /* *                                                        * */
+ /* *                                                        * */
+ /* $Revision: 1.1 $                                        * */
+ /* $State: Exp $                                            * */
+ /* $Date: 2007/03/29 00:24:40 $                             * */
+ /* $Author: jeffc $                                       * */
+ /* *                                                        * */
+ /* *             Contact:                                   * */
+ /* *             Christoph Weidenbach                       * */
+ /* *             MPI fuer Informatik                        * */
+ /* *             Stuhlsatzenhausweg 85                      * */
+ /* *             66123 Saarbruecken                         * */
+ /* *             Email: weidenb at mpi-sb.mpg.de               * */
+ /* *             Germany                                    * */
+ /* *                                                        * */
+ /* ********************************************************** */
+ /**************************************************************/
+ 
+ 
+ /* $RCSfile: stringsx.h,v $ */
+ 
+ #ifndef _STRINGS_
+ #define _STRINGS_
+ 
+ /**************************************************************/
+ /* Includes                                                   */
+ /**************************************************************/
+ 
+ #include <math.h>
+ #include "memory.h"
+ 
+ 
+ /**************************************************************/
+ /* Functions                                                  */
+ /**************************************************************/
+ 
+ #ifdef __cplusplus
+ extern "C" {
+ #endif
+ 
+ static __inline__ BOOL string_Equal(const char* S1, const char* S2)
+ {
+   return strcmp(S1, S2) == 0;
+ }
+ 
+ 
+ BOOL   string_StringIsNumber(const char*);
+ char*  string_StringCopy(const char*);
+ void   string_StringFree(char*);
+ char*  string_IntToString(int);
+ BOOL   string_StringToInt(const char*, BOOL, int*);
+ char*  string_Conc(const char*, const char*);
+ char*  string_Nconc(char*, char*);
+ char*  string_EmptyString(void);
+ char*  string_Prefix(const char*, int);
+ char*  string_Suffix(const char*, int);
+ char** string_Tokens(char*, int*);
+ 
+ #ifdef __cplusplus
+ }
+ #endif
+ 
+ #endif


Index: llvm-test/MultiSource/Applications/SPASS/dfgparser.c
diff -u llvm-test/MultiSource/Applications/SPASS/dfgparser.c:1.1 llvm-test/MultiSource/Applications/SPASS/dfgparser.c:1.2
--- llvm-test/MultiSource/Applications/SPASS/dfgparser.c:1.1	Sun Apr 24 23:10:28 2005
+++ llvm-test/MultiSource/Applications/SPASS/dfgparser.c	Wed Mar 28 19:24:40 2007
@@ -196,7 +196,7 @@
 #include "symbol.h"
 #include "term.h"
 #include "foldfg.h"
-#include "strings.h"
+#include "stringsx.h"
 
 /* Used for the texts from description section. */
 typedef struct {


Index: llvm-test/MultiSource/Applications/SPASS/flags.c
diff -u llvm-test/MultiSource/Applications/SPASS/flags.c:1.1 llvm-test/MultiSource/Applications/SPASS/flags.c:1.2
--- llvm-test/MultiSource/Applications/SPASS/flags.c:1.1	Sun Apr 24 23:10:28 2005
+++ llvm-test/MultiSource/Applications/SPASS/flags.c	Wed Mar 28 19:24:40 2007
@@ -26,10 +26,10 @@
 /* *  Place, Suite 330, Boston, MA  02111-1307  USA         * */
 /* *                                                        * */
 /* *                                                        * */
-/* $Revision: 1.1 $                                        * */
+/* $Revision: 1.2 $                                        * */
 /* $State: Exp $                                            * */
-/* $Date: 2005/04/25 04:10:28 $                             * */
-/* $Author: duraid $                                       * */
+/* $Date: 2007/03/29 00:24:40 $                             * */
+/* $Author: jeffc $                                       * */
 /* *                                                        * */
 /* *             Contact:                                   * */
 /* *             Christoph Weidenbach                       * */
@@ -50,7 +50,7 @@
 
 #include "flags.h"
 #include "misc.h"
-#include "strings.h"
+#include "stringsx.h"
 
 /**************************************************************/
 /* Global Declarations                                        */


Index: llvm-test/MultiSource/Applications/SPASS/options.c
diff -u llvm-test/MultiSource/Applications/SPASS/options.c:1.1 llvm-test/MultiSource/Applications/SPASS/options.c:1.2
--- llvm-test/MultiSource/Applications/SPASS/options.c:1.1	Sun Apr 24 23:10:28 2005
+++ llvm-test/MultiSource/Applications/SPASS/options.c	Wed Mar 28 19:24:40 2007
@@ -25,9 +25,9 @@
 /* *  to the Free Software Foundation, Inc., 59 Temple      * */
 /* *  Place, Suite 330, Boston, MA  02111-1307  USA         * */
 /* *                                                        * */
-/* $Revision: 1.1 $                                        * */
+/* $Revision: 1.2 $                                        * */
 /* $State: Exp $                                            * */
-/* $Date: 2005/04/25 04:10:28 $                             * */
+/* $Date: 2007/03/29 00:24:40 $                             * */
 /* *                                                        * */
 /* *             Contact:                                   * */
 /* *             Christoph Weidenbach                       * */
@@ -100,7 +100,7 @@
 ************************************************************************/
 
 #include "options.h"
-#include "strings.h"
+#include "stringsx.h"
 
 /**************************************************************/
 /* Local variables  and types                                 */


Index: llvm-test/MultiSource/Applications/SPASS/strings.c
diff -u llvm-test/MultiSource/Applications/SPASS/strings.c:1.1 llvm-test/MultiSource/Applications/SPASS/strings.c:1.2
--- llvm-test/MultiSource/Applications/SPASS/strings.c:1.1	Sun Apr 24 23:10:28 2005
+++ llvm-test/MultiSource/Applications/SPASS/strings.c	Wed Mar 28 19:24:40 2007
@@ -25,10 +25,10 @@
 /* *  Place, Suite 330, Boston, MA  02111-1307  USA         * */
 /* *                                                        * */
 /* *                                                        * */
-/* $Revision: 1.1 $                                        * */
+/* $Revision: 1.2 $                                        * */
 /* $State: Exp $                                            * */
-/* $Date: 2005/04/25 04:10:28 $                             * */
-/* $Author: duraid $                                       * */
+/* $Date: 2007/03/29 00:24:40 $                             * */
+/* $Author: jeffc $                                       * */
 /* *                                                        * */
 /* *             Contact:                                   * */
 /* *             Christoph Weidenbach                       * */
@@ -49,7 +49,7 @@
 /**************************************************************/
 
 #include <ctype.h>
-#include "strings.h"
+#include "stringsx.h"
 #include "list.h"
 
 /**************************************************************/


Index: llvm-test/MultiSource/Applications/SPASS/symbol.h
diff -u llvm-test/MultiSource/Applications/SPASS/symbol.h:1.1 llvm-test/MultiSource/Applications/SPASS/symbol.h:1.2
--- llvm-test/MultiSource/Applications/SPASS/symbol.h:1.1	Sun Apr 24 23:10:28 2005
+++ llvm-test/MultiSource/Applications/SPASS/symbol.h	Wed Mar 28 19:24:40 2007
@@ -26,10 +26,10 @@
 /* *  Place, Suite 330, Boston, MA  02111-1307  USA         * */
 /* *                                                        * */
 /* *                                                        * */
-/* $Revision: 1.1 $                                        * */
+/* $Revision: 1.2 $                                        * */
 /* $State: Exp $                                            * */
-/* $Date: 2005/04/25 04:10:28 $                             * */
-/* $Author: duraid $                                       * */
+/* $Date: 2007/03/29 00:24:40 $                             * */
+/* $Author: jeffc $                                       * */
 /* *                                                        * */
 /* *             Contact:                                   * */
 /* *             Christoph Weidenbach                       * */
@@ -54,7 +54,7 @@
 /**************************************************************/
 
 #include "list.h"
-#include "strings.h"
+#include "stringsx.h"
 
 /**************************************************************/
 /* Data Structures and Constants                              */


Index: llvm-test/MultiSource/Applications/SPASS/top.c
diff -u llvm-test/MultiSource/Applications/SPASS/top.c:1.1 llvm-test/MultiSource/Applications/SPASS/top.c:1.2
--- llvm-test/MultiSource/Applications/SPASS/top.c:1.1	Sun Apr 24 23:10:28 2005
+++ llvm-test/MultiSource/Applications/SPASS/top.c	Wed Mar 28 19:24:40 2007
@@ -26,10 +26,10 @@
 /* *  Place, Suite 330, Boston, MA  02111-1307  USA         * */
 /* *                                                        * */
 /* *                                                        * */
-/* $Revision: 1.1 $                                       * */
+/* $Revision: 1.2 $                                       * */
 /* $State: Exp $                                            * */
-/* $Date: 2005/04/25 04:10:28 $                             * */
-/* $Author: duraid $                                       * */
+/* $Date: 2007/03/29 00:24:40 $                             * */
+/* $Author: jeffc $                                       * */
 /* *                                                        * */
 /* *             Contact:                                   * */
 /* *             Christoph Weidenbach                       * */
@@ -62,7 +62,7 @@
 #include "rules-red.h"
 #include "analyze.h"
 #include "clock.h"
-#include "strings.h"
+#include "stringsx.h"
 #include "options.h"
 #include "context.h"
 #include "cnf.h"






More information about the llvm-commits mailing list