[vte] [ring] Assert struct sizes
- From: Behdad Esfahbod <behdad src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vte] [ring] Assert struct sizes
- Date: Sun, 6 Sep 2009 04:13:21 +0000 (UTC)
commit b86951330fa9cbb8341aec7ca2fc0be7be4596c1
Author: Behdad Esfahbod <behdad behdad org>
Date: Sat Sep 5 23:35:37 2009 -0400
[ring] Assert struct sizes
src/ring.h | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/ring.h b/src/ring.h
index 5c51e83..34c9510 100644
--- a/src/ring.h
+++ b/src/ring.h
@@ -68,6 +68,7 @@ typedef struct _vtecellattr {
/* 30 bits */
} vtecellattr;
+ASSERT_STATIC (sizeof (vtecellattr) == 4);
/*
@@ -78,6 +79,7 @@ typedef struct _VteCell {
vteunistr c;
vtecellattr attr;
} VteCell;
+ASSERT_STATIC (sizeof (VteCell) == 8);
static const VteCell basic_cell = {
0,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]