sniper          Wed Feb 11 16:20:23 2004 EDT

  Modified files:              
    /php-src/ext/pspell pspell.c 
  Log:
  There is CODING_STANDARDS..at least NEW code should respect those..
  
http://cvs.php.net/diff.php/php-src/ext/pspell/pspell.c?r1=1.41&r2=1.42&ty=u
Index: php-src/ext/pspell/pspell.c
diff -u php-src/ext/pspell/pspell.c:1.41 php-src/ext/pspell/pspell.c:1.42
--- php-src/ext/pspell/pspell.c:1.41    Wed Feb 11 13:50:16 2004
+++ php-src/ext/pspell/pspell.c Wed Feb 11 16:20:22 2004
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: pspell.c,v 1.41 2004/02/11 18:50:16 bfrance Exp $ */
+/* $Id: pspell.c,v 1.42 2004/02/11 21:20:22 sniper Exp $ */
 
 #define IS_EXT_MODULE
 
@@ -805,21 +805,21 @@
 }
 /* }}} */
 
-static int pspell_config_path( INTERNAL_FUNCTION_PARAMETERS, char *option ) {
+static int pspell_config_path(INTERNAL_FUNCTION_PARAMETERS, char *option)
+{
        int type;
        zval **sccin, **value;
        int argc;
-
        PspellConfig *config;
        
        argc = ZEND_NUM_ARGS();
-       if (argc != 2 || zend_get_parameters_ex(argc,&sccin,&value) == FAILURE) {
+       if (argc != 2 || zend_get_parameters_ex(argc, &sccin, &value) == FAILURE) {
                WRONG_PARAM_COUNT;
        }
 
        convert_to_long_ex(sccin);
        config = (PspellConfig *) zend_list_find(Z_LVAL_PP(sccin), &type);
-       if(!config){
+       if (!config) {
                php_error_docref(NULL TSRMLS_CC, E_WARNING, "%ld is not a PSPELL 
config index", Z_LVAL_PP(sccin));
                RETURN_FALSE;
        }
@@ -843,25 +843,23 @@
    Use a personal dictionary for this config */
 PHP_FUNCTION(pspell_config_personal)
 {
-       pspell_config_path( INTERNAL_FUNCTION_PARAM_PASSTHRU, "personal");
+       pspell_config_path(INTERNAL_FUNCTION_PARAM_PASSTHRU, "personal");
 }
 /* }}} */
 
 /* {{{ proto bool pspell_config_dict_dir(int conf, string directory)
-
    location of the main word list */
 PHP_FUNCTION(pspell_config_dict_dir)
 {
-       pspell_config_path( INTERNAL_FUNCTION_PARAM_PASSTHRU, "dict-dir");
+       pspell_config_path(INTERNAL_FUNCTION_PARAM_PASSTHRU, "dict-dir");
 }
-
 /* }}} */
 
 /* {{{ proto bool pspell_config_data_dir(int conf, string directory)
     location of language data files */
 PHP_FUNCTION(pspell_config_data_dir)
 {
-       pspell_config_path( INTERNAL_FUNCTION_PARAM_PASSTHRU, "data-dir");
+       pspell_config_path(INTERNAL_FUNCTION_PARAM_PASSTHRU, "data-dir");
 }
 /* }}} */
 

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to