FreeBASIC
0.91.0
Main Page
Data Structures
Files
File List
Globals
hinit.c
Go to the documentation of this file.
1
/* libfb initialization for DOS */
2
3
#include "../fb.h"
4
#include "
fb_private_console.h
"
5
#include <float.h>
6
#include <unistd.h>
7
#include <conio.h>
8
9
FB_CONSOLE_CTX
__fb_con
;
10
char
*
__fb_startup_cwd
;
11
12
void
fb_hInit
(
void
)
13
{
14
/* set FPU precision to 64-bit and round to nearest (as in QB) */
15
_control87(PC_64|RC_NEAR, MCW_PC|MCW_RC);
16
17
/* turn off blink */
18
intensevideo();
19
20
memset( &__fb_con, 0,
sizeof
(
FB_CONSOLE_CTX
) );
21
22
__fb_startup_cwd
= getcwd(
NULL
, 1024);
23
fb_hConvertPath
(
__fb_startup_cwd
);
24
}
25
26
void
fb_hEnd
(
int
unused )
27
{
28
/* nothing to do */
29
}
rtlib
dos
hinit.c
Generated on Thu Jan 23 2014 19:40:08 for FreeBASIC by
1.8.4