[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using Perl's cc
From: |
Eli Zaretskii |
Subject: |
Re: Using Perl's cc |
Date: |
Sat, 11 Jul 2015 20:53:23 +0300 |
> Date: Sat, 11 Jul 2015 18:17:41 +0100
> From: Gavin Smith <address@hidden>
> Cc: address@hidden
>
> This needs a dTHX line at the start of the function, which I'll add.
The problem with malloc is indeed solved by revision 6414, but a
similar one with free is still there:
In file included from mylib/xspara.c:19:0:
mylib/xspara.c: In function 'xspara_add_text':
d:/usr/Perl/lib/CORE/perl.h:155:16: error: 'my_perl' undeclared (first use in
this function)
# define aTHX my_perl
^
d:/usr/Perl/lib/CORE/embedvar.h:38:18: note: in expansion of macro 'aTHX'
# define vTHX aTHX
^
d:/usr/Perl/lib/CORE/embedvar.h:58:19: note: in expansion of macro 'vTHX'
#define PL_Mem (vTHX->IMem)
^
d:/usr/Perl/lib/CORE/iperlsys.h:813:4: note: in expansion of macro 'PL_Mem'
(*PL_Mem->pFree)(PL_Mem, (buf))
^
d:/usr/Perl/lib/CORE/XSUB.h:565:19: note: in expansion of macro 'PerlMem_free'
# define free PerlMem_free
^
mylib/xspara.c:891:31: note: in expansion of macro 'free'
free (new_space.text);
^
d:/usr/Perl/lib/CORE/perl.h:155:16: note: each undeclared identifier is
reported only once for each function it appears in
# define aTHX my_perl
^
d:/usr/Perl/lib/CORE/embedvar.h:38:18: note: in expansion of macro 'aTHX'
# define vTHX aTHX
^
d:/usr/Perl/lib/CORE/embedvar.h:58:19: note: in expansion of macro 'vTHX'
#define PL_Mem (vTHX->IMem)
^
d:/usr/Perl/lib/CORE/iperlsys.h:813:4: note: in expansion of macro 'PL_Mem'
(*PL_Mem->pFree)(PL_Mem, (buf))
^
d:/usr/Perl/lib/CORE/XSUB.h:565:19: note: in expansion of macro 'PerlMem_free'
# define free PerlMem_free
^
mylib/xspara.c:891:31: note: in expansion of macro 'free'
free (new_space.text);
^
Makefile:455: recipe for target `mylib/XSParagraph_la-xspara.lo' failed
- Re: Using Perl's cc, (continued)
- Re: Using Perl's cc, Eli Zaretskii, 2015/07/05
- Re: Using Perl's cc, Gavin Smith, 2015/07/05
- Re: Using Perl's cc, Eli Zaretskii, 2015/07/05
- Re: Using Perl's cc, Eli Zaretskii, 2015/07/11
- Re: Using Perl's cc, Gavin Smith, 2015/07/11
- Re: Using Perl's cc, Eli Zaretskii, 2015/07/11
- Re: Using Perl's cc, Gavin Smith, 2015/07/11
- Re: Using Perl's cc, Eli Zaretskii, 2015/07/11
- Re: Using Perl's cc, Gavin Smith, 2015/07/11
- Re: Using Perl's cc, Eli Zaretskii, 2015/07/11
- Re: Using Perl's cc,
Eli Zaretskii <=
- Re: Using Perl's cc, Eli Zaretskii, 2015/07/11
- Re: Using Perl's cc, Gavin Smith, 2015/07/11
- Re: Using Perl's cc, Eli Zaretskii, 2015/07/11
- Re: Using Perl's cc, Gavin Smith, 2015/07/11
- Re: Using Perl's cc, Eli Zaretskii, 2015/07/11
- Re: Using Perl's cc, Gavin Smith, 2015/07/11
- Re: Using Perl's cc, Eli Zaretskii, 2015/07/11
- Re: Using Perl's cc, Gavin Smith, 2015/07/11
- Re: Using Perl's cc, Eli Zaretskii, 2015/07/11
- Re: Using Perl's cc, Eli Zaretskii, 2015/07/11