Changeset: 80ffbb77a982 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/80ffbb77a982
Modified Files:
monetdb5/mal/mal.h
Branch: Jun2023
Log Message:
Use a "generic" pointer to function for MALfcn, instead of pointer to void.
You cannot officially cast `pointer to function' to `pointer to void',
but different pointer to function types can be cast back and forth
without loss (as long as you use the correct type to call the function).
diffs (12 lines):
diff --git a/monetdb5/mal/mal.h b/monetdb5/mal/mal.h
--- a/monetdb5/mal/mal.h
+++ b/monetdb5/mal/mal.h
@@ -105,7 +105,7 @@ mal_export const char *mal_version(void)
#define VARRETS 2
typedef int malType;
-typedef void *MALfcn;
+typedef void (*MALfcn)(void);
typedef struct SYMDEF {
struct SYMDEF *peer; /* where to look next */
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]