Subversion Repositories Kolibri OS

Rev

Rev 1005 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1.  
  2. #pragma once
  3.  
  4. #include "kosSyst.h"
  5. #include "kosFile.h"
  6. #include "MCSMEMM.H"
  7.  
  8. #include <stdarg.h>
  9.  
  10.  
  11. #define ERROR 8888888888.9
  12. #define ERROR_END 8888888888.7
  13.  
  14. #define PREC 2
  15.  
  16. typedef int HDC;
  17. typedef int DWORD;
  18.  
  19. extern int SysColor;
  20. extern char debuf[50];
  21.  
  22. typedef double (*function_t)(double);
  23.  
  24. typedef struct
  25. {
  26.   double x, y;
  27. } TCoord;
  28.  
  29.  
  30. void kos_DrawLine( Word x1, Word y1, Word x2, Word y2, Dword colour, Dword invert);
  31. void DrawRegion(Dword x,Dword y,Dword width,Dword height,Dword color1);
  32. int atoi(const char* string);
  33.  
  34. double __cdecl fabs(double x);
  35. double __cdecl cos(double x);
  36. double __cdecl sin(double x);
  37. int di(double x);
  38.  
  39. double id(int x);
  40. bool isalpha(char c);
  41. double convert(char *s, int *len=NULL);
  42. void format( char *Str, int len, char* Format, ... );
  43.  
  44. void line( int x1, int y1, int x2, int y2);
  45.  
  46. void outtextxy( int x, int y, char *s, int len);
  47. void settextstyle( int a1, int a2, int a3);
  48.  
  49.  
  50. double textwidth( char *s, int len);
  51. double textheight( char *s, int len);
  52. void setcolor( DWORD color);
  53. void unsetcolor(HDC hdc);
  54. void rectangle( int x1, int y1, int x2, int y2);
  55.  
  56. typedef struct
  57. {
  58. unsigned        p00 ;
  59. unsigned        p04 ;
  60. unsigned        p08 ;
  61. unsigned        p12 ;
  62. unsigned        p16 ;
  63. char            p20 ;
  64. char            *p21 ;
  65. } kol_struct70 ;
  66.  
  67.  
  68. typedef struct
  69. {
  70. unsigned        p00 ;
  71. char            p04 ;
  72. char            p05[3] ;
  73. unsigned        p08 ;
  74. unsigned        p12 ;
  75. unsigned        p16 ;
  76. unsigned        p20 ;
  77. unsigned        p24 ;
  78. unsigned        p28 ;
  79. unsigned        p32[2] ;
  80. unsigned        p40 ;
  81. } kol_struct_BDVK ;
  82.  
  83. typedef struct
  84. {
  85. char    *name ;
  86. void    *data ;
  87. } kol_struct_import ;
  88.  
  89.  
  90.  
  91. kol_struct_import* kol_cofflib_load(char *name);
  92. void* kol_cofflib_procload (kol_struct_import *imp, char *name);
  93. unsigned kol_cofflib_procnum (kol_struct_import *imp);
  94. void kol_cofflib_procname (kol_struct_import *imp, char *name, unsigned n);
  95. int strcmp(const char* string1, const char* string2);