[PHP-CVS] cvs: php4 /ext/pfpro pfpro.c php_pfpro.h

2001-03-21 Thread Andi Gutmans

andiWed Mar 21 12:07:18 2001 EDT

  Modified files:  
/php4/ext/pfpro pfpro.c php_pfpro.h 
  Log:
  - Fix spelling error
  
  
Index: php4/ext/pfpro/pfpro.c
diff -u php4/ext/pfpro/pfpro.c:1.9 php4/ext/pfpro/pfpro.c:1.10
--- php4/ext/pfpro/pfpro.c:1.9  Sun Feb 25 22:07:12 2001
+++ php4/ext/pfpro/pfpro.c  Wed Mar 21 12:07:18 2001
@@ -17,7 +17,7 @@
+--+
 */
 
-/* $Id: pfpro.c,v 1.9 2001/02/26 06:07:12 andi Exp $ */
+/* $Id: pfpro.c,v 1.10 2001/03/21 20:07:18 andi Exp $ */
 
 /* {{{ includes */
 #include "php.h"
@@ -97,7 +97,7 @@
 {
PFPROLS_FETCH();
 
-   PFPROG(initialised) = 0;
+   PFPROG(initialized) = 0;
 
 return SUCCESS;
 }
@@ -106,7 +106,7 @@
 {
PFPROLS_FETCH();
 
-   if (PFPROG(initialised) == 1) {
+   if (PFPROG(initialized) == 1) {
PNCleanup();
}
 
@@ -150,7 +150,7 @@
 
PNInit();
 
-   PFPROG(initialised) = 1;
+   PFPROG(initialized) = 1;
 
RETURN_TRUE;
 }
@@ -168,7 +168,7 @@
 
PNCleanup();
 
-   PFPROG(initialised) = 0;
+   PFPROG(initialized) = 0;
 
RETURN_TRUE;
 }
@@ -275,9 +275,9 @@
 
/* Initialise the library if needed */
 
