Enlightenment CVS committal

Author  : mej
Project : eterm
Module  : libast

Dir     : eterm/libast/test


Modified Files:
        perf.c test.c 


Log Message:
Wed Nov 26 17:18:20 2003                        Michael Jennings (mej)

Added sysdefs.h so that client programs who don't employ some/all of
the AST_* m4 macros can still get all the #define's they need for the
auto* stuff.

===================================================================
RCS file: /cvsroot/enlightenment/eterm/libast/test/perf.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- perf.c      19 Feb 2003 21:10:38 -0000      1.7
+++ perf.c      26 Nov 2003 22:19:44 -0000      1.8
@@ -21,9 +21,9 @@
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
 
-static const char cvs_ident[] = "$Id: perf.c,v 1.7 2003/02/19 21:10:38 mej Exp $";
+static const char cvs_ident[] = "$Id: perf.c,v 1.8 2003/11/26 22:19:44 mej Exp $";
 
-#ifdef HAVE_CONFIG_H
+#if defined(HAVE_CONFIG_H) && (HAVE_CONFIG_H != 0)
 # include <config.h>
 #endif
 
@@ -88,7 +88,7 @@
 perf_strings(void)
 {
     char *s1, *s2, *s3, *s4;
-#ifdef HAVE_REGEX_H
+#if HAVE_REGEX_H
     regex_t *r = NULL;
 #endif
     char **slist;
@@ -118,7 +118,7 @@
 
     PERF_SET_REPS(10);
 
-#ifdef HAVE_REGEX_H
+#if HAVE_REGEX_H
     PERF_BEGIN("regexp_match() function");
     PERF_TEST(regexp_match("One particular string", "part"););
     PERF_TEST(regexp_match("Some other strange string", "^[A-Za-z]+$"););
===================================================================
RCS file: /cvsroot/enlightenment/eterm/libast/test/test.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -3 -r1.27 -r1.28
--- test.c      19 Nov 2003 22:39:57 -0000      1.27
+++ test.c      26 Nov 2003 22:19:44 -0000      1.28
@@ -21,9 +21,9 @@
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
 
-static const char cvs_ident[] = "$Id: test.c,v 1.27 2003/11/19 22:39:57 mej Exp $";
+static const char cvs_ident[] = "$Id: test.c,v 1.28 2003/11/26 22:19:44 mej Exp $";
 
-#ifdef HAVE_CONFIG_H
+#if defined(HAVE_CONFIG_H) && (HAVE_CONFIG_H != 0)
 # include <config.h>
 #endif
 
@@ -103,7 +103,7 @@
 test_strings(void)
 {
     char *s1, *s2, *s3, *s4;
-#ifdef HAVE_REGEX_H
+#if HAVE_REGEX_H
     regex_t *r = NULL;
 #endif
     char **slist;
@@ -153,7 +153,7 @@
     FREE(s4);
     TEST_PASS();
 
-#ifdef HAVE_REGEX_H
+#if HAVE_REGEX_H
     TEST_BEGIN("regexp_match() function");
     TEST_FAIL_IF(!regexp_match("One particular string", "part"));
     TEST_FAIL_IF(regexp_match("Some other strange string", "^[A-Za-z]+$"));
@@ -1311,7 +1311,7 @@
 int
 test_regexp(void)
 {
-#ifdef LIBAST_REGEXP_SUPPORT_PCRE
+#if LIBAST_REGEXP_SUPPORT_PCRE
     {
         spif_charptr_t regexp_list[] = {
             "cdefg",




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to