Add .gitattributes. Move source files.

This commit is contained in:
CismonX 2018-03-23 22:17:09 +08:00
parent 42799ae6d1
commit 604c7b1ee6
8 changed files with 9 additions and 6 deletions

1
.gitattributes vendored Normal file
View File

@ -0,0 +1 @@
*.h linguist-language=C

View File

@ -10,6 +10,8 @@ if test "$PHP_COLLECTIONS" != "no"; then
else
CFLAGS="-O2"
fi
COLLECTIONS_SRC="collections.c collections_fe.c collections_methods.c"
COLLECTIONS_SRC="src/collections.c
src/collections_me.c
src/collections_methods.c"
PHP_NEW_EXTENSION(collections, $COLLECTIONS_SRC, $ext_shared)
fi

View File

@ -1,5 +1,5 @@
ARG_ENABLE("collections", "enable collections support", "no");
if (PHP_COLLECTIONS != "no") {
EXTENSION("collections", "collections.c collections_fe.c collections_methods.c", true);
EXTENSION("collections", "src/collections.c src/collections_me.c src/collections_methods.c", true);
}

View File

@ -1,5 +1,5 @@
//
// ext-collections/collections_fe.c
// ext-collections/collections_me.c
//
// @Author CismonX
//
@ -7,7 +7,7 @@
#include <php.h>
#include "php_collections.h"
#include "php_collections_fe.h"
#include "php_collections_me.h"
ZEND_BEGIN_ARG_INFO(action_arginfo, 0)
ZEND_ARG_CALLABLE_INFO(0, action, 0)

View File

@ -7,7 +7,7 @@
#include <php.h>
#include "php_collections.h"
#include "php_collections_fe.h"
#include "php_collections_me.h"
#define NEW_COLLECTION_OBJ(name) \
zend_object* (name) = (zend_object*)ecalloc(1, sizeof(zend_object) + \

View File

@ -1,5 +1,5 @@
//
// ext-collections/php_collections_fe.h
// ext-collections/php_collections_me.h
//
// @Author CismonX
//