FreeBASIC  0.91.0
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 
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);
24 }
25 
26 void fb_hEnd( int unused )
27 {
28  /* nothing to do */
29 }