home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 3 / PDCD_3.iso / tex / texsrc1 / Src / lib / h / riscos_ex < prev    next >
Encoding:
Text File  |  1993-05-21  |  2.2 KB  |  68 lines

  1. /* riscos_ex.c: RISC OS extras
  2.  
  3. Copyright (C) 1992 Free Software Foundation, Inc.
  4.  
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2, or (at your option)
  8. any later version.
  9.  
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. GNU General Public License for more details.
  14.  
  15. You should have received a copy of the GNU General Public License
  16. along with this program; if not, write to the Free Software
  17. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  
  19. This file contains functions that are lacking in Acorn ANSI C v4
  20. or that are too RISC OS-specific to be simply changed in the relevant
  21. .c or .h files
  22.  
  23. All functions are prefixed by `riscos_' to avoid function name clashes
  24.  
  25. The author is Mark J. Sinke, reachable at 
  26.   marks@stack.urc.tue.nl
  27. or
  28.   Mark J. Sinke
  29.   Mendelssohnstraat 5
  30.   5144 GD WAALWIJK
  31.   The Netherlands */
  32.  
  33. #ifndef RISCOS_EX_H
  34. #define RISCOS_EX_H
  35.  
  36. /* riscos_absolute(name): return true if `name' has an absolute path */
  37. boolean riscos_absolute(char *name);
  38.  
  39. /* riscossetname(name): set name of `current path' */
  40. void riscossetname(char *name);
  41.  
  42. /* riscos_isdir(filename): return true if filename is a directory */
  43. boolean riscos_isdir(char *filename);
  44.  
  45. /* riscos_samefile(file1, file2): return true if files are the same */
  46. boolean riscos_samefile(char *file1, char *file2);
  47.  
  48. #ifndef RISCOS_EX_C_FILE /* Avoid circular references */
  49. /* riscos_fopen(filename, mode): open a file for output, possibly
  50.                                  creating a directory and dealing with '@' */
  51. FILE *riscos_fopen(char *filename, char *mode);
  52. #define fopen(a,b) riscos_fopen(a,b)
  53. #endif /* RISC OS C File */
  54.  
  55. #define riscosdvitype   0xce4
  56. #define riscostextype   0x2a7
  57. #define riscoslatextype 0x2a8
  58. #define riscosmftype    0x2a9
  59. #define riscosgftype    0x2aa
  60. #define riscospktype    0x2ab
  61. #define riscostfmtype   0x2ac
  62.  
  63. extern int riscostype; /* file type for next file to be opened for output */
  64.  
  65. extern char *current_path; /* current path */
  66.  
  67. #endif /* RISCOS_EX_H */
  68.