[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-glpk] python wrapper for glpk

From: Andrew Makhorin
Subject: Re: [Help-glpk] python wrapper for glpk
Date: Fri, 31 May 2002 09:33:11 +0400

>The main problem I have is that SWIG cannot parse the glpk.h include
>file properly.  SWIG apparently can't parse defines embedded within
>a structure definition.  If you could see to move 6 lines in the
>include file, I could provide a totally automated way to create a
>Python wrapper for glpk.  I understand that clarily may slightly
>suffer, but I think that the benefits outweigh the drawbacks.

If all declarations will be like follows:

{     ...
      int foobar;
#if 0
#define FOO 111
#define BAR 222

#define FOO 111
#define BAR 222

will SWIG correctly parse them? The reason is that some #defines define
domains for the structure members under which they are written, and to
improve readability I'd like to keep them together.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]