pike.git / src / post_modules / GL / top.c

version» Context lines:

pike.git/src/post_modules/GL/top.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: top.c,v 1.17 2002/10/11 01:39:59 nilsson Exp $ + || $Id: top.c,v 1.18 2002/10/21 17:06:54 marcus Exp $   */      #include "config.h"      #ifdef HAVE_GL      #ifdef HAVE_WINDEF_H   #include <windef.h>   #endif /* HAVE_WINDEF_H */   #ifdef HAVE_WINGDI_H
pike.git/src/post_modules/GL/top.c:19:   #include <GL/gl.h>   #endif /* HAVE_GL_GL_H */   #ifdef HAVE_GL_GLX_H   #include <GL/glx.h>   #endif /* HAVE_GL_GLX_H */      #endif /* HAVE_GL */      #include "global.h"    - RCSID("$Id: top.c,v 1.17 2002/10/11 01:39:59 nilsson Exp $"); + RCSID("$Id: top.c,v 1.18 2002/10/21 17:06:54 marcus Exp $");   #include "stralloc.h"   #include "pike_macros.h"   #include "object.h"   #include "program.h"   #include "interpret.h"   #include "builtin_functions.h"   #include "module_support.h"   #include "pike_error.h"    - #include "module_magic.h" +       #ifdef HAVE_GL      static void f_glGet(INT32 args)   {    INT32 arg1;    GLint i, i2[4];    GLboolean b[4];    GLfloat f[16];   
pike.git/src/post_modules/GL/top.c:365: Inside #if defined(HAVE_GL)
   break;       default:    Pike_error("glGet: Unsupported parameter name\n");    }   }      #endif /* HAVE_GL */       - void pike_module_init( void ) + PIKE_MODULE_INIT   {   #ifdef HAVE_GL    extern void GL_add_auto_funcs(void);       add_function_constant("glGet", f_glGet,    "function(int:int|float|array(int)|array(float))",    OPT_SIDE_EFFECT);    GL_add_auto_funcs();   #endif /* HAVE_GL */   }       - void pike_module_exit( void ) + PIKE_MODULE_EXIT   {   }