2001-09-28 07:09:38 +00:00
|
|
|
/*
|
2002-10-22 14:53:18 +00:00
|
|
|
emit.c
|
2001-09-28 07:09:38 +00:00
|
|
|
|
2002-10-22 14:53:18 +00:00
|
|
|
statement emittion
|
2001-09-28 07:09:38 +00:00
|
|
|
|
2002-10-22 14:53:18 +00:00
|
|
|
Copyright (C) 2001 Bill Currie <bill@taniwha.org>
|
2001-09-28 07:09:38 +00:00
|
|
|
|
2002-10-22 14:53:18 +00:00
|
|
|
Author: Bill Currie <bill@taniwha.org>
|
|
|
|
Date: 2001/07/26
|
2001-09-28 07:09:38 +00:00
|
|
|
|
|
|
|
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:
|
|
|
|
|
|
|
|
Free Software Foundation, Inc.
|
|
|
|
59 Temple Place - Suite 330
|
|
|
|
Boston, MA 02111-1307, USA
|
|
|
|
|
|
|
|
*/
|
2002-06-01 04:41:25 +00:00
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
# include "config.h"
|
|
|
|
#endif
|
2003-01-15 15:31:36 +00:00
|
|
|
|
2005-08-04 15:27:09 +00:00
|
|
|
static __attribute__ ((used)) const char rcsid[] =
|
2003-01-15 15:31:36 +00:00
|
|
|
"$Id$";
|
|
|
|
|
2002-06-01 04:41:25 +00:00
|
|
|
#ifdef HAVE_STRING_H
|
|
|
|
# include <string.h>
|
|
|
|
#endif
|
|
|
|
#ifdef HAVE_STRINGS_H
|
|
|
|
# include <strings.h>
|
|
|
|
#endif
|
2001-07-26 05:15:34 +00:00
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
#include <QF/mathlib.h>
|
|
|
|
#include <QF/va.h>
|
|
|
|
|
2011-01-09 10:41:24 +00:00
|
|
|
#include "codespace.h"
|
2002-06-04 21:23:39 +00:00
|
|
|
#include "def.h"
|
|
|
|
#include "debug.h"
|
2002-07-08 18:53:07 +00:00
|
|
|
#include "emit.h"
|
2002-06-01 05:30:16 +00:00
|
|
|
#include "expr.h"
|
2008-08-01 13:54:24 +00:00
|
|
|
#include "function.h"
|
2002-06-04 18:44:03 +00:00
|
|
|
#include "immediate.h"
|
2002-06-04 21:23:39 +00:00
|
|
|
#include "opcodes.h"
|
2002-06-04 18:44:03 +00:00
|
|
|
#include "options.h"
|
2002-06-04 21:23:39 +00:00
|
|
|
#include "qfcc.h"
|
2002-06-07 17:29:30 +00:00
|
|
|
#include "reloc.h"
|
2011-01-13 05:54:24 +00:00
|
|
|
#include "symtab.h"
|
2002-05-09 17:11:14 +00:00
|
|
|
#include "type.h"
|
2001-07-26 05:15:34 +00:00
|
|
|
#include "qc-parse.h"
|
|
|
|
|
|
|
|
def_t *
|
2002-07-08 18:53:07 +00:00
|
|
|
emit_statement (expr_t *e, opcode_t *op, def_t *var_a, def_t *var_b,
|
2001-12-06 19:49:40 +00:00
|
|
|
def_t *var_c)
|
2001-07-26 05:15:34 +00:00
|
|
|
{
|
2011-01-17 13:33:33 +00:00
|
|
|
return 0;
|
2003-10-22 08:05:17 +00:00
|
|
|
}
|
|
|
|
|
2001-07-26 05:15:34 +00:00
|
|
|
def_t *
|
|
|
|
emit_sub_expr (expr_t *e, def_t *dest)
|
|
|
|
{
|
2011-01-17 13:33:33 +00:00
|
|
|
return 0;
|
2001-07-26 05:15:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
emit_expr (expr_t *e)
|
|
|
|
{
|
|
|
|
}
|