2
* --------------------------------------------------------------------------
3
* Error functions for haserl
4
* Copyright (c) 2003-2006 Nathan Angelacos (nangel@users.sourceforge.net)
6
* This program is free software; you can redistribute it and/or modify it under
7
* the terms of the GNU General Public License, version 2, as published by the Free
10
* This program is distributed in the hope that it will be useful, but WITHOUT
11
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15
* You should have received a copy of the GNU General Public License along with
16
* this program; if not, write to the Free Software Foundation, Inc., 59
17
* Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
* -------------------------------------------------------------------------
1
/* --------------------------------------------------------------------------
2
* Copyright 2003-2011 (inclusive) Nathan Angelacos
3
* (nangel@users.sourceforge.net)
5
* This file is part of haserl.
7
* Haserl is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License version 2,
9
* as published by the Free Software Foundation.
11
* Haserl is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with haserl. If not, see <http://www.gnu.org/licenses/>.
19
* ------------------------------------------------------------------------ */
23
22
#include <config.h>
86
85
vfprintf (fo, s, p);
88
#ifndef JUST_LUACSHELL
87
#ifndef JUST_LUACSHELL
91
90
fprintf (fo, " near line %d of %s\n",
92
91
count_lines (script->buf, script->size, where),
98
97
if (getenv ("REQUEST_METHOD"))