libredwg
[Top][All Lists]
Advanced

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

Re: [libredwg] Re: [cad-linux] Re: FSF priority project for dwg reading


From: address@hidden
Subject: Re: [libredwg] Re: [cad-linux] Re: FSF priority project for dwg reading support
Date: Mon, 26 Apr 2010 12:23:35 +0200

../src/dwg.c:          LOG_TRACE("\t\tWMF size: 0x%x\n", bit_legi_RL (dat))

Where does bit_legi_RL come from?
mike

On Mon, Apr 26, 2010 at 12:22 PM, address@hidden
<address@hidden> wrote:
> I have started with the wrapping, it goes quite simple.
> diff --git a/src/decode.c b/src/decode.c
> index 00c97d0..88c9f4f 100644
> --- a/src/decode.c
> +++ b/src/decode.c
> @@ -2954,7 +2954,7 @@ dwg_decode_xdata(Bit_Chain * dat, int size)
>   while (dat->byte < end_address)
>     {
>       rbuf = (Dwg_Resbuf *) malloc(sizeof(Dwg_Resbuf));
> -      rbuf->next = 0;
> +      rbuf->_next = 0;
>       rbuf->type = bit_read_RS(dat);
>
>       switch (get_base_value_type(rbuf->type))
> @@ -3014,7 +3014,7 @@ dwg_decode_xdata(Bit_Chain * dat, int size)
>         curr = root = rbuf;
>       else
>         {
> -          curr->next = rbuf;
> +          curr->_next = rbuf;
>           curr = rbuf;
>         }
>     }
> diff --git a/src/dwg.h b/src/dwg.h
> index 029e0c4..41ceba2 100644
> --- a/src/dwg.h
> +++ b/src/dwg.h
> @@ -250,7 +250,7 @@ typedef struct _dwg_resbuf
>     unsigned char hdl[8];
>     struct _dwg_binary_chunk chunk;
>   } value;
> -  struct _dwg_resbuf *next;
> +  struct _dwg_resbuf *_next;
>  } Dwg_Resbuf;
>
>
> Rename next to _next, it is a perl keyword.
>
> copy dwg.h to dwg.i
> add in this at the top :
> %module LibreDwg
> %{
> #include "dwg.h"
> %}
>
> generate the wrapper for perl :
> swig -perl dwg.i
>
> I am working on the linking now, some issues with compiling.
>
> mike
>
> On Mon, Apr 26, 2010 at 1:48 AM, Rodrigo Rodrigues da Silva
> <address@hidden> wrote:
>> On Fri, 23 Apr 2010 09:02:42 +0200
>> "address@hidden" <address@hidden> wrote:
>>
>>> that would be interesting and useful. Do you have a list of header
>>> files you want wrapped?
>>
>> dwg.h
>>
>>
>>
>




reply via email to

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