Subversion Repositories Kolibri OS

Rev

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

Rev 8474 Rev 8476
Line 6... Line 6...
6
*/
6
*/
7
void (* _stdcall con_init)(unsigned w_w, unsigned w_h, unsigned s_w, unsigned s_h, const char* t);
7
void (* _stdcall con_init)(unsigned w_w, unsigned w_h, unsigned s_w, unsigned s_h, const char* t);
8
int (* _cdecl con_printf)(const char* format,...);
8
int (* _cdecl con_printf)(const char* format,...);
9
void (* _stdcall con_exit)(char bCloseWindow);
9
void (* _stdcall con_exit)(char bCloseWindow);
10
void (* __stdcall con_gets)(char* str, int n);
10
void (* __stdcall con_gets)(char* str, int n);
-
 
11
void (* _stdcall con_set_title)(const char* title);
Line 11... Line 12...
11
 
12
 
12
void CONSOLE_INIT(const char title[])
13
void CONSOLE_INIT(const char title[])
13
{
14
{
Line 19... Line 20...
19
      !(con_printf = ( _cdecl int (*)(const char*,...))
20
      !(con_printf = ( _cdecl int (*)(const char*,...))
20
                  kol_cofflib_procload (imp, "con_printf"))||
21
                  kol_cofflib_procload (imp, "con_printf"))||
21
      !(con_gets = ( __stdcall void (*)(char*, int))
22
      !(con_gets = ( __stdcall void (*)(char*, int))
22
                  kol_cofflib_procload (imp, "con_gets"))||
23
                  kol_cofflib_procload (imp, "con_gets"))||
23
      !(con_exit = ( _stdcall void (*)(char))
24
      !(con_exit = ( _stdcall void (*)(char))
24
                  kol_cofflib_procload (imp, "con_exit")))
25
                  kol_cofflib_procload (imp, "con_exit")) ||
-
 
26
      !(con_set_title = ( _stdcall void (*)(const char*))
-
 
27
                  kol_cofflib_procload (imp, "con_set_title")))
25
  {
28
  {
26
    kol_exit();
29
    kol_exit();
27
  }
30
  }
28
  con_init(-1, -1, -1, -1, title);
31
  con_init(-1, -1, -1, -1, title);
29
}
32
}