# pragma warning (disable : 4996) // 'vsnprintf': This function or variable may be unsafe. Consider using vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
# pragma warning (disable : 4996) // 'vsnprintf': This function or variable may be unsafe. Consider using vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
// Debug : Sept 01 2006
// Debug : Sept 01 2006
# if defined(NL_COMP_VC8) || defined(NL_COMP_VC9)
# if defined(NL_COMP_VC8) || defined(NL_COMP_VC9) || defined(NL_COMP_VC10)
# pragma warning (disable : 4005) // don't warn on redefinitions caused by xp platform sdk
# pragma warning (disable : 4005) // don't warn on redefinitions caused by xp platform sdk
# endif // NL_COMP_VC8 || NL_COMP_VC9
# endif // NL_COMP_VC8 || NL_COMP_VC9
#endif // NL_OS_WINDOWS
#endif // NL_OS_WINDOWS
@ -287,20 +291,18 @@ typedef unsigned int uint; // at least 32bits (depend of processor)
#define __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#include<inttypes.h>
#include<inttypes.h>
#ifdef NL_OS_MAC
#if defined(__PRI_64_LENGTH_MODIFIER__)
#define NL_I64 __PRI_64_LENGTH_MODIFIER__
# define NL_I64 __PRI_64_LENGTH_MODIFIER__
#elif defined(__PRI64_PREFIX)
# define NL_I64 __PRI64_PREFIX
#else
#else
#define NL_I64 __PRI64_PREFIX
# ifdef _LP64
# define NL_I64 "l"
# else
# define NL_I64 "ll"
# endif // _LP64
#endif
#endif
/*
#ifdef _LP64
# define NL_I64 "l"
#else
# define NL_I64 "ll"
#endif // _LP64
*/
#endif // NL_OS_UNIX
#endif // NL_OS_UNIX
// CHashMap, CHashSet and CHashMultiMap definitions
// CHashMap, CHashSet and CHashMultiMap definitions
@ -364,7 +366,7 @@ typedef uint16 ucchar;
// To define a 64bits constant; ie: UINT64_CONSTANT(0x123456781234)
// To define a 64bits constant; ie: UINT64_CONSTANT(0x123456781234)
#ifdef NL_OS_WINDOWS
#ifdef NL_OS_WINDOWS
# if defined(NL_COMP_VC8) || defined(NL_COMP_VC9)
# if defined(NL_COMP_VC8) || defined(NL_COMP_VC9) || defined(NL_COMP_VC10)
nlwarning("%s : bad key encountered with type %s, number expected.",funcName,it.nextKey().getTypename());
continue;
}
if(!it.nextValue().isString())
{
nlwarning("%s : bad value encountered with type %s for key %s, string expected.",funcName,it.nextValue().getTypename(),it.nextKey().toString().c_str());
LOG_WHAT_IS_SENT("C%hu S%hu: sheet changes from %u to %u",TVPNodeServer::PrioContext.ClientId,TVPNodeServer::PrioContext.Slot,(uint32)entry.LastSent,asUInt32<T>(currentValue()));
LOG_WHAT_IS_SENT("C%hu S%hu: sheet changes from %u to %u",TVPNodeServer::PrioContext.ClientId,TVPNodeServer::PrioContext.Slot,(uint32)entry.LastSent,asUInt32<T>(currentValue()));
#endif
#endif
return(currentValue()!=*((T*)&(entry.LastSent)));
return(currentValue()!=*((T*)&(entry.LastSent)));
@ -569,7 +569,7 @@ public:
{
{
// Not sent yet
// Not sent yet
//nldebug( "No history yet for C%hu - slot %hu - prop %hu", TVPNodeServer::PrioContext.ClientHost->clientId(), (uint16)TVPNodeServer::PrioContext.Slot, propIndex );
//nldebug( "No history yet for C%hu - slot %hu - prop %hu", TVPNodeServer::PrioContext.ClientHost->clientId(), (uint16)TVPNodeServer::PrioContext.Slot, propIndex );
LOG_WHAT_IS_SENT("C%hu S%hu: sheet changes from %u to %u",TVPNodeServer::PrioContext.ClientId,TVPNodeServer::PrioContext.Slot,(uint32)entry.LastSent,asUInt32<T>(currentValue()));
LOG_WHAT_IS_SENT("C%hu S%hu: sheet changes from %u to %u",TVPNodeServer::PrioContext.ClientId,TVPNodeServer::PrioContext.Slot,(uint32)entry.LastSent,asUInt32<T>(currentValue()));
#endif
#endif
@ -639,7 +639,7 @@ public:
{
{
// Not sent yet
// Not sent yet
//nldebug( "No history yet for C%hu - slot %hu - prop %hu", TVPNodeServer::PrioContext.ClientHost->clientId(), (uint16)TVPNodeServer::PrioContext.Slot, propIndex );
//nldebug( "No history yet for C%hu - slot %hu - prop %hu", TVPNodeServer::PrioContext.ClientHost->clientId(), (uint16)TVPNodeServer::PrioContext.Slot, propIndex );