~bkerensa/ubuntu/raring/yasm/fix-for-1064341

« back to all changes in this revision

Viewing changes to libyasm/bc-reserve.c

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hocevar
  • Date: 2009-07-14 08:23:59 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20090714082359-10x8mjty41gzkshs
Tags: 0.8.0-1
* New upstream release (Closes: #531047).
* Removed all tasm patches, they’ve been merged upstream.
* debian/control: set debhelper dependency to 5.0 and policy to 3.8.2.
* debian/control: mention TASM in the long description.
* debian/compat: set debhelper level to 5.
* debian/links: link tasm to ytasm and tasm.1.gz to ytasm.1.gz.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 * POSSIBILITY OF SUCH DAMAGE.
26
26
 */
27
27
#include "util.h"
28
 
/*@unused@*/ RCSID("$Id: bc-reserve.c 1895 2007-07-14 05:31:08Z peter $");
 
28
/*@unused@*/ RCSID("$Id: bc-reserve.c 2130 2008-10-07 05:38:11Z peter $");
29
29
 
30
30
#include "libyasm-stdint.h"
31
31
#include "coretype.h"
46
46
static void bc_reserve_destroy(void *contents);
47
47
static void bc_reserve_print(const void *contents, FILE *f, int indent_level);
48
48
static void bc_reserve_finalize(yasm_bytecode *bc, yasm_bytecode *prev_bc);
 
49
static int bc_reserve_elem_size(yasm_bytecode *bc);
49
50
static int bc_reserve_calc_len(yasm_bytecode *bc,
50
51
                               yasm_bc_add_span_func add_span,
51
52
                               void *add_span_data);
57
58
    bc_reserve_destroy,
58
59
    bc_reserve_print,
59
60
    bc_reserve_finalize,
 
61
    bc_reserve_elem_size,
60
62
    bc_reserve_calc_len,
61
63
    yasm_bc_expand_common,
62
64
    bc_reserve_tobytes,
96
98
}
97
99
 
98
100
static int
 
101
bc_reserve_elem_size(yasm_bytecode *bc)
 
102
{
 
103
    bytecode_reserve *reserve = (bytecode_reserve *)bc->contents;
 
104
    return reserve->itemsize;
 
105
}
 
106
 
 
107
static int
99
108
bc_reserve_calc_len(yasm_bytecode *bc, yasm_bc_add_span_func add_span,
100
109
                    void *add_span_data)
101
110
{