Make GEntryPoints const.
authorRyan C. Gordon <icculus@icculus.org>
Sat, 03 Nov 2018 08:20:13 -0700
changeset 889 4ac9c8ff8605
parent 888 1a9b3de01a8a
child 890 c5a3ef536a6e
Make GEntryPoints const.
mojosetup.c
universal.h
--- a/mojosetup.c	Tue May 17 21:45:52 2016 +0200
+++ b/mojosetup.c	Sat Nov 03 08:20:13 2018 -0700
@@ -25,7 +25,7 @@
 
 
 uint8 scratchbuf_128k[128 * 1024];
-MojoSetupEntryPoints GEntryPoints =
+const MojoSetupEntryPoints GEntryPoints =
 {
     xmalloc,
     xrealloc,
--- a/universal.h	Tue May 17 21:45:52 2016 +0200
+++ b/universal.h	Sat Nov 03 08:20:13 2018 -0700
@@ -372,7 +372,7 @@
     char **(*splitText)(const char *text, int scrw, int *_count, int *_w);
     boolean (*isValidProductKey)(const char *f, const char *k);
 } MojoSetupEntryPoints;
-extern MojoSetupEntryPoints GEntryPoints;
+extern const MojoSetupEntryPoints GEntryPoints;
 
 
 #ifndef DOXYGEN_SHOULD_IGNORE_THIS