Mercurial > emacs
view test/cedet/tests/testsppcomplete.c @ 112299:61e41fbed768
* xterm.h (struct x_display_info): Remove stray semicolon.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Sun, 16 Jan 2011 23:28:25 -0800 |
parents | ef719132ddfa |
children |
line wrap: on
line source
/* Example provided by Hannes Janetzek */ struct Test { int test; }; #define BLA(_type) \ _type *bla = (_type*) malloc(sizeof(_type)); #define BLUB(_type) \ (_type*)malloc(sizeof(_type)); #define FOO(_type) \ _type *foo = BLUB(_type); #define BAR(_type) \ _type *bar = (*_type)BLUB(_type); int main(int argc, char *argv[]) { BLA(Test); bla->// -1- ; // #1# ( "test" ) FOO(Test); foo->// -2- ; // #2# ( "test" ) BAR(Test); bar->// -3- ; // #3# ( "test" ) }