head 1.2; access; symbols pkgsrc-2013Q2:1.2.0.2 pkgsrc-2013Q2-base:1.2; locks; strict; comment @// @; 1.2 date 2013.06.15.00.30.31; author jmmv; state dead; branches; next 1.1; commitid PT1fDyBU3ED21ETw; 1.1 date 2013.05.06.14.44.07; author joerg; state Exp; branches; next ; desc @@ 1.2 log @Update to 0.3: Released on 2013/06/14. * Issue 1: Added support for Lua 5.2 while maintaining support for Lua 5.1. Applications using Lutok can be modified to use the new interface in this new version and thus support both Lua releases. However, because of incompatible changes to the Lua API, this release of Lutok is incompatible with previous releases as well. * Issue 3: Tweaked configure to look for Lua using the pkg-config names lua-5.2 and lua-5.1. These are the names used by FreeBSD. Interface changes: * New global constants: registry_index. * New methods added to the state class: get_global_table. * Removed global constants: globals_index. @ text @$NetBSD: patch-state.hpp,v 1.1 2013/05/06 14:44:07 joerg Exp $ --- state.hpp.orig 2013-04-30 22:43:07.000000000 +0000 +++ state.hpp @@@@ -33,7 +33,12 @@@@ #define LUTOK_STATE_HPP #include + +#if defined(_LIBCPP_VERSION) || __cplusplus >= 201103L +#include +#else #include +#endif namespace lutok { @@@@ -72,7 +77,11 @@@@ class state { struct impl; /// Pointer to the shared internal implementation. +#if defined(_LIBCPP_VERSION) || __cplusplus >= 201103L + std::shared_ptr< impl > _pimpl; +#else std::tr1::shared_ptr< impl > _pimpl; +#endif void* new_userdata_voidp(const size_t); void* to_userdata_voidp(const int); @ 1.1 log @When using libc++ or C++11, use the standard namespace. @ text @d1 1 a1 1 $NetBSD$ @