i_rowid_s, m_rowid_s, s_rowid_s, r_rowid_s, and w_rowid_s functions
Iwan AB <[email protected]> Sat, 5 Jun 2021 16:05:40 +0700
| Newsgroups | gmane.comp.lang.4gl.aubit.general |
|---|---|
| Message-ID | <CAHJCSmKqHjnXQ-AT3MT=AEyXi-_aePrv6iFSKCafnPvJFGQ4ZA@mail.gmail.com> |
Hi,
I use functions i_rowid_s, m_rowid_s, r_rowid_s, and s_rowid_s for
maintenance table program. Compiling a program (let's say p_rowid.4gl)
containing all those functions produce error that say that those functions
are aubit's builtin functions.
FUNCTION i_rowid_s()
|_________________^
| Error at line 11, character 19
| You can't use this name - this is the name of a builtin Aubit4GL function
())
DEFINE retval INTEGER
CODE
if((rowptr = (long *)malloc(sizeof(long))) != NULL) retval = 0;
else
retval = 1;
ENDCODE
RETURN retval
END FUNCTION
I've checked the aubit's source program, those functions are in module
helper.c
But when compiling a program to executable (.4ae) without linking to 4gl
module that contain those functions produce error
undefined reference to `aclfgl_i_rowid_s' and so on.
I could simply rename the functions by adding prefix such as fgl_ like
fgl_i_rowid_s, but sadly it means that I have to rename all those functions
in all of my maintenance table programs too (there are hundreds of them).
Regards,
Iwan
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virus-free.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
_______________________________________________
Aubit4gl-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss