com php-src: Do not use int8_t when it is useless ...: phpdbg_eol.c phpdbg_eol.h

From: Date: Thu, 23 Oct 2014 11:02:50 +0000
Subject: com php-src: Do not use int8_t when it is useless ...: phpdbg_eol.c phpdbg_eol.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-82508@lists.php.net to get a copy of this message
Commit: 4a836ced7e55c39fd490ce01336a1693b6ed9700 Author: Bob Weinand <bobwei9@hotmail.com> Thu, 23 Oct 2014 13:02:50 +0200 Parents: 504448bce3e76a559d5fb15395db92fb0a15c490 Branches: PHP-5.6 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=4a836ced7e55c39fd490ce01336a1693b6ed9700 Log: Do not use int8_t when it is useless.... Changed paths: M phpdbg_eol.c M phpdbg_eol.h Diff: diff --git a/phpdbg_eol.c b/phpdbg_eol.c index f2946cb..fc20d56 100644 --- a/phpdbg_eol.c +++ b/phpdbg_eol.c @@ -2,7 +2,7 @@ +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ - | Copyright (c) 7-4 The PHP Group | + | Copyright (c) 1997-2014 The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | @@ -17,13 +17,12 @@ */ #ifdef HAVE_CONFIG_H -#include "config.h" +# include "config.h" #endif #include "phpdbg.h" #include "phpdbg_eol.h" - ZEND_EXTERN_MODULE_GLOBALS(phpdbg); #define EOL_LIST_LEN 4 @@ -34,8 +33,7 @@ struct phpdbg_eol_rep phpdbg_eol_list[EOL_LIST_LEN] = { {"CR", "\r", PHPDBG_EOL_CR}, }; -int8_t -phpdbg_eol_global_update(char *name TSRMLS_DC) +int phpdbg_eol_global_update(char *name TSRMLS_DC) { if (0 == memcmp(name, "CRLF", 4) || 0 == memcmp(name, "crlf", 4) || 0 == memcmp(name, "DOS", 3) || 0 == memcmp(name, "dos", 3)) { @@ -51,8 +49,7 @@ phpdbg_eol_global_update(char *name TSRMLS_DC) return SUCCESS; } -char * -phpdbg_eol_name(int8_t id) +char *phpdbg_eol_name(int id) { size_t i = 0; @@ -68,8 +65,7 @@ phpdbg_eol_name(int8_t id) return NULL; } -char * -phpdbg_eol_rep(int8_t id) +char *phpdbg_eol_rep(int id) { size_t i = 0; @@ -87,8 +83,7 @@ phpdbg_eol_rep(int8_t id) /* Inspired by https://ccrma.stanford.edu/~craig/utility/flip/flip.cpp */ -void -phpdbg_eol_convert(char **str, int *len TSRMLS_DC) +void phpdbg_eol_convert(char **str, int *len TSRMLS_DC) { char *in = *str, *out ; int in_len = *len, out_len, cursor, i; @@ -175,6 +170,3 @@ phpdbg_eol_convert(char **str, int *len TSRMLS_DC) *len = cursor; in = NULL; } - - - diff --git a/phpdbg_eol.h b/phpdbg_eol.h index 5c499fc..68b54cb 100644 --- a/phpdbg_eol.h +++ b/phpdbg_eol.h @@ -2,7 +2,7 @@ +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ - | Copyright (c) 7-4 The PHP Group | + | Copyright (c) 1997-2014 The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | @@ -24,7 +24,7 @@ struct phpdbg_eol_rep { char *name; char *rep; - int8_t id; + int id; }; enum { @@ -34,17 +34,13 @@ enum { PHPDBG_EOL_CR /* MAC */ }; -int8_t -phpdbg_eol_global_update(char *name TSRMLS_DC); +int phpdbg_eol_global_update(char *name TSRMLS_DC); -char * -phpdbg_eol_name(int8_t id); +char *phpdbg_eol_name(int id); -char * -phpdbg_eol_rep(int8_t id); +char *phpdbg_eol_rep(int id); -void -phpdbg_eol_convert(char **str, int *len TSRMLS_DC); +void phpdbg_eol_convert(char **str, int *len TSRMLS_DC); #endif /* PHPDBG_EOL_H */

« previous php.cvs (#82508) next »