forked from KolibriOS/kolibrios
LaserTank build fix
git-svn-id: svn://kolibrios.org@5283 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
3e6613c6f9
commit
1aaf816951
@ -1,6 +1,6 @@
|
|||||||
#include "smalllibc/kosSyst.h"
|
#include "smalllibc/kosSyst.h"
|
||||||
#include "smalllibc/kosFile.h"
|
#include "smalllibc/kosFile.h"
|
||||||
#include "smalllibc/sprintf.cpp"
|
#include "smalllibc/sprintf.h"
|
||||||
#include "smalllibc/func.h"
|
#include "smalllibc/func.h"
|
||||||
#include "render.h"
|
#include "render.h"
|
||||||
#include "image.h"
|
#include "image.h"
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
#include "kosSyst.h"
|
#include "kosSyst.h"
|
||||||
#include "kosFile.h"
|
#include "kosFile.h"
|
||||||
#include "mcsmemm.H"
|
#include "MCSMEMM.H"
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
#include "kosSyst.h"
|
|
||||||
static char pureCallMessage[] = "PURE function call!";
|
|
||||||
|
|
||||||
// âûçîâ àáñòðàêòíîãî ìåòîäà
|
|
||||||
int __cdecl _purecall()
|
|
||||||
{
|
|
||||||
rtlDebugOutString( pureCallMessage );
|
|
||||||
kos_ExitApp();
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
@ -1,24 +1,13 @@
|
|||||||
#include "kosSyst.h"
|
#include "kosSyst.h"
|
||||||
#include "func.h"
|
#include "func.h"
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
#include "sprintf.h"
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// âûâîä ñòðîêè íà ïå÷àòü. barsuk äîáàâèë %f
|
// âûâîä ñòðîêè íà ïå÷àòü. barsuk äîáàâèë %f
|
||||||
|
|
||||||
//#define PREC 2
|
|
||||||
//#define HALF 0.499
|
|
||||||
#define PREC 6
|
|
||||||
#define HALF 0.4999999
|
|
||||||
|
|
||||||
static double double_tab[]={1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13, 1e14, 1e15,
|
|
||||||
1e16, 1e17, 1e18, 1e19, 1e20, 1e21, 1e22, 1e23, 1e24, 1e25, 1e26, 1e27, 1e28, 1e29, 1e30};
|
|
||||||
|
|
||||||
|
|
||||||
//
|
|
||||||
|
|
||||||
static Dword dectab[] = { 1000000000, 100000000, 10000000, 1000000, 100000,
|
|
||||||
10000, 1000, 100, 10, 0 };
|
|
||||||
|
|
||||||
//
|
//
|
||||||
void sprintf( char *Str, char* Format, ... )
|
void sprintf( char *Str, char* Format, ... )
|
||||||
|
15
programs/games/LaserTank/trunk/smalllibc/sprintf.h
Normal file
15
programs/games/LaserTank/trunk/smalllibc/sprintf.h
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
#include "kosSyst.h"
|
||||||
|
|
||||||
|
//#define PREC 2
|
||||||
|
//#define HALF 0.499
|
||||||
|
#define PREC 6
|
||||||
|
#define HALF 0.4999999
|
||||||
|
|
||||||
|
static double double_tab[] = { 1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13, 1e14, 1e15,
|
||||||
|
1e16, 1e17, 1e18, 1e19, 1e20, 1e21, 1e22, 1e23, 1e24, 1e25, 1e26, 1e27, 1e28, 1e29, 1e30 };
|
||||||
|
|
||||||
|
static Dword dectab[] = { 1000000000, 100000000, 10000000, 1000000, 100000,
|
||||||
|
10000, 1000, 100, 10, 0 };
|
||||||
|
|
||||||
|
void sprintf(char *Str, char* Format, ...);
|
||||||
|
char *ftoa(double d);
|
Loading…
Reference in New Issue
Block a user