X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fas3%2Fcommon.c;h=2012405308895be4123e278113b6a5964c95e91c;hb=c63b2bf21dc1df9a736f0b4c08f6cba828cdab92;hp=60f71014f5b2d34a7407cfaa55bdcf29c44fa3ee;hpb=e4687b3aa2aed49fb16ba9e9561344d808750297;p=swftools.git diff --git a/lib/as3/common.c b/lib/as3/common.c index 60f7101..2012405 100644 --- a/lib/as3/common.c +++ b/lib/as3/common.c @@ -1,3 +1,26 @@ +/* common.c + + Routines for handling Flash2 AVM2 ABC Actionscript + + Extension module for the rfxswf library. + Part of the swftools package. + + Copyright (c) 2008,2009 Matthias Kramm + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + 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. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ + #include #include #include @@ -18,6 +41,7 @@ void as3_error(const char*format, ...) vsnprintf(buf, sizeof(buf)-1, format, arglist); va_end(arglist); fprintf(stderr, "%s:%d:%d: error: %s\n", current_filename, current_line, current_column, buf); + fprintf(stderr, "%s\n", current_filename_long); fflush(stderr); exit(1); }