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   19000
 
#define K_NO_PROJECTSETTINGS
 
#define K_NO_NAMESPACE_UPGRADE
 
#define K_NO_PYTHON_CODE_GENERATION
 
#define K_NO_LIVE
 
#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 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 itoa   _itoa
 
#define K_LOCAL_CLASS
 
#define K_DEPRECATED_2016
 
#define K_DEPRECATED_2017
 
#define K_DEPRECATED_2018
 
#define K_DEPRECATED_2019
 

Functions

int strcpy_s (char *dst, size_t, const char *src)
 
template<size_t bufsize>
int strcpy_s (char(&dst)[bufsize], const char *src)
 
int strncpy_s (char *dst, size_t, 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, 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, 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 340 of file kaydara.h.

#define _MSC_EMULATOR

Definition at line 244 of file kaydara.h.

#define _strcmpi   strcasecmp
#define _stricmp   strcasecmp

Definition at line 321 of file kaydara.h.

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

Definition at line 250 of file kaydara.h.

#define abstract   =0

Definition at line 247 of file kaydara.h.

#define itoa   _itoa

Definition at line 351 of file kaydara.h.

#define K_DEPRECATED_2016

Definition at line 417 of file kaydara.h.

#define K_DEPRECATED_2017

Definition at line 418 of file kaydara.h.

#define K_DEPRECATED_2018

Definition at line 419 of file kaydara.h.

#define K_DEPRECATED_2019

Definition at line 420 of file kaydara.h.

#define K_ENABLE_STREAM_FCURVE

Definition at line 147 of file kaydara.h.

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

Definition at line 190 of file kaydara.h.

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

Definition at line 191 of file kaydara.h.

#define K_KERNEL_VERSION   19000

Definition at line 40 of file kaydara.h.

#define K_LOCAL_CLASS

Definition at line 398 of file kaydara.h.

#define K_MAX_TEXT_LENGTH   1020

Definition at line 188 of file kaydara.h.

#define K_NO_LIVE

Definition at line 46 of file kaydara.h.

#define K_NO_NAMESPACE_UPGRADE

Definition at line 44 of file kaydara.h.

#define K_NO_PROJECTSETTINGS

Definition at line 43 of file kaydara.h.

#define K_NO_PYTHON_CODE_GENERATION

Definition at line 45 of file kaydara.h.

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

Definition at line 195 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 197 of file kaydara.h.

#define K_SAFE_FREE_PTR (   p)    if( p ){ free( p ); (p) = NULL; }
#define KPROFILING_CODE_ENABLE

Definition at line 112 of file kaydara.h.

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

Definition at line 317 of file kaydara.h.

#define MEMORY_DEBUG

Definition at line 108 of file kaydara.h.

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

Definition at line 179 of file kaydara.h.

#define sealed

Definition at line 246 of file kaydara.h.

#define strcmpi   strcasecmp

Definition at line 324 of file kaydara.h.

#define stricmp   strcasecmp

Definition at line 330 of file kaydara.h.

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

Definition at line 313 of file kaydara.h.

#define strncmpi   strncasecmp

Definition at line 333 of file kaydara.h.

#define strnicmp   strncasecmp

Definition at line 336 of file kaydara.h.

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

Definition at line 309 of file kaydara.h.

Function Documentation

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

Definition at line 343 of file kaydara.h.

344  {
345  assert(pRadix==10);
346  if (pString) sprintf(pString,"%d", pValue);
347  return pString;
348  }
const char void * pValue
Definition: fbcontrols.h:2116
int sprintf_s ( char *  buffer,
size_t  bufsize,
const char *  format,
  ... 
)
inline
+ Examples:

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, const char *format, va_list args)
Definition: kaydara.h:272
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 289 of file kaydara.h.

290  {
291  va_list Arguments;
292  va_start( Arguments, format); /* Initialize variable arguments. */
293  int result = vsprintf_s( buffer,bufsize,format, Arguments );
294  va_end( Arguments ); /* Reset variable arguments. */
295  return result;
296  }
va_list
Definition: modsupport.h:23
const char ** buffer
Definition: abstract.h:477
int vsprintf_s(char *buffer, size_t, const char *format, va_list args)
Definition: kaydara.h:272
char * format
Definition: abstract.h:327
PyObject int * result
Definition: abstract.h:231
int strcat_s ( char *  dst,
size_t  ,
const char *  src 
)
inline

Definition at line 298 of file kaydara.h.

299  {
300  strcat( dst,src );
301  return 0;
302  }
PyObject * src
Definition: abstract.h:588
int strcat_s ( char(&)  dst[bufsize],
const char *  src 
)

Definition at line 303 of file kaydara.h.

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

Definition at line 252 of file kaydara.h.

253  {
254  strcpy( dst,src );
255  return 0;
256  }
PyObject * src
Definition: abstract.h:588
int strcpy_s ( char(&)  dst[bufsize],
const char *  src 
)

Definition at line 257 of file kaydara.h.

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

Definition at line 262 of file kaydara.h.

263  {
264  strncpy( dst,src,count );
265  return 0;
266  }
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 267 of file kaydara.h.

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

Definition at line 272 of file kaydara.h.

273  {
274  return vsprintf( buffer,format, args );
275  }
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 276 of file kaydara.h.

277  {
278  return vsprintf_s( buffer,bufsize,format, args );
279  }
const char ** buffer
Definition: abstract.h:477
PyObject * args
Definition: abstract.h:305
int vsprintf_s(char *buffer, size_t, const char *format, va_list args)
Definition: kaydara.h:272
char * format
Definition: abstract.h:327

Go to the source code of this file.