Add .gitattributes. Move source files.
This commit is contained in:
parent
42799ae6d1
commit
604c7b1ee6
|
@ -0,0 +1 @@
|
||||||
|
*.h linguist-language=C
|
|
@ -10,6 +10,8 @@ if test "$PHP_COLLECTIONS" != "no"; then
|
||||||
else
|
else
|
||||||
CFLAGS="-O2"
|
CFLAGS="-O2"
|
||||||
fi
|
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)
|
PHP_NEW_EXTENSION(collections, $COLLECTIONS_SRC, $ext_shared)
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
ARG_ENABLE("collections", "enable collections support", "no");
|
ARG_ENABLE("collections", "enable collections support", "no");
|
||||||
|
|
||||||
if (PHP_COLLECTIONS != "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);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
//
|
//
|
||||||
// ext-collections/collections_fe.c
|
// ext-collections/collections_me.c
|
||||||
//
|
//
|
||||||
// @Author CismonX
|
// @Author CismonX
|
||||||
//
|
//
|
||||||
|
@ -7,7 +7,7 @@
|
||||||
#include <php.h>
|
#include <php.h>
|
||||||
|
|
||||||
#include "php_collections.h"
|
#include "php_collections.h"
|
||||||
#include "php_collections_fe.h"
|
#include "php_collections_me.h"
|
||||||
|
|
||||||
ZEND_BEGIN_ARG_INFO(action_arginfo, 0)
|
ZEND_BEGIN_ARG_INFO(action_arginfo, 0)
|
||||||
ZEND_ARG_CALLABLE_INFO(0, action, 0)
|
ZEND_ARG_CALLABLE_INFO(0, action, 0)
|
|
@ -7,7 +7,7 @@
|
||||||
#include <php.h>
|
#include <php.h>
|
||||||
|
|
||||||
#include "php_collections.h"
|
#include "php_collections.h"
|
||||||
#include "php_collections_fe.h"
|
#include "php_collections_me.h"
|
||||||
|
|
||||||
#define NEW_COLLECTION_OBJ(name) \
|
#define NEW_COLLECTION_OBJ(name) \
|
||||||
zend_object* (name) = (zend_object*)ecalloc(1, sizeof(zend_object) + \
|
zend_object* (name) = (zend_object*)ecalloc(1, sizeof(zend_object) + \
|
|
@ -1,5 +1,5 @@
|
||||||
//
|
//
|
||||||
// ext-collections/php_collections_fe.h
|
// ext-collections/php_collections_me.h
|
||||||
//
|
//
|
||||||
// @Author CismonX
|
// @Author CismonX
|
||||||
//
|
//
|
Reference in New Issue