From da9b951a892d96e0521abeec09d4345ddf04ab8d Mon Sep 17 00:00:00 2001 From: jkim Date: Fri, 14 Sep 2012 22:53:11 +0000 Subject: Import ACPICA 20120913. --- source/compiler/aslfiles.c | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) (limited to 'source/compiler/aslfiles.c') diff --git a/source/compiler/aslfiles.c b/source/compiler/aslfiles.c index bc5b52d..7aa426c 100644 --- a/source/compiler/aslfiles.c +++ b/source/compiler/aslfiles.c @@ -63,6 +63,7 @@ FlParseInputPathname ( #endif + /******************************************************************************* * * FUNCTION: AslAbort @@ -376,6 +377,42 @@ FlCloseFile ( /******************************************************************************* * + * FUNCTION: FlDeleteFile + * + * PARAMETERS: FileId - Index into file info array + * + * RETURN: None + * + * DESCRIPTION: Delete a file. + * + ******************************************************************************/ + +void +FlDeleteFile ( + UINT32 FileId) +{ + ASL_FILE_INFO *Info = &Gbl_Files[FileId]; + + + if (!Info->Filename) + { + return; + } + + if (remove (Info->Filename)) + { + printf ("%s (%s file) ", + Info->Filename, Info->Description); + perror ("Could not delete"); + } + + Info->Filename = NULL; + return; +} + + +/******************************************************************************* + * * FUNCTION: FlSetLineNumber * * PARAMETERS: Op - Parse node for the LINE asl statement -- cgit v1.1