Skip to content

Commit

Permalink
Fixed compile fails with VS
Browse files Browse the repository at this point in the history
  • Loading branch information
laruence committed Jan 18, 2013
1 parent ce86d18 commit c6bef8a
Show file tree
Hide file tree
Showing 38 changed files with 111 additions and 105 deletions.
60 changes: 30 additions & 30 deletions config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -42,36 +42,36 @@ if test "$PHP_YAF" != "no"; then
AC_MSG_RESULT([$php_version, ok])
fi
PHP_NEW_EXTENSION(yaf,
yaf.c \
yaf_application.c \
yaf_bootstrap.c \
yaf_dispatcher.c \
yaf_exception.c \
yaf_config.c \
configs/ini.c \
configs/simple.c \
yaf_request.c \
requests/http.c \
requests/simple.c \
yaf_response.c \
response/http.c \
response/cli.c \
yaf_view.c \
views/interface.c \
views/simple.c \
yaf_controller.c \
yaf_action.c \
yaf_router.c \
routes/interface.c \
routes/static.c \
routes/simple.c \
routes/supervar.c \
routes/regex.c \
routes/rewrite.c \
routes/map.c \
yaf_loader.c \
yaf_registry.c \
yaf_plugin.c \
yaf.c \
yaf_application.c \
yaf_bootstrap.c \
yaf_dispatcher.c \
yaf_exception.c \
yaf_config.c \
configs/yaf_config_ini.c \
configs/yaf_config_simple.c \
yaf_request.c \
requests/yaf_request_http.c \
requests/yaf_request_simple.c \
yaf_response.c \
responses/yaf_response_http.c \
responses/yaf_response_cli.c \
yaf_view.c \
views/yaf_view_interface.c \
views/yaf_view_simple.c \
yaf_controller.c \
yaf_action.c \
yaf_router.c \
routes/yaf_route_interface.c \
routes/yaf_route_static.c \
routes/yaf_route_simple.c \
routes/yaf_route_supervar.c \
routes/yaf_route_regex.c \
routes/yaf_route_rewrite.c \
routes/yaf_route_map.c \
yaf_loader.c \
yaf_registry.c \
yaf_plugin.c \
yaf_session.c,
$ext_shared)
fi
4 changes: 3 additions & 1 deletion config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
ARG_ENABLE("yaf", "enable yaf support", "no");

if (PHP_YAF == "yes") {
EXTENSION("yaf", "yaf.c yaf_application.c yaf_bootstrap.c yaf_dispatcher.c yaf_exception.c yaf_config.c configs/ini.c configs/simple.c yaf_request.c requests/http.c requests/simple.c yaf_response.c response/http.c response/cli.c yaf_view.c views/interface.c views/simple.c yaf_controller.c yaf_action.c yaf_router.c routes/interface.c routes/static.c routes/simple.c routes/supervar.c routes/regex.c routes/rewrite.c routes/map.c yaf_loader.c yaf_registry.c yaf_plugin.c yaf_session.c");

EXTENSION("yaf", "yaf.c yaf_application.c yaf_bootstrap.c yaf_dispatcher.c yaf_exception.c yaf_config.c configs/yaf_config_ini.c configs/yaf_config_simple.c yaf_request.c requests/yaf_request_http.c requests/yaf_request_simple.c yaf_response.c responses/yaf_response_http.c responses/yaf_response_cli.c yaf_view.c views/yaf_view_interface.c views/yaf_view_simple.c yaf_controller.c yaf_action.c yaf_router.c routes/yaf_route_interface.c routes/yaf_route_static.c routes/yaf_route_simple.c routes/yaf_route_supervar.c routes/yaf_route_regex.c routes/yaf_route_rewrite.c routes/yaf_route_map.c yaf_loader.c yaf_registry.c yaf_plugin.c yaf_session.c");

AC_DEFINE("HAVE_YAF", 1, "Have Yaf Support");
}
3 changes: 2 additions & 1 deletion configs/ini.c → configs/yaf_config_ini.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
#include "yaf_namespace.h"
#include "yaf_exception.h"
#include "yaf_config.h"
#include "configs/ini.h"

#include "configs/yaf_config_ini.h"

zend_class_entry *yaf_config_ini_ce;

Expand Down
File renamed without changes.
3 changes: 2 additions & 1 deletion configs/simple.c → configs/yaf_config_simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
#include "yaf_namespace.h"
#include "yaf_exception.h"
#include "yaf_config.h"
#include "configs/simple.h"

#include "configs/yaf_config_simple.h"

zend_class_entry *yaf_config_simple_ce;

Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions requests/http.c → requests/yaf_request_http.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@

#include "php.h"
#include "main/SAPI.h"
#include "ext/standard/url.h" /* for php_url */

#include "php_yaf.h"
#include "yaf_namespace.h"
#include "yaf_request.h"
#include "yaf_exception.h"
#include "requests/http.h"

#include "ext/standard/url.h" /* for php_url */
#include "requests/yaf_request_http.h"

static zend_class_entry * yaf_request_http_ce;

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion requests/simple.c → requests/yaf_request_simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include "yaf_namespace.h"
#include "yaf_request.h"
#include "yaf_exception.h"
#include "requests/simple.h"
#include "requests/yaf_request_simple.h"

static zend_class_entry *yaf_request_simple_ce;

Expand Down
File renamed without changes.
3 changes: 2 additions & 1 deletion response/cli.c → responses/yaf_response_cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
#include "yaf_namespace.h"
#include "yaf_response.h"
#include "yaf_exception.h"
#include "response/cli.h"

