summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBen Fuhrmannek2020-06-15 11:27:30 +0200
committerBen Fuhrmannek2020-06-15 11:27:30 +0200
commit8776410692bf336a104fa19442f0fb761ecf0b5d (patch)
tree392016d79f0d7aae470af3252995ac023da8b064 /src
parentc3b5fc85dad5a4e20f2e2ca7b95b0c7407a3b8b6 (diff)
clobal config.h + better debug log
Diffstat (limited to 'src')
-rw-r--r--src/php_snuffleupagus.h4
-rw-r--r--src/snuffleupagus.c4
-rw-r--r--src/sp_utils.h2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/php_snuffleupagus.h b/src/php_snuffleupagus.h
index 43131fe..dae2154 100644
--- a/src/php_snuffleupagus.h
+++ b/src/php_snuffleupagus.h
@@ -7,6 +7,10 @@
7#define PHP_SNUFFLEUPAGUS_URL "https://github.com/nbs-system/snuffleupagus" 7#define PHP_SNUFFLEUPAGUS_URL "https://github.com/nbs-system/snuffleupagus"
8#define PHP_SNUFFLEUPAGUS_COPYRIGHT "LGPLv2" 8#define PHP_SNUFFLEUPAGUS_COPYRIGHT "LGPLv2"
9 9
10#ifdef HAVE_CONFIG_H
11#include "config.h"
12#endif
13
10#include <errno.h> 14#include <errno.h>
11#include <fcntl.h> 15#include <fcntl.h>
12#include <inttypes.h> 16#include <inttypes.h>
diff --git a/src/snuffleupagus.c b/src/snuffleupagus.c
index ff2d2b6..d62069c 100644
--- a/src/snuffleupagus.c
+++ b/src/snuffleupagus.c
@@ -4,10 +4,6 @@
4#include <glob.h> 4#include <glob.h>
5#endif 5#endif
6 6
7#ifdef HAVE_CONFIG_H
8#include "config.h"
9#endif
10
11#include "php_snuffleupagus.h" 7#include "php_snuffleupagus.h"
12 8
13#ifndef ZEND_EXT_API 9#ifndef ZEND_EXT_API
diff --git a/src/sp_utils.h b/src/sp_utils.h
index 200e82c..9df196c 100644
--- a/src/sp_utils.h
+++ b/src/sp_utils.h
@@ -37,7 +37,7 @@
37#define sp_log_err(feature, ...) sp_log_msg(feature, SP_LOG_ERROR, __VA_ARGS__) 37#define sp_log_err(feature, ...) sp_log_msg(feature, SP_LOG_ERROR, __VA_ARGS__)
38#define sp_log_warn(feature, ...) sp_log_msg(feature, SP_LOG_WARN, __VA_ARGS__) 38#define sp_log_warn(feature, ...) sp_log_msg(feature, SP_LOG_WARN, __VA_ARGS__)
39#ifdef SP_DEBUG 39#ifdef SP_DEBUG
40#define sp_log_debug(...) sp_log_msg("DEBUG", SP_LOG_DEBUG, __VA_ARGS__) 40#define sp_log_debug(fmt, ...) sp_log_msg("DEBUG", SP_LOG_DEBUG, "%s(): " fmt, __FUNCTION__, ##__VA_ARGS__)
41#else 41#else
42#define sp_log_debug(...) 42#define sp_log_debug(...)
43#endif 43#endif