Category Archives: C

bug in python-opengl + mesa

Since like forever, I have never succeed in executing python-opengl demos on debian lenny.  It always segfault during glutInitDisplayMode.  After some debugging, here is why. One should be able to call glGetError at any time.  If there’s nothing wrong, it … Continue reading

Posted in C, OpenGL, python | 1 Comment

我果然不懂 C 啊。

from gcc-4.2.info: 5.34 An Inline Function is As Fast As a Macro <..snipped..> If you specify both `inline’ and `extern’ in the function definition, then the definition is used only for inlining. In no case is the function compiled on … Continue reading

Posted in C, programming | Leave a comment

GLOBAL and struct

Refer to: Gnu – Global – Help – How to find the definition effectively To put the story even shorter, the GNU GLOBAL will not treat C struct as definition, but as `other symbol’ . This means you may only … Continue reading

Posted in C, programming | Leave a comment