Replace end of section functions with NULLs as they arent currently being

used for anything.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 157
This commit is contained in:
Simon Howard 2005-10-03 11:08:16 +00:00
parent cbe3f178b8
commit 27901a5b8a
7 changed files with 46 additions and 38 deletions

View file

@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
// $Id: deh_ammo.c 153 2005-10-02 23:49:01Z fraggle $
// $Id: deh_ammo.c 157 2005-10-03 11:08:16Z fraggle $
//
// Copyright(C) 2005 Simon Howard
//
@ -21,6 +21,10 @@
// 02111-1307, USA.
//
// $Log$
// Revision 1.2 2005/10/03 11:08:16 fraggle
// Replace end of section functions with NULLs as they arent currently being
// used for anything.
//
// Revision 1.1 2005/10/02 23:49:01 fraggle
// The beginnings of dehacked support
//
@ -40,10 +44,6 @@ static void *DEH_AmmoStart(deh_context_t *context, char *line)
return NULL;
}
static void DEH_AmmoEnd(deh_context_t *context, void *tag)
{
}
static void DEH_AmmoParseLine(deh_context_t *context, char *line, void *tag)
{
}
@ -54,6 +54,6 @@ deh_section_t deh_section_ammo =
NULL,
DEH_AmmoStart,
DEH_AmmoParseLine,
DEH_AmmoEnd,
NULL,
};

View file

@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
// $Id: deh_frame.c 155 2005-10-03 10:25:37Z fraggle $
// $Id: deh_frame.c 157 2005-10-03 11:08:16Z fraggle $
//
// Copyright(C) 2005 Simon Howard
//
@ -21,6 +21,10 @@
// 02111-1307, USA.
//
// $Log$
// Revision 1.4 2005/10/03 11:08:16 fraggle
// Replace end of section functions with NULLs as they arent currently being
// used for anything.
//
// Revision 1.3 2005/10/03 10:25:37 fraggle
// Add mapping code to map out structures and switch thing/frame code to use
// this.
@ -72,10 +76,6 @@ static void *DEH_FrameStart(deh_context_t *context, char *line)
return state;
}
static void DEH_FrameEnd(deh_context_t *context, void *tag)
{
}
static void DEH_FrameParseLine(deh_context_t *context, char *line, void *tag)
{
state_t *state;
@ -113,6 +113,6 @@ deh_section_t deh_section_frame =
NULL,
DEH_FrameStart,
DEH_FrameParseLine,
DEH_FrameEnd,
NULL,
};

View file

@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
// $Id: deh_main.c 153 2005-10-02 23:49:01Z fraggle $
// $Id: deh_main.c 157 2005-10-03 11:08:16Z fraggle $
//
// Copyright(C) 2005 Simon Howard
//
@ -21,6 +21,10 @@
// 02111-1307, USA.
//
// $Log$
// Revision 1.2 2005/10/03 11:08:16 fraggle
// Replace end of section functions with NULLs as they arent currently being
// used for anything.
//
// Revision 1.1 2005/10/02 23:49:01 fraggle
// The beginnings of dehacked support
//
@ -201,7 +205,11 @@ static void DEH_ParseContext(deh_context_t *context)
{
// end of section
current_section->end(context, tag);
if (current_section->end != NULL)
{
current_section->end(context, tag);
}
//printf("end %s tag\n", current_section->name);
current_section = NULL;
}

View file

