Deleted Added
full compact
ng_parse.c (154521) ng_parse.c (170996)
1/*
2 * ng_parse.c
3 */
4
5/*-
6 * Copyright (c) 1999 Whistle Communications, Inc.
7 * All rights reserved.
8 *

--- 24 unchanged lines hidden (view full) ---

33 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
35 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY
36 * OF SUCH DAMAGE.
37 *
38 * Author: Archie Cobbs <archie@freebsd.org>
39 *
40 * $Whistle: ng_parse.c,v 1.3 1999/11/29 01:43:48 archie Exp $
1/*
2 * ng_parse.c
3 */
4
5/*-
6 * Copyright (c) 1999 Whistle Communications, Inc.
7 * All rights reserved.
8 *

--- 24 unchanged lines hidden (view full) ---

33 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
35 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY
36 * OF SUCH DAMAGE.
37 *
38 * Author: Archie Cobbs <archie@freebsd.org>
39 *
40 * $Whistle: ng_parse.c,v 1.3 1999/11/29 01:43:48 archie Exp $
41 * $FreeBSD: head/sys/netgraph/ng_parse.c 154521 2006-01-18 16:09:00Z ru $
41 * $FreeBSD: head/sys/netgraph/ng_parse.c 170996 2007-06-23 00:02:20Z mjacob $
42 */
43
44#include <sys/types.h>
45#include <sys/param.h>
46#include <sys/systm.h>
47#include <sys/kernel.h>
48#include <sys/errno.h>
49#include <sys/limits.h>

--- 29 unchanged lines hidden (view full) ---

79};
80
81struct int64_temp {
82 char x;
83 int64_t y;
84};
85
86#define INT8_ALIGNMENT 1
42 */
43
44#include <sys/types.h>
45#include <sys/param.h>
46#include <sys/systm.h>
47#include <sys/kernel.h>
48#include <sys/errno.h>
49#include <sys/limits.h>

--- 29 unchanged lines hidden (view full) ---

79};
80
81struct int64_temp {
82 char x;
83 int64_t y;
84};
85
86#define INT8_ALIGNMENT 1
87#define INT16_ALIGNMENT ((int)&((struct int16_temp *)0)->y)
88#define INT32_ALIGNMENT ((int)&((struct int32_temp *)0)->y)
89#define INT64_ALIGNMENT ((int)&((struct int64_temp *)0)->y)
87#define INT16_ALIGNMENT ((size_t)&((struct int16_temp *)0)->y)
88#define INT32_ALIGNMENT ((size_t)&((struct int32_temp *)0)->y)
89#define INT64_ALIGNMENT ((size_t)&((struct int64_temp *)0)->y)
90
91/* Output format for integral types */
92#define INT_UNSIGNED 0
93#define INT_SIGNED 1
94#define INT_HEX 2
95
96/* Type of composite object: struct, array, or fixedarray */
97enum comptype {

--- 1815 unchanged lines hidden ---
90
91/* Output format for integral types */
92#define INT_UNSIGNED 0
93#define INT_SIGNED 1
94#define INT_HEX 2
95
96/* Type of composite object: struct, array, or fixedarray */
97enum comptype {

--- 1815 unchanged lines hidden ---