com php-src: fix indentation + remove c++ comments: ext/tokenizer/tokenizer.c
| From: | Bob Weinand | Date: | Thu, 30 Apr 2015 06:03:29 +0000 |
| Subject: | com php-src: fix indentation + remove c++ comments: ext/tokenizer/tokenizer.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-86921@lists.php.net to get a copy of this message | ||
Commit: 02a9eb4f8c736089808b51d862def0e648383e09
Author: Márcio Almada <marcio3w@gmail.com> Sat, 21 Mar 2015 18:17:14 -0300
Parents: a75decd452caea67a8afc175510ea5cf5c4c3aca
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=02a9eb4f8c736089808b51d862def0e648383e09
Log:
fix indentation + remove c++ comments
Changed paths:
M ext/tokenizer/tokenizer.c
Diff:
diff --git a/ext/tokenizer/tokenizer.c b/ext/tokenizer/tokenizer.c
index c011894..c4b9d14 100644
--- a/ext/tokenizer/tokenizer.c
+++ b/ext/tokenizer/tokenizer.c
@@ -104,7 +104,7 @@ static void tokenize(zval *return_value)
int token_type;
zend_bool destroy;
int token_line = 1;
- int need_tokens = -1; // for __halt_compiler lexing. -1 = disabled
+ int need_tokens = -1; /* for __halt_compiler lexing. -1 = disabled */
array_init(return_value);
@@ -147,13 +147,13 @@ static void tokenize(zval *return_value)
}
ZVAL_NULL(&token);
- // after T_HALT_COMPILER collect the next three non-dropped tokens
+ /* after T_HALT_COMPILER collect the next three non-dropped tokens */
if (need_tokens != -1) {
if (token_type != T_WHITESPACE && token_type != T_OPEN_TAG
- && token_type != T_COMMENT && token_type != T_DOC_COMMENT
- && --need_tokens == 0
+ && token_type != T_COMMENT && token_type != T_DOC_COMMENT
+ && --need_tokens == 0
) {
- // fetch the rest into a T_INLINE_HTML
+ /* fetch the rest into a T_INLINE_HTML */
if (zendcursor != zendlimit) {
array_init(&keyword);
add_next_index_long(&keyword, T_INLINE_HTML);