From 7a928e2b19bddf152fd838469cc50805d4132401 Mon Sep 17 00:00:00 2001 From: Martijn Otto Date: Thu, 26 Mar 2015 16:00:10 +0100 Subject: Changed default visibility for symbols in the PHP-CPP library to hidden and explicitly exported all symbols available from the public API. Moved the hiddenpointer to the zend implementation directory as it is not meant to be used publicly and not referenced anywhere from the API anyway --- include/super.h | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'include/super.h') diff --git a/include/super.h b/include/super.h index 07dc4b3..154ae62 100644 --- a/include/super.h +++ b/include/super.h @@ -12,29 +12,29 @@ * Set up namespace */ namespace Php { - + /** * Class definition */ -class Super +class PHPCPP_EXPORT Super { public: /** * Constructor - * + * * Extension writers do not have to access the super-globals themselves. * They are always accessible via Php::POST, Php::GET, et cetera. - * + * * @param index index number * @param name name of the variable in PHP */ Super(int index, const char *name) : _index(index), _name(name) {} - + /** * Destructor */ virtual ~Super() {} - + /** * Array access operator * This can be used for accessing associative arrays @@ -78,7 +78,7 @@ public: // convert to value, and call begin on the value object return value().begin(); } - + /** * Return an iterator for iterating over the variables * @return iterator @@ -95,19 +95,19 @@ private: * @var int */ int _index; - + /** * Name of the variable in PHP * @var name */ const char *_name; - + /** * Turn the object into a value object * @return Value */ Value value(); - + }; /** @@ -125,4 +125,3 @@ extern Super REQUEST; * End namespace */ } - -- cgit v1.2.3