the only way to allocate a section is when making it a part of a section list,
and at present, the list is singly-linked internally.
svn path=/trunk/yasm/; revision=940
*/
#define YASM_LIB_INTERNAL
#include "util.h"
-/*@unused@*/ RCSID("$IdPath$");
+/*@unused@*/ RCSID("$IdPath: yasm/libyasm/section.c,v 1.35 2003/03/15 05:07:48 peter Exp $");
#include "errwarn.h"
#include "intnum.h"
yasm_bytecodehead bc; /* the bytecodes for the section's contents */
};
+static void yasm_section_delete(/*@only@*/ yasm_section *sect);
+
/*@-compdestroy@*/
yasm_section *
yasm_sections_initialize(yasm_sectionhead *headp, yasm_objfmt *of)
return sect->start;
}
-void
+static void
yasm_section_delete(yasm_section *sect)
{
if (!sect)
* \file section.h
* \brief YASM section interface.
*
- * $IdPath: yasm/libyasm/section.h,v 1.36 2003/03/15 05:07:48 peter Exp $
+ * $IdPath: yasm/libyasm/section.h,v 1.37 2003/05/04 20:28:28 peter Exp $
*
* Copyright (C) 2001 Peter Johnson
*
/*@observer@*/ const yasm_expr *yasm_section_get_start
(const yasm_section *sect);
-void yasm_section_delete(/*@only@*/ yasm_section *sect);
-
/** Print a section. For debugging purposes.
* \param f file
* \param indent_level indentation level