annotate src/prof/gmon_out.h @ 268:82ee2704c973

Since the game uses zeros as delimiters in the evolution/learnset section, it increments all of the move/pokemon indices by 1. Altered my code so that all returned values are consistently non-incremented.
author Dylan Holmes <ocsenave@gmail.com>
date Mon, 26 Mar 2012 23:25:18 -0500
parents f9f4f1b99eed
children
rev   line source
rlm@1 1 /* gmon_out.h
rlm@1 2
rlm@1 3 Copyright 2000, 2001 Free Software Foundation, Inc.
rlm@1 4
rlm@1 5 This file is part of GNU Binutils.
rlm@1 6
rlm@1 7 This program is free software; you can redistribute it and/or modify
rlm@1 8 it under the terms of the GNU General Public License as published by
rlm@1 9 the Free Software Foundation; either version 2 of the License, or
rlm@1 10 (at your option) any later version.
rlm@1 11
rlm@1 12 This program is distributed in the hope that it will be useful,
rlm@1 13 but WITHOUT ANY WARRANTY; without even the implied warranty of
rlm@1 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
rlm@1 15 GNU General Public License for more details.
rlm@1 16
rlm@1 17 You should have received a copy of the GNU General Public License
rlm@1 18 along with this program; if not, write to the Free Software
rlm@1 19 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
rlm@1 20
rlm@1 21 /* A gmon.out file consists of a header (defined by gmon_hdr) followed
rlm@1 22 by a sequence of records. Each record starts with a one-byte tag
rlm@1 23 identifying the type of records, followed by records specific data. */
rlm@1 24 #ifndef gmon_out_h
rlm@1 25 #define gmon_out_h
rlm@1 26
rlm@1 27 #define GMON_MAGIC "gmon" /* magic cookie */
rlm@1 28 #define GMON_VERSION 1 /* version number */
rlm@1 29
rlm@1 30 /* Raw header as it appears on file (without padding). */
rlm@1 31 struct gmon_hdr
rlm@1 32 {
rlm@1 33 char cookie[4];
rlm@1 34 char version[4];
rlm@1 35 char spare[3 * 4];
rlm@1 36 };
rlm@1 37
rlm@1 38 /* Types of records in this file. */
rlm@1 39 typedef enum
rlm@1 40 {
rlm@1 41 GMON_TAG_TIME_HIST = 0, GMON_TAG_CG_ARC = 1, GMON_TAG_BB_COUNT = 2
rlm@1 42 }
rlm@1 43 GMON_Record_Tag;
rlm@1 44
rlm@1 45 #endif /* gmon_out_h */