home *** CD-ROM | disk | FTP | other *** search
- /* riscos_ex.c: RISC OS extras
-
- Copyright (C) 1992 Free Software Foundation, Inc.
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2, or (at your option)
- any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-
- This file contains functions that are lacking in Acorn ANSI C v4
- or that are too RISC OS-specific to be simply changed in the relevant
- .c or .h files
-
- All functions are prefixed by `riscos_' to avoid function name clashes
-
- The author is Mark J. Sinke, reachable at
- marks@stack.urc.tue.nl
- or
- Mark J. Sinke
- Mendelssohnstraat 5
- 5144 GD WAALWIJK
- The Netherlands */
-
- #ifndef RISCOS_EX_H
- #define RISCOS_EX_H
-
- /* riscos_absolute(name): return true if `name' has an absolute path */
- boolean riscos_absolute(char *name);
-
- /* riscossetname(name): set name of `current path' */
- void riscossetname(char *name);
-
- /* riscos_isdir(filename): return true if filename is a directory */
- boolean riscos_isdir(char *filename);
-
- /* riscos_samefile(file1, file2): return true if files are the same */
- boolean riscos_samefile(char *file1, char *file2);
-
- #ifndef RISCOS_EX_C_FILE /* Avoid circular references */
- /* riscos_fopen(filename, mode): open a file for output, possibly
- creating a directory and dealing with '@' */
- FILE *riscos_fopen(char *filename, char *mode);
- #define fopen(a,b) riscos_fopen(a,b)
- #endif /* RISC OS C File */
-
- #define riscosdvitype 0xce4
- #define riscostextype 0x2a7
- #define riscoslatextype 0x2a8
- #define riscosmftype 0x2a9
- #define riscosgftype 0x2aa
- #define riscospktype 0x2ab
- #define riscostfmtype 0x2ac
-
- extern int riscostype; /* file type for next file to be opened for output */
-
- extern char *current_path; /* current path */
-
- #endif /* RISCOS_EX_H */
-