Author: wyoung
Date: Mon Dec  3 18:08:25 2007
New Revision: 1972

URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1972&view=rev
Log:
Whitespace tweaks

Modified:
    trunk/lib/custom.pl

Modified: trunk/lib/custom.pl
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/custom.pl?rev=1972&r1=1971&r2=1972&view=diff
==============================================================================
--- trunk/lib/custom.pl (original)
+++ trunk/lib/custom.pl Mon Dec  3 18:08:25 2007
@@ -58,6 +58,7 @@
 #define MYSQLPP_CUSTOM_H
 
 #include "sql_types.h"
+#include "sssqls.h"
 
 #include <string>
 ---
@@ -84,9 +85,10 @@
 print OUT0 << "---";
 namespace mysqlpp {
 
-enum sql_dummy_type {sql_dummy};
-
-inline int sql_cmp(const std::string &a, const std::string &b) {
+enum sql_dummy_type { sql_dummy };
+
+inline int sql_cmp(const std::string &a, const std::string &b)
+{
   return a.compare(b);
 }
 ---
@@ -96,29 +98,19 @@
 foreach my $type (@types) {
     print OUT0 << "---";
 
-inline int sql_cmp($type a,$type b) {
-  return a-b;
+inline int sql_cmp($type a, $type b)
+{
+  return a - b;
 }
 ---
 }
 
[EMAIL PROTECTED] = ("double", "float");
[EMAIL PROTECTED] = ("double", "float", "longlong", "ulonglong");
 foreach my $type (@types) {
     print OUT0 << "---";
 
-inline int sql_cmp($type a,$type b) {
-  if (a == b) return 0;
-  if (a <  b) return -1;
-  return 1;
-}
----
-}      
-
[EMAIL PROTECTED] = ("longlong", "ulonglong");
-foreach my $type (@types) {
-    print OUT0 << "---";
-
-inline int sql_cmp($type a,$type b) {
+inline int sql_cmp($type a, $type b) 
+{
   if (a == b) return 0;
   if (a <  b) return -1;
   return 1;


_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits

Reply via email to