Skip to content
Browse files

add config.w32 file.

  • Loading branch information...
1 parent 8bb3ea2 commit 9a0bdc61bc7dd7fbf8381e0029f6de87543ed598 @chobie committed Jun 25, 2011
Showing with 10 additions and 4 deletions.
  1. +6 −0 src/config.w32
  2. +1 −1 src/php_phpskirt.h
  3. +3 −3 src/phpskirt.c
View
6 src/config.w32
@@ -0,0 +1,6 @@
+ARG_WITH('phpskirt', 'phpskirt extension', 'no');
+
+if (PHP_PHPSKIRT != "no") {
+
+ EXTENSION("phpskirt", "phpskirt.c array.c buffer.c markdown.c html.c html_smartypants.c");
+}
View
2 src/php_phpskirt.h
@@ -19,6 +19,6 @@
extern zend_module_entry phpskirt_module_entry;
#define phpext_phpskirt_ptr &phpskirt_module_entry;
-extern PHPAPI zend_class_entry *phpskirt_class_entry;
+extern zend_class_entry *phpskirt_class_entry;
#endif /* PHP_PHPSKIRT_H */
View
6 src/phpskirt.c
@@ -24,7 +24,7 @@
#include "php_phpskirt.h"
-PHPAPI zend_class_entry *phpskirt_class_entry;
+zend_class_entry *phpskirt_class_entry;
void php_phpskirt_init(TSRMLS_D);
@@ -139,6 +139,7 @@ static void phpskirt__render(PHPSkirtRendererType render_type, INTERNAL_FUNCTION
unsigned int enabled_extensions = 0, render_flags = 0;
char *buffer;
int buffer_len = 0;
+ HashTable *table;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC,"s",&buffer,&buffer_len) == FAILURE) {
return;
@@ -152,7 +153,6 @@ static void phpskirt__render(PHPSkirtRendererType render_type, INTERNAL_FUNCTION
output_buf = bufnew(128);
bufgrow(output_buf, strlen(buffer) * 1.2f);
- HashTable *table = NULL;
if(Z_TYPE_P(zend_read_property(phpskirt_class_entry, getThis(),"extensions",sizeof("extensions")-1, 0 TSRMLS_CC)) != IS_NULL) {
table = Z_ARRVAL_P(zend_read_property(phpskirt_class_entry, getThis(),"extensions",sizeof("extensions")-1, 0 TSRMLS_CC));
}
@@ -211,7 +211,7 @@ PHP_METHOD(phpskirt, to_toc)
phpskirt__render(PHPSKIRT_RENDER_TOC,INTERNAL_FUNCTION_PARAM_PASSTHRU);
}
-PHPAPI function_entry php_phpskirt_methods[] = {
+static function_entry php_phpskirt_methods[] = {
PHP_ME(phpskirt, __construct, arginfo_phpskirt__construct, ZEND_ACC_PUBLIC)
PHP_ME(phpskirt, to_html, NULL, ZEND_ACC_PUBLIC)
PHP_ME(phpskirt, to_toc, NULL, ZEND_ACC_PUBLIC)

0 comments on commit 9a0bdc6

Please sign in to comment.
Something went wrong with that request. Please try again.