kaydara.h File Reference

#include <karch/arch.h>
#include <karch/types.h>
#include <ctype.h>
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <assert.h>
#include <strings.h>

Macros

#define K_KERNEL_VERSION   18000
 
#define K_NO_PROJECTSETTINGS
 
#define MEMORY_DEBUG
 
#define KPROFILING_CODE_ENABLE
 
#define K_ENABLE_STREAM_FCURVE
 
#define NULL   ((void *)0)
 
#define K_MAX_TEXT_LENGTH   1020
 
#define K_FORWARD(ClassName)   class ClassName; typedef ClassName *H##ClassName
 
#define K_FORWARD_HI(ClassName)   class ClassName; typedef ClassName *H##ClassName; typedef H##ClassName HI##ClassName
 
#define K_SAFE_FREE_PTR(p)    if( p ){ free( p ); (p) = NULL; }
 
#define K_SAFE_DELETE_PTR(p)   if( p ){ delete (p); (p) = NULL; }
 
#define K_SAFE_DELETE_ARRAY_PTR(a)   if( a ){ delete [] (a); (a) = NULL; }
 
#define K_SAFE_DESTROY_OBJECT(p)   { if( p ){ (p)->Destroy(); (p) = NULL; } }
 
#define _MSC_EMULATOR
 
#define override
 
#define sealed
 
#define abstract   =0
 
#define _TRUNCATE   ((size_t)-1)
 
#define strtok_s(token, sep, context)   strtok( token,sep )
 
#define strncat_s(dst, bufsize, src, len)   strncat( dst,src,len )
 
#define localtime_s(_Tm, _Time)   _Tm = localtime( _Time )
 
#define _stricmp   strcasecmp
 
#define strcmpi   strcasecmp
 
#define _strcmpi   strcasecmp
 
#define stricmp   strcasecmp
 
#define strncmpi   strncasecmp
 
#define strnicmp   strncasecmp
 
#define _atoi64(str)   strtoll( str,NULL,10 )
 
#define _isnan(x)   isnan( x )
 
#define itoa   _itoa
 
#define K_LOCAL_CLASS
 
#define K_DEPRECATED_2014
 
#define K_DEPRECATED_2015
 
#define K_DEPRECATED_2016
 
#define K_DEPRECATED_2017
 
#define K_DEPRECATED_2018
 

Functions

int strcpy_s (char *dst, size_t bufsize, const char *src)
 
template<size_t bufsize>
int strcpy_s (char(&dst)[bufsize], const char *src)
 
int strncpy_s (char *dst, size_t bufsize, const char *src, size_t count)
 
template<size_t bufsize>
int strncpy_s (char(&dst)[bufsize], const char *src, size_t count)
 
int vsprintf_s (char *buffer, size_t bufsize, const char *format, va_list args)
 
template<size_t bufsize>
int vsprintf_s (char(&buffer)[bufsize], const char *format, va_list args)
 
int sprintf_s (char *buffer, size_t bufsize, const char *format,...)
 
template<size_t bufsize>
int sprintf_s (char(&buffer)[bufsize], const char *format,...)
 
int strcat_s (char *dst, size_t bufsize, const char *src)
 
template<size_t bufsize>
int strcat_s (char(&dst)[bufsize], const char *src)
 
char * _itoa (int pValue, char *pString, int pRadix)
 

Macro Definition Documentation

#define _atoi64 (   str)    strtoll( str,NULL,10 )

Definition at line 332 of file kaydara.h.

#define _isnan (   x)    isnan( x )

Definition at line 336 of file kaydara.h.

#define _MSC_EMULATOR

Definition at line 232 of file kaydara.h.

#define _strcmpi   strcasecmp
#define _stricmp   strcasecmp

Definition at line 313 of file kaydara.h.

#define _TRUNCATE   ((size_t)-1)
+ Examples:

Definition at line 242 of file kaydara.h.

#define abstract   =0

Definition at line 239 of file kaydara.h.

#define itoa   _itoa

Definition at line 347 of file kaydara.h.

#define K_DEPRECATED_2014

Definition at line 412 of file kaydara.h.

#define K_DEPRECATED_2015

Definition at line 413 of file kaydara.h.

#define K_DEPRECATED_2016

Definition at line 414 of file kaydara.h.

#define K_DEPRECATED_2017

Definition at line 415 of file kaydara.h.

#define K_DEPRECATED_2018

Definition at line 416 of file kaydara.h.

#define K_ENABLE_STREAM_FCURVE

Definition at line 137 of file kaydara.h.

#define K_FORWARD (   ClassName)    class ClassName; typedef ClassName *H##ClassName

Definition at line 180 of file kaydara.h.

#define K_FORWARD_HI (   ClassName)    class ClassName; typedef ClassName *H##ClassName; typedef H##ClassName HI##ClassName

Definition at line 181 of file kaydara.h.

#define K_KERNEL_VERSION   18000

Definition at line 40 of file kaydara.h.

#define K_LOCAL_CLASS

Definition at line 391 of file kaydara.h.

#define K_MAX_TEXT_LENGTH   1020

Definition at line 178 of file kaydara.h.

#define K_NO_PROJECTSETTINGS

Definition at line 43 of file kaydara.h.

#define K_SAFE_DELETE_ARRAY_PTR (   a)    if( a ){ delete [] (a); (a) = NULL; }

Definition at line 185 of file kaydara.h.

#define K_SAFE_DELETE_PTR (   p)    if( p ){ delete (p); (p) = NULL; }
#define K_SAFE_DESTROY_OBJECT (   p)    { if( p ){ (p)->Destroy(); (p) = NULL; } }

Definition at line 187 of file kaydara.h.

#define KPROFILING_CODE_ENABLE

