Re: Inconsistency between the declaration of three function prototypes in header file gprolog.h and atom.h
Daniel Diaz <[email protected]> Sun, 5 Oct 2014 11:00:31 +0200
| Newsgroups | gmane.comp.gnu.prolog.bugs |
|---|---|
| Message-ID | <[email protected]> |
--===============0573313632168130535== Content-Type: multipart/alternative; boundary="Apple-Mail=_5939929A-A66D-4576-81C5-157831F7772D" --Apple-Mail=_5939929A-A66D-4576-81C5-157831F7772D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Thank for this report, note however that normally you don=92t need to include both gprolog.h and a= tom.h. Can you check why do you need this ? Daniel Le 2 oct. 2014 =E0 20:06, Gustavo Brown - INCO <[email protected]> a =E9cr= it : >=20=20 > Hi, > There is an inconsistency between the declaration of function prototypes= in header file gprolog.h > int Pl_Create_Atom(const char *atom) > int Pl_Create_Allocate_Atom(const char *atom) > int Pl_Find_Atom(const char *atom) >=20=20 > and the declaration of the same function prototypes in atom.h, in which t= he argument (atom) is not const. > The definition of those functions (in atom.c) do not have the argument ma= rked as const either. >=20=20 > This gives an error when compiling a project which includes gprolog.h wit= h Visual Studio 2008 (second C linkage of overloaded function XXX not allow= ed). >=20=20 > Machine using: Windows 7 > GNU Prolog version 1.4.4 >=20=20 > Regards, > Gustavo >=20 > --=20 > Ce message a =E9t=E9 v=E9rifi=E9 par MailScanner pour des virus ou des po= lluriels et rien de suspect n'a =E9t=E9 trouv=E9. _________________________= ______________________ > Bug-prolog mailing list > [email protected] > https://lists.gnu.org/mailman/listinfo/bug-prolog --=20 Ce message a ete verifie par MailScanner pour des virus ou des polluriels et rien de suspect n'a ete trouve. --Apple-Mail=_5939929A-A66D-4576-81C5-157831F7772D Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252 <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html charset= =3Dwindows-1252"></head><body style=3D"word-wrap: break-word; -webkit-nbsp-= mode: space; -webkit-line-break: after-white-space;">Thank for this report,= <div><br></div><div>note however that normally you don=92t need to include = both gprolog.h and atom.h.</div><div>Can you check why do you need this ?</= div><div><br></div><div>Daniel</div><div><br></div><div><br><div><div>Le 2 = oct. 2014 =E0 20:06, Gustavo Brown - INCO <<a href=3D"mailto:gbrown@fing= .edu.uy">[email protected]</a>> a =E9crit :</div><br class=3D"Apple-int= erchange-newline"><blockquote type=3D"cite"><div bgcolor=3D"#ffffff" style= =3D"font-family: LucidaGrande; font-size: 16px; font-style: normal; font-va= riant: normal; font-weight: normal; letter-spacing: normal; line-height: no= rmal; orphans: auto; text-align: start; text-indent: 0px; text-transform: n= one; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-str= oke-width: 0px;"><div><font size=3D"2" face=3D"Arial"></font> </div><d= iv><font size=3D"2" face=3D"Arial">Hi,</font></div><div><font size=3D"2" fa= ce=3D"Arial"> There is an inconsistency between the declaration of fun= ction prototypes in header file gprolog.h</font></div><div><font size=3D"2"= face=3D"Arial"> int Pl_Create_Atom(const char *atom)</fo= nt></div><div><font size=3D"2" face=3D"Arial"> int Pl_Cre= ate_Allocate_Atom(const char *atom)</font></div><div><font size=3D"2" face= =3D"Arial"> int Pl_Find_Atom(const char *atom)</font></di= v><div><font size=3D"2" face=3D"Arial"></font> </div><div><font size= =3D"2" face=3D"Arial">and the declaration of the same function prototypes i= n atom.h, in which the argument (atom) is not const.</font></div><div><font= size=3D"2" face=3D"Arial">The definition of those functions (in atom.c) do= not have the argument marked as const either.</font></div><div><font size= =3D"2" face=3D"Arial"></font> </div><div><font size=3D"2" face=3D"Aria= l">This gives an error when compiling a project which includes gprolog.h wi= th Visual Studio 2008 (second C linkage of overloaded function XXX not allo= wed).</font></div><div><font size=3D"2" face=3D"Arial"></font> </div><= div><font size=3D"2" face=3D"Arial">Machine using: Windows 7</font></div><d= iv><font size=3D"2" face=3D"Arial">GNU Prolog version 1.4.4</font></div><di= v><font size=3D"2" face=3D"Arial"></font> </div><div><font size=3D"2" = face=3D"Arial">Regards,</font></div><div><font size=3D"2" face=3D"Arial">&n= bsp; Gustavo</font></div><br>--<span class=3D"Apple-converted-space">= </span><br>Ce message a =E9t=E9 v=E9rifi=E9 par<span class=3D"Apple-c= onverted-space"> </span><a href=3D"http://www.mailscanner.info/">MailS= canner</a><span class=3D"Apple-converted-space"> </span>pour des virus= ou des polluriels et rien de suspect n'a =E9t=E9 trouv=E9. _______________= ________________________________<br>Bug-prolog mailing list<br><a href=3D"m= ailto:[email protected]">[email protected]</a><br><a href=3D"https://list= s.gnu.org/mailman/listinfo/bug-prolog">https://lists.gnu.org/mailman/listin= fo/bug-prolog</a><br></div></blockquote></div><br></div><br>--=20 <br>Ce message a été vérifié par <a href=3D"http://www.mailscanner.info/">MailScanner</a> pour des virus ou des polluriels et rien de suspect n'a été trouvé. </body></html> --Apple-Mail=_5939929A-A66D-4576-81C5-157831F7772D-- --===============0573313632168130535== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bug-prolog mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-prolog --===============0573313632168130535==--