--- freem/src/global_bltin.c 2025/02/28 22:31:53 1.2 +++ freem/src/global_bltin.c 2025/03/24 01:33:30 1.6 @@ -1,23 +1,11 @@ /* - * * - * * * - * * * - * *************** - * * * * * - * * MUMPS * - * * * * * - * *************** - * * * - * * * - * * - * - * global.c + * $Id: global_bltin.c,v 1.6 2025/03/24 01:33:30 snw Exp $ * freem database engine * * - * Author: Serena Willis + * 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,19 @@ * You should have received a copy of the GNU Affero Public License * along with FreeM. If not, see . * + * $Log: global_bltin.c,v $ + * Revision 1.6 2025/03/24 01:33:30 snw + * Guard declaration of time function in global_bltin.c for portability + * + * Revision 1.5 2025/03/22 22:52:24 snw + * Add STRLEN_GBL macro to manage global string length + * + * Revision 1.4 2025/03/09 19:14:25 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 @@ -100,7 +101,7 @@ static void panic (void); #define BOTTOM 6 #define DATA 8 -#if !defined(__OpenBSD__) && !defined(_AIX) && !defined(__osf__) && !defined(MSDOS) && !defined(__vax__) +#if !defined(__OpenBSD__) && !defined(_AIX) && !defined(__osf__) && !defined(MSDOS) && !defined(__vax__) && !defined(__OS2__) long time (); #endif @@ -1611,6 +1612,7 @@ s20: } zref[j++] = ch0; + if (j >= 252) { zref[j] = EOL;