Inconsistency between the declaration of three function prototypes in header file gprolog.h and atom.h

"Gustavo Brown - INCO" <[email protected]> Thu, 2 Oct 2014 15:06:33 -0300
Newsgroups gmane.comp.gnu.prolog.bugs
Message-ID <A26B1F7386D64552A02D43C41CB9FA52@VirtualXP99969>
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)

and the declaration of the same function prototypes in atom.h, in which the argument (atom) is not const.
The definition of those functions (in atom.c) do not have the argument marked as const either.

This gives an error when compiling a project which includes gprolog.h with Visual Studio 2008 (second C linkage of overloaded function XXX not allowed).

Machine using: Windows 7
GNU Prolog version 1.4.4

Regards,
   Gustavo

_______________________________________________
Bug-prolog mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-prolog