home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / cpluspls / vir_v203.zip / VIRIMG.H < prev    next >
C/C++ Source or Header  |  1992-01-31  |  2KB  |  52 lines

  1. #ifndef __VIRIMG_H
  2. #define __VIRIMG_H
  3.  
  4.  
  5. #define XDISK 1
  6. #define XXMS 2
  7.  
  8. /* The following are various external parameters for the Virtual Arrays
  9.     all have defaults which are shown as the first in the list */
  10. /* Do you want to keep Extended memory safe : 1=Yes 0=No */
  11. extern char ___safety;
  12. /* What is the file used for keeping extended memory safe : c:\!safety!.xms
  13. extern char *___safe_filename;
  14. /* Do you want informative messages from the array manager : 1=Yes 0=No */
  15. extern char ___msgs;
  16. /* What is the filename for the disk caching manger swap file : virarray.swp*/
  17. extern char *___xfilename;
  18. /* What is the size of the file buffer for the disk manager : 32768*/
  19. extern int ___xfile_buf;
  20. /* Where are the CPP arrays to be cached : XXMS = Extended memory
  21.                                            XDISK = Disk */
  22. extern char ___xarrays;
  23. /* How many blocks are to be held in coventional memory for CPP arrays : 4*/
  24. extern int __mem_buf;
  25. /* What is the block size for the CPP manager : 32768 */
  26. extern long __block_size;
  27. /* How many block does the CPP manager want : 16 */
  28. extern int __blocks;
  29. /* If there is not enough Xtended memory should the manger cache to disk
  30.         instead : 1=Yes 0=No */
  31. extern char ___auto_disk;
  32.  
  33.  
  34. #ifdef __cplusplus
  35. extern "C" {
  36. #endif
  37. void initialise_virtual_arrays(int real_img,long array_size,unsigned int no_imgs, int dorx);
  38. void deallocate();
  39. void *large_array(int no,long ind);
  40. void *pointer_add(void *tes,long no);
  41. void *img(int no);
  42. void create_xms_array (long x, long y, int size, long **offset, int **block);
  43.  
  44. /*Timer to measure the time taken for sections of code */
  45. void start_timer();
  46. void stop_timer();
  47.  
  48. #ifdef __cplusplus
  49. }
  50. #endif
  51.  
  52. #endif