Definition at line 104 of file kaydara.h.

#define localtime_s (   _Tm,
  _Time 
)    _Tm = localtime( _Time )

Definition at line 309 of file kaydara.h.

#define MEMORY_DEBUG

Definition at line 100 of file kaydara.h.

#define NULL   ((void *)0)
+ Examples:

Definition at line 169 of file kaydara.h.

PyObject int override

Definition at line 235 of file kaydara.h.

#define sealed

Definition at line 238 of file kaydara.h.

#define strcmpi   strcasecmp

Definition at line 316 of file kaydara.h.

#define stricmp   strcasecmp

Definition at line 322 of file kaydara.h.

#define strncat_s (   dst,
  bufsize,
  src,
  len 
)    strncat( dst,src,len )

Definition at line 305 of file kaydara.h.

#define strncmpi   strncasecmp

Definition at line 325 of file kaydara.h.

#define strnicmp   strncasecmp

Definition at line 328 of file kaydara.h.

#define strtok_s (   token,
  sep,
  context 
)    strtok( token,sep )

Definition at line 301 of file kaydara.h.

Function Documentation

char* _itoa ( int  pValue,
char *  pString,
int  pRadix 
)
inline

Definition at line 339 of file kaydara.h.

340  {
341  assert(pRadix==10);
342  if (pString) sprintf(pString,"%d", pValue);
343  return pString;
344  }
int sprintf_s ( char *  buffer,
size_t  bufsize,
const char *  format,
  ... 
)
inline
+ Examples:

Definition at line 273 of file kaydara.h.

274  {
275  va_list Arguments;
276  va_start( Arguments, format); /* Initialize variable arguments. */
277  int result = vsprintf_s( buffer,bufsize,format, Arguments );
278  va_end( Arguments ); /* Reset variable arguments. */
279  return result;
280  }
va_list
Definition: modsupport.h:23
const char ** buffer
Definition: abstract.h:477
int vsprintf_s(char *buffer, size_t bufsize, const char *format, va_list args)
Definition: kaydara.h:264
char * format
Definition: abstract.h:327
PyObject int * result
Definition: abstract.h:231
int sprintf_s ( char(&)  buffer[bufsize],
const char *  format,
  ... 
)

Definition at line 281 of file kaydara.h.

282  {
283  va_list Arguments;
284  va_start( Arguments, format); /* Initialize variable arguments. */
285  int result = vsprintf_s( buffer,bufsize,format, Arguments );
286  va_end( Arguments ); /* Reset variable arguments. */
287  return result;
288  }
va_list
Definition: modsupport.h:23
const char ** buffer
Definition: abstract.h:477
int vsprintf_s(char *buffer, size_t bufsize, const char *format, va_list args)
Definition: kaydara.h:264
char * format
Definition: abstract.h:327
PyObject int * result
Definition: abstract.h:231
int strcat_s ( char *  dst,
size_t  bufsize,
const char *  src 
)
inline

Definition at line 290 of file kaydara.h.

291  {
292  strcat( dst,src );
293  return 0;
294  }
PyObject * src
Definition: abstract.h:588
int strcat_s ( char(&)  dst[bufsize],
const char *  src 
)

Definition at line 295 of file kaydara.h.

296  {
297  return strcat_s( dst,bufsize,src );
298  }
PyObject * src
Definition: abstract.h:588
int strcat_s(char *dst, size_t bufsize, const char *src)
Definition: kaydara.h:290
int strcpy_s ( char *  dst,
size_t  bufsize,
const char *  src 
)
inline

Definition at line 244 of file kaydara.h.

245  {
246  strcpy( dst,src );
247  return 0;
248  }
PyObject * src
Definition: abstract.h:588
int strcpy_s ( char(&)  dst[bufsize],
const char *  src 
)

Definition at line 249 of file kaydara.h.

250  {
251  return strcpy_s( dst,bufsize,src );
252  }
PyObject * src
Definition: abstract.h:588
int strcpy_s(char *dst, size_t bufsize, const char *src)
Definition: kaydara.h:244
int strncpy_s ( char *  dst,
size_t  bufsize,
const char *  src,
size_t  count 
)
inline

Definition at line 254 of file kaydara.h.

255  {
256  strncpy( dst,src,count );
257  return 0;
258  }
PyObject * src
Definition: abstract.h:588
Py_ssize_t count
Definition: abstract.h:1077
int strncpy_s ( char(&)  dst[bufsize],
const char *  src,
size_t  count 
)

Definition at line 259 of file kaydara.h.

260  {
261  return strncpy_s( dst,bufsize,src,count );
262  }
int strncpy_s(char *dst, size_t bufsize, const char *src, size_t count)
Definition: kaydara.h:254
PyObject * src
Definition: abstract.h:588
Py_ssize_t count
Definition: abstract.h:1077
int vsprintf_s ( char *  buffer,
size_t  bufsize,
const char *  format,
va_list  args 
)
inline

Definition at line 264 of file kaydara.h.

265  {
266  return vsprintf( buffer,format, args );
267  }
const char ** buffer
Definition: abstract.h:477
PyObject * args
Definition: abstract.h:305
char * format
Definition: abstract.h:327
int vsprintf_s ( char(&)  buffer[bufsize],
const char *  format,
va_list  args 
)

Definition at line 268 of file kaydara.h.

269  {
270  return vsprintf_s( buffer,bufsize,format, args );
271  }
const char ** buffer
Definition: abstract.h:477
PyObject * args
Definition: abstract.h:305
int vsprintf_s(char *buffer, size_t bufsize, const char *format, va_list args)
Definition: kaydara.h:264
char * format
Definition: abstract.h:327

Go to the source code of this file.