JIMFUNC.H 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. // Prototypes for ADDEXT.C
  2. void add_extension(char *filename,char *extension);
  3. void strip_extension(char *name);
  4. void extract_filename(char *dest, char *fullname);
  5. void extract_path(char *dest, char *fullname);
  6. int check_exe_name(char *real, char *exp);
  7. // Prototypes for CAL.C
  8. char day_of_week(int d, int m, int y);
  9. int days_until(int d, int m, struct tm tm);
  10. char *curdate(char flag);
  11. char *curtime(char flag);
  12. // Prototypes for DOSMEM.C
  13. unsigned char *DOSalloc(unsigned int size, signed short *selector);
  14. void DOSfree(signed short sel);
  15. void real_mode(int number, struct rminfo *rmi);
  16. // Prototypes for FINDDEF.c
  17. unsigned char find_def(char *def, char *value, FILE *fp);
  18. // Prototypes for FONT.C
  19. // Prototypes for GETENV.C
  20. unsigned char get_env_or_default(char *name, char *storage, char *v_default);
  21. // Prototypes for TIME.C
  22. void reltime(int num, char *dest);
  23. // Prototypes for MOUSE.C
  24. void report_mouse(mouse_struct *info);
  25. short init_mouse(void);
  26. void limit_mouse(short xs, short ys, short xe, short ye);
  27. void set_mouse_position(mouse_struct *info);
  28. // Prototypes for TEXT.C
  29. void up_line(void);
  30. void goxy(int x, int y);
  31. void getxy(int *x, int *y);
  32. void cursor_position_routine(u_char flag);
  33. void bottom_line(void);
  34. void get_row_cols(u_char *cols, u_char *rows);
  35. void scroll_window(u_char flag, u_char x1, u_char y1, u_char x2, u_char y2, u_char lines);
  36. void scroll_up(u_char no_lines);
  37. void scroll_down(u_char no_lines);
  38. void write_string(u_char *string, u_char attrs);
  39. void cls(void);
  40. // Prototypes for VESA.C
  41. int VESAget_mode_list(void);
  42. void VESAclosedown(void);
  43. unsigned char VESAget_mode_info(unsigned short scrmode);
  44. unsigned char VESAinit(void);
  45. int VESAfind_mode(int x, int y, int bits);
  46. void VESAget_granularity(int mode);
  47. // Prototypes for VIDEO.C
  48. unsigned short GetVideoMode(void);
  49. // Prototypes for IEEE.C
  50. # define FloatToUnsigned(f) ((unsigned long)(((long)(f - 2147483648.0)) + 2147483647L) + 1)
  51. void ConvertToIeeeExtended(double num, char *bytes);
  52.