Some sweeping syntax changes for consistency:

(! foo) changed to ( ! foo)
|| changed to OR
changed newline standardization code in various places from preg_replace to str_replace
diff --git a/system/codeigniter/Compat.php b/system/codeigniter/Compat.php
index 1f01ca8..6478f08 100644
--- a/system/codeigniter/Compat.php
+++ b/system/codeigniter/Compat.php
@@ -1,4 +1,4 @@
-<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');

+<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

 /**

  * CodeIgniter

  *

@@ -36,7 +36,7 @@
  * will generate errors when running under PHP 4

  *

  */

-if (! defined('E_STRICT'))

+if ( ! defined('E_STRICT'))

 {

 	define('E_STRICT', 2048);

 }

@@ -51,11 +51,11 @@
  * @param	string

  * @return	bool

  */

-if (! function_exists('ctype_digit'))

+if ( ! function_exists('ctype_digit'))

 {

 	function ctype_digit($str)

 	{

-		if (! is_string($str) OR $str == '')

+		if ( ! is_string($str) OR $str == '')

 		{

 			return FALSE;

 		}

@@ -76,11 +76,11 @@
  * @param	string

  * @return	bool

  */

-if (! function_exists('ctype_alnum'))

+if ( ! function_exists('ctype_alnum'))

 {

 	function ctype_alnum($str)

 	{

-		if (! is_string($str) OR $str == '')

+		if ( ! is_string($str) OR $str == '')

 		{

 			return FALSE;

 		}

@@ -91,6 +91,6 @@
 

 // --------------------------------------------------------------------

 

-
-/* End of file Compat.php */
+

+/* End of file Compat.php */

 /* Location: ./system/codeigniter/Compat.php */
\ No newline at end of file