--- freem/src/symtab_dispatch.c 2025/03/09 15:20:18 1.2 +++ freem/src/symtab_dispatch.c 2025/04/28 14:52:54 1.6 @@ -1,23 +1,11 @@ /* - * * - * * * - * * * - * *************** - * * * * * - * * MUMPS * - * * * * * - * *************** - * * * - * * * - * * - * - * symtab_dispatch.c + * $Id: symtab_dispatch.c,v 1.6 2025/04/28 14:52:54 snw Exp $ * symbol table dispatch module * * * Author: Serena Willis * Copyright (C) 1998 MUG Deutschland - * Copyright (C) 2020 Coherent Logic Development LLC + * Copyright (C) 2020, 2025 Coherent Logic Development LLC * * * This file is part of FreeM. @@ -35,6 +23,22 @@ * You should have received a copy of the GNU Affero Public License * along with FreeM. If not, see . * + * $Log: symtab_dispatch.c,v $ + * Revision 1.6 2025/04/28 14:52:54 snw + * Temporarily revert global handler refactor and fix reference regression in xecline + * + * Revision 1.5 2025/04/13 04:22:43 snw + * Fix snprintf calls + * + * Revision 1.4 2025/03/27 03:27:35 snw + * Install init scripts to share/freem/examples/init and fix regression in method dispatch + * + * Revision 1.3 2025/03/09 19:50:47 snw + * Second phase of REUSE compliance and header reformat + * + * + * SPDX-FileCopyrightText: (C) 2025 Coherent Logic Development LLC + * SPDX-License-Identifier: AGPL-3.0-or-later **/ #include @@ -60,6 +64,7 @@ void symtab (short action, char *key, ch mref_init (r, MREF_RT_LOCAL, ""); internal_to_mref (r, key); + /* res = obj_is_object (r->name); if (res == TRUE) { @@ -75,15 +80,16 @@ void symtab (short action, char *key, ch if (r->subscript_count == 0 && action == kill_sym) { - if (destructor_ct < 10) { - snprintf (destructors[destructor_ct++], 50, "DESTROY^%%SYSOOP(\"%s\",.%s)", t_cls, r->name); + if (destructor_ct < 10) { + snprintf (destructors[destructor_ct++], OBJ_DSTRSIZE - 1, "DESTROY^%%SYSOOP(\"%s\",.%s)", t_cls, r->name); } obj_destroy (key); } - } + } + */ if (action != fra_order && action != fra_query) { for (i = 0; i < r->subscript_count; i++) {