Subversion Repositories eduke32

Rev

Rev 8553 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8553 Rev 8648
Line 507... Line 507...
507
507
508
#define BMAX_PATH 256
508
#define BMAX_PATH 256
509
509
510
#define Bassert assert
510
#define Bassert assert
511
#define Brand rand
511
#define Brand rand
512
#define Balloca alloca
-
 
513
#define Bmalloc malloc
512
#define Bmalloc malloc
514
#define Bcalloc calloc
513
#define Bcalloc calloc
515
#define Brealloc realloc
514
#define Brealloc realloc
516
#define Bfree free
515
#define Bfree free
517
#define Bopen open
516
#define Bopen open
Line 614... Line 613...
614
#else
613
#else
615
# define Bsnprintf snprintf
614
# define Bsnprintf snprintf
616
# define Bvsnprintf vsnprintf
615
# define Bvsnprintf vsnprintf
617
#endif
616
#endif
618
617
-
 
618
#ifdef _MSC_VER
-
 
619
# define Balloca _alloca
-
 
620
#elif defined __GNUC__
-
 
621
# define Balloca __builtin_alloca
-
 
622
#else
-
 
623
# define Balloca alloca
-
 
624
#endif
-
 
625
-
 
626
#ifdef _MSC_VER
-
 
627
# define Bmalloca _malloca
-
 
628
# define Bfreea _freea
-
 
629
#else
-
 
630
# define Bmalloca alloca
-
 
631
# define Bfreea(ptr) do { } while (0)
-
 
632
#endif
-
 
633
619
#define Btime() time(NULL)
634
#define Btime() time(NULL)
620
635
621
#if defined(_WIN32)
636
#if defined(_WIN32)
622
# define Bmkdir(s,x) mkdir(s)
637
# define Bmkdir(s,x) mkdir(s)
623
#else
638
#else