/**********************************************************************
 
	Copyright (C) 2003 Hirohisa MORI <joshua@nichibun.ac.jp>
 
	This program is free software; you can redistribute it 
	and/or modify it under the terms of the GLOBALBASE 
	Library General Public License (G-LGPL) as published by 

	http://www.globalbase.org/
 
	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.

**********************************************************************/



#include	"memory_routine.h"
#include	"xl.h"
#include	"mlong_char.h"


XL_SEXP *
get_error_line(
	XL_SEXP * er,
	int	line)
{
XL_SEXP * s;

	s = get_sexp(0,XLT_ERROR);
	s->err.site = er->err.site;
	s->err.filename = er->err.filename;

	s->err.line = line;
	s->err.func = er->err.func;
	s->err.code = er->err.code;
	s->err.data = er->err.data;
	return s;
}

