/* Copyright 1996 Acorn Computers Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* Declarations for error blocks for action window Revision History: 0.00 07-Jun-89 JSR Created. */ #ifndef __os_h #include "os.h" #endif #ifndef __msgs_h #include "msgs.h" #endif #ifndef __string_h #include "string.h" #endif extern char *mb_slotsize_too_small; extern char *mb_malloc_failed; extern char *mb_unexpected_state; extern char *mb_broken_templates; #define ErrorNumber_CantOpenFile 0x0000d6 #define ErrorNumber_FSError46 0x000046 #define ErrorNumber_NotSameDisc 0x00009f #define ErrorNumber_BadRename 0x0000b0 #define ErrorNumber_DirectoryNotEmpty 0x0000b4 #define ErrorNumber_Locked 0x0000c3 #define ErrorNumber_AlreadyExists 0x0000c4 #define ErrorNumber_DiscFull 0x0000c6 #define ErrorNumber_NotFound 0x0000d6 #define FileError_Mask 0xfe00ff extern os_error errbuf; #define error(token) ( strcpy(((char *)&errbuf)+4, msgs_lookup((token))), \ &errbuf \ )