-   if (PFPROG(initialised) == 0) {
+   if (PFPROG(initialized) == 0) {
PNInit();
-   PFPROG(initialised) = 1;
+   PFPROG(initialized) = 1;
}
 
/* Perform the transaction */
@@ -520,9 +520,9 @@
 
/* Initialise the library if needed */
 
-   if (PFPROG(initialised) == 0) {
+   if (PFPROG(initialized) == 0) {
PNInit();
-   PFPROG(initialised) = 1;
+   PFPROG(initialized) = 1;
}
 
/* Perform the transaction */
Index: php4/ext/pfpro/php_pfpro.h
diff -u php4/ext/pfpro/php_pfpro.h:1.6 php4/ext/pfpro/php_pfpro.h:1.7
--- php4/ext/pfpro/php_pfpro.h:1.6  Sun Feb 25 22:07:12 2001
+++ php4/ext/pfpro/php_pfpro.h  Wed Mar 21 12:07:18 2001
@@ -16,7 +16,7 @@
+--+
 */
 
-/* $Id: php_pfpro.h,v 1.6 2001/02/26 06:07:12 andi Exp $ */
+/* $Id: php_pfpro.h,v 1.7 2001/03/21 20:07:18 andi Exp $ */
 
 #ifndef PHP_PFPRO_H
 #define PHP_PFPRO_H
@@ -46,7 +46,7 @@
 
 typedef struct {
int le_pfpro;
-   int initialised;
+   int initialized;
char *defaulthost;
int defaultport;
int defaulttimeout;



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-CVS] cvs: php4 /ext/pfpro pfpro.c

2001-01-27 Thread John Donagher

jdonagher   Sat Jan 27 16:45:28 2001 EDT

  Modified files:  
/php4/ext/pfpro pfpro.c 
  Log:
  
  PR:
  Clean up and add folding
  
  
Index: php4/ext/pfpro/pfpro.c
diff -u php4/ext/pfpro/pfpro.c:1.7 php4/ext/pfpro/pfpro.c:1.8
--- php4/ext/pfpro/pfpro.c:1.7  Fri Dec 22 04:57:07 2000
+++ php4/ext/pfpro/pfpro.c  Sat Jan 27 16:45:27 2001
@@ -17,8 +17,9 @@
+--+
 */
 
-/* $Id: pfpro.c,v 1.7 2000/12/22 12:57:07 zeev Exp $ */
+/* $Id: pfpro.c,v 1.8 2001/01/28 00:45:27 jdonagher Exp $ */
 
+/* {{{ includes */
 #include "php.h"
 #include "php_ini.h"
 #include "php_pfpro.h"
@@ -28,15 +29,17 @@
 #if HAVE_PFPRO
 
 #include "ext/standard/php_string.h"
+/* }}} */
 
+/* {{{ zts */
 #ifdef ZTS
 int pfpro_globals_id;
 #else
 php_pfpro_globals pfpro_globals;
 #endif
-
-/* Function table */
+/* }}} */
 
+/* {{{ Function table */
 function_entry pfpro_functions[] = {
PHP_FE(pfpro_version, NULL)
PHP_FE(pfpro_init, NULL)
@@ -45,7 +48,9 @@
PHP_FE(pfpro_process, NULL)
{NULL, NULL, NULL}
 };
+/* }}} */
 
+/* {{{ Zend module entry */
 zend_module_entry pfpro_module_entry = {
"pfpro",
pfpro_functions,
@@ -56,12 +61,15 @@
PHP_MINFO(pfpro),
STANDARD_MODULE_PROPERTIES
 };
+/* }}} */
 
+/* {{{ dl() stuff */
 #ifdef COMPILE_DL_PFPRO
 ZEND_GET_MODULE(pfpro)
 #endif
-
+/* }}} */
 
+/* {{{ initialization defaults */
 PHP_INI_BEGIN()
STD_PHP_INI_ENTRY("pfpro.defaulthost",  "test.signio.com",  
PHP_INI_ALL, OnUpdateString,defaulthost,php_pfpro_globals, 
 pfpro_globals)
STD_PHP_INI_ENTRY("pfpro.defaultport",  "443", 
 PHP_INI_ALL, OnUpdateInt,   defaultport,
php_pfpro_globals,  pfpro_globals)
@@ -104,8 +112,9 @@
 
 return SUCCESS;
 }
-
+/* }}} */
 
+/* {{{ minfo registration */
 PHP_MINFO_FUNCTION(pfpro)
 {
php_info_print_table_start();
@@ -115,8 +124,7 @@
 
DISPLAY_INI_ENTRIES();
 }
-
-
+/* }}} */
 
 /* {{{ proto string pfpro_version()
Returns the version of the Payflow Pro library */
@@ -130,8 +138,6 @@
 }
 /* }}} */
 
-
-
 /* {{{ proto void pfpro_init()
Initialises the Payflow Pro library */
 PHP_FUNCTION(pfpro_init)
@@ -150,8 +156,6 @@
 }
 /* }}} */
 
-
-
 /* {{{ proto void pfpro_cleanup()
Shuts down the Payflow Pro library */
 PHP_FUNCTION(pfpro_cleanup)
@@ -170,8 +174,6 @@
 }
 /* }}} */
 
-
-
 /* {{{ proto string pfpro_process_raw(string parmlist [, string hostaddress [, int 
port, [, int timeout [, string proxyAddress [, int proxyPort [, string proxyLogon [, 
string proxyPassword]]])
Raw Payflow Pro transaction processing */
 PHP_FUNCTION(pfpro_process_raw)
@@ -289,8 +291,6 @@
RETURN_STRING(response, 1);
 }
 /* }}} */
-
-
 
 /* {{{ proto array pfpro_process(array parmlist [, string hostaddress [, int port, [, 
int timeout [, string proxyAddress [, int proxyPort [, string proxyLogon [, string 
proxyPassword]]])
Payflow Pro transaction processing using arrays */



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]