Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

out_map.cc

Go to the documentation of this file.
00001 /*
00002  *      HT Editor
00003  *      out_map.cc
00004  *
00005  *      Copyright (C) 1999, 2000, 2001 Sebastian Biallas (sb@web-productions.de)
00006  *
00007  *      This program is free software; you can redistribute it and/or modify
00008  *      it under the terms of the GNU General Public License version 2 as
00009  *      published by the Free Software Foundation.
00010  *
00011  *      This program is distributed in the hope that it will be useful,
00012  *      but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *      GNU General Public License for more details.
00015  *
00016  *      You should have received a copy of the GNU General Public License
00017  *      along with this program; if not, write to the Free Software
00018  *      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00019  */
00020 
00021 #include "htdebug.h"
00022 #include "out_map.h"
00023 
00024 #define STREAM_WRITE_STR(s, str) s->write((void*)str, strlen(str))
00025 
00026 bool output_map_file(ht_stream *s, Analyser *analy)
00027 {
00028         assert(s);
00029         assert(analy);
00030         /* header */
00031 
00032         char c=' ';
00033         s->write(&c, 1);
00034         STREAM_WRITE_STR(s, analy->get_name());
00035         c='\n';
00036         s->write(&c, 1);
00037         s->write(&c, 1);
00038         STREAM_WRITE_STR(s, " Start         Length     Name\n");
00039         STREAM_WRITE_STR(s, " 0000:00000000 00004800H CODE\n\n");
00040         
00041         tlabel *sym = analy->enum_labels(NULL);
00042         STREAM_WRITE_STR(s, "  Address         Publics by Value\n");
00043         
00044 }
00045  

Generated on Fri May 7 21:15:41 2004 by doxygen 1.3.5