[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "load" on Windows
From: |
Gisle Vanem |
Subject: |
Re: "load" on Windows |
Date: |
Sat, 5 Oct 2013 19:49:33 +0200 |
"Eli Zaretskii" <address@hidden> wrote:
What about setting:
ent->fptr.func_ptr = func;
too?
They are one and the same, since they are members of a union:
struct function_table_entry
{
union {
char *(*func_ptr) (char *output, char **argv, const char *fname);
char *(*alloc_func_ptr) (const char *fname, int argc, char **argv);
} fptr;
Okay, you're right. I didn't see the "union".
Thanks. Your problem is here:
EXPORT int mk_test_gmk_setup (const gmk_floc *flocp)
{
gmk_add_function ("hello_world", hello_world, 0, 255, 0);
^^^^^^^^^^^
Make functions cannot have the '_' character in their names, so it
seems. Here's why:
Ayyy!! > 1 day wasted on such a triffle. May I suggest more warnings
in define_new_function()? It works fine as "$(hello-world "Hello world").
Btw, Gisle, I don't understand why you needed to use the EXPORT
thingy, the DLL is compiled just fine without it, and only exports
non-static variables and functions anyway.
Right again. I was thinking more about making a DLL with MSVC.
(without any .def file).
Thanks again.
--gv
- Re: "load" on Windows, (continued)
- Re: "load" on Windows, Eli Zaretskii, 2013/10/03
- Re: "load" on Windows, Gisle Vanem, 2013/10/03
- Re: "load" on Windows, Eli Zaretskii, 2013/10/04
- Re: "load" on Windows, Eli Zaretskii, 2013/10/04
- Re: "load" on Windows, Gisle Vanem, 2013/10/05
- Re: "load" on Windows, Eli Zaretskii, 2013/10/05
- Re: "load" on Windows, Eli Zaretskii, 2013/10/05
- Re: "load" on Windows, David Boyce, 2013/10/05
- Re: "load" on Windows, Eli Zaretskii, 2013/10/05
- Re: "load" on Windows, Paul Smith, 2013/10/05
- Re: "load" on Windows,
Gisle Vanem <=