|
|
| version 1.1, 2025/01/19 02:04:04 | version 1.4, 2025/03/22 18:43:54 |
|---|---|
| Line 1 | Line 1 |
| /* | /* |
| * * | * $Id$ |
| * * * | |
| * * * | |
| * *************** | |
| * * * * * | |
| * * MUMPS * | |
| * * * * * | |
| * *************** | |
| * * * | |
| * * * | |
| * * | |
| * | |
| * events.c | |
| * event framework | * event framework |
| * | * |
| * | * |
| * Author: Serena Willis <jpw@coherent-logic.com> | * Author: Serena Willis <snw@coherent-logic.com> |
| * Copyright (C) 1998 MUG Deutschland | * 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. | * This file is part of FreeM. |
| Line 35 | Line 23 |
| * You should have received a copy of the GNU Affero Public License | * You should have received a copy of the GNU Affero Public License |
| * along with FreeM. If not, see <https://www.gnu.org/licenses/>. | * along with FreeM. If not, see <https://www.gnu.org/licenses/>. |
| * | * |
| * $Log$ | |
| * Revision 1.4 2025/03/22 18:43:54 snw | |
| * Make STRLEN 255 chars and add BIGSTR macro for larger buffers | |
| * | |
| * Revision 1.3 2025/03/09 19:14:24 snw | |
| * First phase of REUSE compliance and header reformat | |
| * | |
| * | |
| * SPDX-FileCopyrightText: (C) 2025 Coherent Logic Development LLC | |
| * SPDX-License-Identifier: AGPL-3.0-or-later | |
| **/ | **/ |
| #include <stdlib.h> | #include <stdlib.h> |
| Line 257 int evt_get_handlers (char *buf) { | Line 255 int evt_get_handlers (char *buf) { |
| int ct; | int ct; |
| evt_entry *e; | evt_entry *e; |
| class_name = malloc (256 * sizeof (char)); | class_name = malloc (STRLEN * sizeof (char)); |
| NULLPTRCHK(class_name,"evt_get_handlers"); | NULLPTRCHK(class_name,"evt_get_handlers"); |
| t_buf = malloc (STRLEN * sizeof (char)); | t_buf = malloc (STRLEN * sizeof (char)); |
| Line 349 short evt_registered (char *event_id, sh | Line 347 short evt_registered (char *event_id, sh |
| char pid_s[10]; | char pid_s[10]; |
| int ct; | int ct; |
| t_key = malloc (256 * sizeof (char)); | t_key = malloc (STRLEN * sizeof (char)); |
| NULLPTRCHK(t_key,"evt_registered"); | NULLPTRCHK(t_key,"evt_registered"); |
| class_name = malloc (256 * sizeof (char)); | class_name = malloc (STRLEN * sizeof (char)); |
| NULLPTRCHK(class_name,"evt_registered"); | NULLPTRCHK(class_name,"evt_registered"); |
| t_buf = malloc (STRLEN * sizeof (char)); | t_buf = malloc (STRLEN * sizeof (char)); |