#include "responses/yaf_response_cli.h"

zend_class_entry * yaf_response_cli_ce;

Expand Down
File renamed without changes.
3 changes: 2 additions & 1 deletion response/http.c → responses/yaf_response_http.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
#include "yaf_namespace.h"
#include "yaf_response.h"
#include "yaf_exception.h"
#include "response/http.h"

#include "responses/yaf_response_http.h"

zend_class_entry *yaf_response_http_ce;

Expand Down
File renamed without changes.
14 changes: 7 additions & 7 deletions routes/interface.c → routes/yaf_route_interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@
#include "yaf_exception.h"
#include "yaf_router.h"

#include "routes/interface.h"
#include "routes/static.h"
#include "routes/simple.h"
#include "routes/supervar.h"
#include "routes/regex.h"
#include "routes/rewrite.h"
#include "routes/map.h"
#include "routes/yaf_route_interface.h"
#include "routes/yaf_route_static.h"
#include "routes/yaf_route_simple.h"
#include "routes/yaf_route_supervar.h"
#include "routes/yaf_route_regex.h"
#include "routes/yaf_route_rewrite.h"
#include "routes/yaf_route_map.h"

zend_class_entry *yaf_route_ce;

Expand Down
File renamed without changes.
30 changes: 15 additions & 15 deletions routes/map.c → routes/yaf_route_map.c
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
/*
+----------------------------------------------------------------------+
| Yet Another Framework |
+----------------------------------------------------------------------+
| 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 |
| available through the world-wide-web at the following url: |
| http://www.php.net/license/3_01.txt |
| If you did not receive a copy of the PHP license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| [email protected] so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Author: Xinchen Hui <[email protected]> |
+----------------------------------------------------------------------+
+----------------------------------------------------------------------+
| Yet Another Framework |
+----------------------------------------------------------------------+
| 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 |
| available through the world-wide-web at the following url: |
| http://www.php.net/license/3_01.txt |
| If you did not receive a copy of the PHP license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| [email protected] so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Author: Xinchen Hui <[email protected]> |
+----------------------------------------------------------------------+
*/

/* $Id: map.c 329197 2013-01-18 05:55:37Z laruence $*/
Expand All @@ -29,8 +29,8 @@
#include "yaf_request.h"

#include "yaf_router.h"
#include "routes/interface.h"
#include "routes/map.h"
#include "routes/yaf_route_interface.h"
#include "routes/yaf_route_map.h"

zend_class_entry *yaf_route_map_ce;

Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions routes/regex.c → routes/yaf_route_regex.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
#include "yaf_request.h"

#include "yaf_router.h"
#include "routes/interface.h"
#include "routes/regex.h"
#include "routes/yaf_route_interface.h"
#include "routes/yaf_route_regex.h"

zend_class_entry *yaf_route_regex_ce;

Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions routes/rewrite.c → routes/yaf_route_rewrite.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
#include "yaf_request.h"

#include "yaf_router.h"
#include "routes/interface.h"
#include "routes/rewrite.h"
#include "routes/yaf_route_interface.h"
#include "routes/yaf_route_rewrite.h"

zend_class_entry *yaf_route_rewrite_ce;

Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions routes/simple.c → routes/yaf_route_simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
#include "yaf_exception.h"
#include "yaf_application.h" /* for yaf_application_is_module_name */
#include "yaf_request.h"

#include "yaf_router.h"
#include "routes/interface.h"
#include "routes/simple.h"

#include "routes/yaf_route_interface.h"
#include "routes/yaf_route_simple.h"

zend_class_entry *yaf_route_simple_ce;

Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions routes/static.c → routes/yaf_route_static.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
#include "yaf_request.h"

#include "yaf_router.h"
#include "routes/interface.h"
#include "routes/static.h"
#include "routes/yaf_route_interface.h"
#include "routes/yaf_route_static.h"

zend_class_entry * yaf_route_static_ce;

Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions routes/supervar.c → routes/yaf_route_supervar.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
#include "yaf_request.h"

#include "yaf_router.h"
#include "routes/interface.h"
#include "routes/static.h" /* for yaf_route_pathinfo_route */
#include "routes/supervar.h"
#include "routes/yaf_route_interface.h"
#include "routes/yaf_route_static.h" /* for yaf_route_pathinfo_route */
#include "routes/yaf_route_supervar.h"

zend_class_entry *yaf_route_supervar_ce;

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion views/interface.c → views/yaf_view_interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include "yaf_loader.h"
#include "yaf_view.h"

#include "views/interface.h"
#include "views/yaf_view_interface.h"

zend_class_entry *yaf_view_interface_ce;

Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions views/simple.c → views/yaf_view_simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
#include "yaf_loader.h"
#include "yaf_view.h"

#include "views/interface.h"
#include "views/simple.h"
#include "views/yaf_view_interface.h"
#include "views/yaf_view_simple.h"

zend_class_entry *yaf_view_simple_ce;

Expand Down
File renamed without changes.
30 changes: 15 additions & 15 deletions yaf.dsp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions yaf_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
#include "yaf_exception.h"
#include "yaf_config.h"

#include "configs/ini.h"
#include "configs/simple.h"
#include "configs/yaf_config_ini.h"
#include "configs/yaf_config_simple.h"

zend_class_entry *yaf_config_ce;

Expand Down
Loading

0 comments on commit c6bef8a

Please sign in to comment.