|
From: | Isaac Dupree |
Subject: | Re: [RFC] Framebuffer rotation patch |
Date: | Tue, 16 Feb 2010 13:03:34 -0500 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.7) Gecko/20100120 Shredder/3.0.1 |
On 02/16/10 10:52, Michal Suchanek wrote:
enum allows it just fineNot here: typedef enum t1 { BTI1 = 1,
typo, should be "BIT1". then it works. (In C. Also remember not to get confused by the fact that it doesn't work in C++, for type-related reasons that we don't need to get into here because GRUB is written in C.)
BIT2 = 2, BIT12 = BIT1 + BIT2} t; int main(int argc, char** argv) { return 0 ; } testenum.c:3: error: ‘BIT1’ undeclared here (not in a function)
-Isaac
[Prev in Thread] | Current Thread | [Next in Thread] |