--- freem/src/symtab_bltin.c 2025/04/19 21:52:20 1.13 +++ freem/src/symtab_bltin.c 2025/05/14 12:22:04 1.14 @@ -1,5 +1,5 @@ /* - * $Id: symtab_bltin.c,v 1.13 2025/04/19 21:52:20 snw Exp $ + * $Id: symtab_bltin.c,v 1.14 2025/05/14 12:22:04 snw Exp $ * FreeM local system table and user-defined special variable table * * @@ -24,6 +24,9 @@ * along with FreeM. If not, see . * * $Log: symtab_bltin.c,v $ + * Revision 1.14 2025/05/14 12:22:04 snw + * Further work on shared memory + * * Revision 1.13 2025/04/19 21:52:20 snw * Remove extraneous symbol table debugging message * @@ -71,6 +74,7 @@ #include "merr.h" #include "consttbl.h" #include "shmmgr.h" +#include "log.h" /* Turn this on to get tons of lovely debugging messages about symbol-table calls */ @@ -191,7 +195,7 @@ void symtab_init (void) } if (shm_config->hdr->use_mb_globals == TRUE) { - mbpartition = shm_config->hdr->partition; + mbpartition = SOA(shm_config->hdr->partition); } symtab_release_sem (); @@ -220,7 +224,7 @@ short symtab_get_sem(void) sleep (1); } - fprintf (stderr, "symtab_get_sem: fail\r\n"); + logprintf (FM_LOG_ERROR, "symtab_get_sem: fail"); have_symtab_sem = FALSE; return FALSE; @@ -246,6 +250,9 @@ void symtab_shm (short action, char *key register int i; char *old_partition = partition; + global (action, key, data); + return; + if (shm_config->hdr->use_mb_globals == FALSE) { symtab_bltin (action, key, data); return;