| 1 |
(* Copyright (C) 2005 Free Software Foundation, Inc. *) |
| 2 |
(* This file is part of GNU Modula-2. |
| 3 |
|
| 4 |
GNU Modula-2 is free software; you can redistribute it and/or modify it under |
| 5 |
the terms of the GNU General Public License as published by the Free Software |
| 6 |
Foundation; either version 2, or (at your option) any later version. |
| 7 |
|
| 8 |
GNU Modula-2 is distributed in the hope that it will be useful, but WITHOUT |
| 9 |
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
| 10 |
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more |
| 11 |
details. |
| 12 |
|
| 13 |
You should have received a copy of the GNU General Public License along |
| 14 |
with gm2; see the file COPYING. If not, write to the Free Software |
| 15 |
Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *) |
| 16 |
|
| 17 |
MODULE filesystem ; |
| 18 |
|
| 19 |
FROM DynamicStrings IMPORT String ; |
| 20 |
|
| 21 |
TYPE |
| 22 |
File = CARDINAL ; |
| 23 |
|
| 24 |
(* |
| 25 |
delete - deletes file, name. It also kills the string, name. |
| 26 |
*) |
| 27 |
|
| 28 |
PROCEDURE delete (VAR name: String; VAR f: File) ; |
| 29 |
BEGIN |
| 30 |
END delete ; |
| 31 |
|
| 32 |
VAR |
| 33 |
n: String ; |
| 34 |
f: File ; |
| 35 |
BEGIN |
| 36 |
delete(n, f) |
| 37 |
END filesystem. |