@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
// $Id: deh_ptr.c 154 2005-10-03 00:42:45Z fraggle $
// $Id: deh_ptr.c 157 2005-10-03 11:08:16Z fraggle $
//
// Copyright(C) 2005 Simon Howard
//
@ -21,6 +21,10 @@
// 02111-1307, USA.
//
// $Log$
// Revision 1.3 2005/10/03 11:08:16 fraggle
// Replace end of section functions with NULLs as they arent currently being
// used for anything.
//
// Revision 1.2 2005/10/03 00:42:45 fraggle
// Frame numbers are indexed from 0
//
@ -71,10 +75,6 @@ static void *DEH_PointerStart(deh_context_t *context, char *line)
return &states[frame_number];
}
static void DEH_PointerEnd(deh_context_t *context, void *tag)
{
}
static void DEH_PointerParseLine(deh_context_t *context, char *line, void *tag)
{
state_t *state;
@ -128,6 +128,6 @@ deh_section_t deh_section_pointer =
DEH_PointerInit,
DEH_PointerStart,
DEH_PointerParseLine,
DEH_PointerEnd,
NULL,
};

View file

@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
// $Id: deh_text.c 153 2005-10-02 23:49:01Z fraggle $
// $Id: deh_text.c 157 2005-10-03 11:08:16Z fraggle $
//
// Copyright(C) 2005 Simon Howard
//
@ -21,6 +21,10 @@
// 02111-1307, USA.
//
// $Log$
// Revision 1.2 2005/10/03 11:08:16 fraggle
// Replace end of section functions with NULLs as they arent currently being
// used for anything.
//
// Revision 1.1 2005/10/02 23:49:01 fraggle
// The beginnings of dehacked support
//
@ -40,10 +44,6 @@ static void *DEH_TextStart(deh_context_t *context, char *line)
return NULL;
}
static void DEH_TextEnd(deh_context_t *context, void *tag)
{
}
static void DEH_TextParseLine(deh_context_t *context, char *line, void *tag)
{
}
@ -54,6 +54,6 @@ deh_section_t deh_section_text =
NULL,
DEH_TextStart,
DEH_TextParseLine,
DEH_TextEnd,
NULL,
};

View file

@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
// $Id: deh_thing.c 155 2005-10-03 10:25:37Z fraggle $
// $Id: deh_thing.c 157 2005-10-03 11:08:16Z fraggle $
//
// Copyright(C) 2005 Simon Howard
//
@ -21,6 +21,10 @@
// 02111-1307, USA.
//
// $Log$
// Revision 1.3 2005/10/03 11:08:16 fraggle
// Replace end of section functions with NULLs as they arent currently being
// used for anything.
//
// Revision 1.2 2005/10/03 10:25:37 fraggle
// Add mapping code to map out structures and switch thing/frame code to use
// this.
@ -90,10 +94,6 @@ static void *DEH_ThingStart(deh_context_t *context, char *line)
return mobj;
}
static void DEH_ThingEnd(deh_context_t *context, void *tag)
{
}
static void DEH_ThingParseLine(deh_context_t *context, char *line, void *tag)
{
mobjinfo_t *mobj;
@ -131,6 +131,6 @@ deh_section_t deh_section_thing =
NULL,
DEH_ThingStart,
DEH_ThingParseLine,
DEH_ThingEnd,
NULL,
};

View file

@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
// $Id: deh_weapon.c 156 2005-10-03 11:02:08Z fraggle $
// $Id: deh_weapon.c 157 2005-10-03 11:08:16Z fraggle $
//
// Copyright(C) 2005 Simon Howard
//
@ -21,6 +21,10 @@
// 02111-1307, USA.
//
// $Log$
// Revision 1.3 2005/10/03 11:08:16 fraggle
// Replace end of section functions with NULLs as they arent currently being
// used for anything.
//
// Revision 1.2 2005/10/03 11:02:08 fraggle
// Add a weaponinfo_t mapping
//
@ -56,10 +60,6 @@ static void *DEH_WeaponStart(deh_context_t *context, char *line)
return NULL;
}
static void DEH_WeaponEnd(deh_context_t *context, void *tag)
{
}
static void DEH_WeaponParseLine(deh_context_t *context, char *line, void *tag)
{
}
@ -70,6 +70,6 @@ deh_section_t deh_section_weapon =
NULL,
DEH_WeaponStart,
DEH_WeaponParseLine,
DEH_WeaponEnd,
NULL,
};