]> granicus.if.org Git - php/commitdiff
No c++ comments in C code
authorfoobar <sniper@php.net>
Tue, 19 Apr 2005 11:41:04 +0000 (11:41 +0000)
committerfoobar <sniper@php.net>
Tue, 19 Apr 2005 11:41:04 +0000 (11:41 +0000)
Zend/zend_compile.c
Zend/zend_exceptions.c
ext/pdo_firebird/firebird_statement.c
ext/pdo_mysql/mysql_statement.c
ext/pdo_pgsql/pdo_pgsql.c
sapi/apache/sapi_apache.c
sapi/apache_hooks/mod_php5.c
sapi/apache_hooks/sapi_apache.c

index 51ed1623d943c4d74d83257abfc0fa8b0a37c7a1..39776e4a65cd0f1a68e158df07057fc9cecc0924 100644 (file)
@@ -241,7 +241,7 @@ static int lookup_cv(zend_op_array *op_array, char* name, int name_len)
                op_array->size_var += 16; /* FIXME */           
                op_array->vars = erealloc(op_array->vars, op_array->size_var*sizeof(zend_compiled_variable));
        }
-       op_array->vars[i].name = name; //estrndup(name, name_len);
+       op_array->vars[i].name = name; /* estrndup(name, name_len); */
        op_array->vars[i].name_len = name_len;
        op_array->vars[i].hash_value = hash_value;
        return i;
@@ -1658,7 +1658,7 @@ void zend_do_begin_catch(znode *try_token, znode *catch_class, znode *catch_var,
        opline = get_next_op(CG(active_op_array) TSRMLS_CC);
        opline->opcode = ZEND_CATCH;
        opline->op1 = *catch_class;
-/*     SET_UNUSED(opline->op1); *//* FIXME: Define IS_CLASS or something like that */
+/*     SET_UNUSED(opline->op1); */ /* FIXME: Define IS_CLASS or something like that */
        opline->op2 = *catch_var;
        opline->op1.u.EA.type = 0; /* 1 means it's the last catch in the block */
 
index a270d2b27cabe08f0dc7c248e8dcc6c7a191a37d..3479d4e732d5a9aaf815cf7aa679c9a30c73d704 100644 (file)
@@ -176,7 +176,7 @@ ZEND_METHOD(error_exception, __construct)
        if (argc >= 4) {
            zend_update_property_string(default_exception_ce, object, "file", sizeof("file")-1, filename TSRMLS_CC);
        if (argc < 5) {
-           lineno = 0; // invalidate lineno
+           lineno = 0; /* invalidate lineno */
        }
        zend_update_property_long(default_exception_ce, object, "line", sizeof("line")-1, lineno TSRMLS_CC);
        }
index 69a7b2e5dd30c5c61ad475cb84f57bfb113ba31e..4ffad306bac2c4724623d94108b752ad94450258 100644 (file)
@@ -351,7 +351,7 @@ static int firebird_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr,  /* {{
                                        *ptr = var->sqldata;
                                        *len = var->sqllen;
                                        break;
-// --- cut here ---
+/* --- cut here --- */
                                case SQL_SHORT:
                                    *ptr = FETCH_BUF(S->fetch_buf[colno], char, 24, NULL);
                                        *len = sprintf(*ptr, "%d", *(short*)var->sqldata);
@@ -372,7 +372,7 @@ static int firebird_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr,  /* {{
                                        *ptr = FETCH_BUF(S->fetch_buf[colno], char, 24, NULL);
                                        *len = sprintf(*ptr, "%f" , *(double*)var->sqldata);
                                        break;
-// --- cut here ---
+/* --- cut here --- */
 #if abies_0
                                case SQL_SHORT:
                                        *ptr = FETCH_BUF(S->fetch_buf[colno], long, 0, *len);
index 11d81136f28486623d593fa5b3a4e1241dcaf47d..48137dff386e90e8f0974f8e6c199d8f1e64b663 100755 (executable)
@@ -67,8 +67,8 @@ static int pdo_mysql_stmt_execute(pdo_stmt_t *stmt TSRMLS_DC)
 
        row_count = mysql_affected_rows(H->server);
        if (row_count == (my_ulonglong)-1) {
-               // we either have a query that returned a result set or an error occured
-               // lets see if we have access to a result set
+               /* we either have a query that returned a result set or an error occured
+                  lets see if we have access to a result set */
                S->result = mysql_use_result(H->server);
                if (NULL == S->result) {
                        pdo_mysql_error_stmt(stmt);
@@ -82,7 +82,7 @@ static int pdo_mysql_stmt_execute(pdo_stmt_t *stmt TSRMLS_DC)
                        S->fields = mysql_fetch_fields(S->result);
                }
        } else {
-               // this was a DML or DDL query (INSERT, UPDATE, DELETE, ...
+               /* this was a DML or DDL query (INSERT, UPDATE, DELETE, ... */
                stmt->row_count = row_count;
        }
 
index 912e1ed00d61e6180d8b05dd3331656e9b7a29b7..d48bafc5c94043a3f43d851e1a4bdfc09d90652c 100644 (file)
@@ -79,7 +79,7 @@ PHP_MSHUTDOWN_FUNCTION(pdo_pgsql)
  */
 PHP_RINIT_FUNCTION(pdo_pgsql)
 {
-       //      php_pdo_register_driver(&pdo_pgsql_driver);
+       /*      php_pdo_register_driver(&pdo_pgsql_driver); */
        return SUCCESS;
 }
 /* }}} */
@@ -88,7 +88,7 @@ PHP_RINIT_FUNCTION(pdo_pgsql)
  */
 PHP_RSHUTDOWN_FUNCTION(pdo_pgsql)
 {
-       //      php_pdo_unregister_driver(&pdo_pgsql_driver);
+       /*      php_pdo_unregister_driver(&pdo_pgsql_driver); */
        return SUCCESS;
 }
 /* }}} */
index 2298d5db956ac278b5851a321b23cfa0d700257e..391d688f1aaa24ee64f94f634f6a0f8c7dd31aab 100644 (file)
@@ -34,8 +34,7 @@ int apache_php_module_main(request_rec *r, int display_source_mode TSRMLS_DC)
                return FAILURE;
        }
        /* sending a file handle to another dll is not working
-       // so let zend open it. 
-       */
+          so let zend open it. */
        
        if (display_source_mode) {
                zend_syntax_highlighter_ini syntax_highlighter_ini;
index 93334f67c6aee50d5cd38707d8be0d2ffa8167e4..298e0470c5c4ca57377023dc7a067d6ba1665802 100644 (file)
@@ -95,7 +95,7 @@ static CONST_PREFIX char *php_apache_admin_flag_handler(cmd_parms *cmd, php_per_
 module MODULE_VAR_EXPORT php5_module;
 
 int saved_umask;
-//static int setup_env = 0;
+/* static int setup_env = 0; */
 static unsigned char apache_php_initialized;
 
 typedef struct _php_per_dir_entry {
index 1b6c9599acf75b5bdce83e4a754595d0e0abb80b..5b32c249f8d9881530996afd502b2eb18595c3b0 100644 (file)
@@ -33,8 +33,7 @@ int apache_php_module_main(request_rec *r, int display_source_mode TSRMLS_DC)
                return FAILURE;
        }
        /* sending a file handle to another dll is not working
-       // so let zend open it. 
-       */
+          so let zend open it. */
        
        if (display_source_mode) {
                zend_syntax_highlighter_ini syntax_highlighter_ini;