Revision: 2662
          http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=2662
Author:   robertmh
Date:     2009-10-26 18:04:37 +0000 (Mon, 26 Oct 2009)
Log Message:
-----------
2009-10-26  Robert Millan  <[email protected]>

        * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
        from here ...
        * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.

Modified Paths:
--------------
    trunk/grub2/ChangeLog
    trunk/grub2/include/grub/misc.h

Property Changed:
----------------
    trunk/grub2/


Property changes on: trunk/grub2
___________________________________________________________________
Modified: bzr:revision-info
   - timestamp: 2009-10-26 19:01:19.134000063 +0100
committer: Robert Millan <[email protected]>
properties: 
        branch-nick: trunk

   + timestamp: 2009-10-26 19:04:23.016999960 +0100
committer: Robert Millan <[email protected]>
properties: 
        branch-nick: trunk

Modified: bzr:revision-id:v3-single1-dHJ1bmsvZ3J1YjI.
   - 1769 [email protected]
1770 [email protected]
1771 [email protected]
1772 [email protected]
1773 [email protected]
1774 [email protected]
1775 [email protected]
1776 [email protected]
1777 [email protected]
1778 [email protected]
1779 [email protected]
1780 [email protected]
1781 [email protected]
1784 [email protected]
1785 [email protected]

   + 1769 [email protected]
1770 [email protected]
1771 [email protected]
1772 [email protected]
1773 [email protected]
1774 [email protected]
1775 [email protected]
1776 [email protected]
1777 [email protected]
1778 [email protected]
1779 [email protected]
1780 [email protected]
1781 [email protected]
1784 [email protected]
1785 [email protected]
1786 [email protected]


Modified: trunk/grub2/ChangeLog
===================================================================
--- trunk/grub2/ChangeLog       2009-10-26 18:02:30 UTC (rev 2661)
+++ trunk/grub2/ChangeLog       2009-10-26 18:04:37 UTC (rev 2662)
@@ -1,5 +1,11 @@
 2009-10-26  Robert Millan  <[email protected]>
 
+       * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
+       from here ...
+       * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
+
+2009-10-26  Robert Millan  <[email protected]>
+
        * Makefile.in (docs/grub.info): Use make syntax to ignore errors
        in $(MAKEINFO) invocation.  This makes it clear in output that
        errors are being ignored.

Modified: trunk/grub2/include/grub/misc.h
===================================================================
--- trunk/grub2/include/grub/misc.h     2009-10-26 18:02:30 UTC (rev 2661)
+++ trunk/grub2/include/grub/misc.h     2009-10-26 18:04:37 UTC (rev 2662)
@@ -28,6 +28,7 @@
 #define ALIGN_UP(addr, align) \
        ((addr + (typeof (addr)) align - 1) & ~((typeof (addr)) align - 1))
 #define ARRAY_SIZE(array) (sizeof (array) / sizeof (array[0]))
+#define COMPILE_TIME_ASSERT(cond) switch (0) { case 1: case !(cond): ; }
 
 #define grub_dprintf(condition, fmt, args...) grub_real_dprintf(__FILE__, 
__LINE__, condition, fmt, ## args)
 /* XXX: If grub_memmove is too slow, we must implement grub_memcpy.  */



Reply via email to