Subversion Repositories ClaimASWI

Compare Revisions

Ignore whitespace Rev 15 → Rev 16

/trunk/claimaswi/error.h
New file
0,0 → 1,18
// This file is part of the ClaimASWI module.
// Copyright © 2007 Graham Shaw.
// Redistribution and modification are permitted within the terms of the
// GNU General Public License (version 2 or any later version).
 
#ifndef CLAIMASWI_ERROR
#define CLAIMASWI_ERROR
 
#include "oslib/os.h"
#include "oslib/messagetrans.h"
 
extern messagetrans_control_block* kernel_mcb;
extern messagetrans_control_block* kernel_mcb_local;
 
os_error* translate_kernel_error(os_error* err);
os_error* translate_global_error(os_error* err);
 
#endif
/trunk/claimaswi/error.cc
New file
0,0 → 1,19
// This file is part of the ClaimASWI module.
// Copyright © 2007 Graham Shaw.
// Redistribution and modification are permitted within the terms of the
// GNU General Public License (version 2 or any later version).
 
#include "error.h"
 
messagetrans_control_block* kernel_mcb=0;
messagetrans_control_block* kernel_mcb_local=0;
 
os_error* translate_kernel_error(os_error* err)
{
return xmessagetrans_error_lookup(err,kernel_mcb,0,0,0,0,0,0);
}
 
os_error* translate_global_error(os_error* err)
{
return xmessagetrans_error_lookup(err,0,0,0,0,0,0,0);
}