-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes_FOO.cpp
26 lines (24 loc) · 1.18 KB
/
types_FOO.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*******************************************************************************
*
* Copyright (c) {2003-2018} Murex S.A.S. and its affiliates.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
*******************************************************************************/
#include "structFOO.h"
#include "types_FOO.h"
#include "pmx.h"
#include <stddef.h>
void print_struct_FOO(const mxProc * proc, const char *name, const char *comment, Elf_Addr value)
{
print_int("FOO", "*a", proc, value + offsetof(struct FOO, a));
print_int("FOO", "*b", proc, value + offsetof(struct FOO, b));
print_int("FOO", "c", proc, value + offsetof(struct FOO, c));
print_long("FOO", "al", proc, value + offsetof(struct FOO, al));
print_long("FOO", "*alp", proc, value + offsetof(struct FOO, alp));
print_double("FOO", "ad", proc, value + offsetof(struct FOO, ad));
print_double("FOO", "*adp", proc, value + offsetof(struct FOO, adp));
print_string("FOO", "str", proc, read_addr(proc, value + offsetof(struct FOO, str)));
}