Annotation of freem/src/routine.h, revision 1.5

1.1       snw         1: /*
1.5     ! snw         2:  *   $Id: routine.h,v 1.4 2025/04/30 17:19:16 snw Exp $
1.1       snw         3:  *    Routine buffer constants and prototypes
                      4:  *
                      5:  *  
1.2       snw         6:  *   Author: Serena Willis <snw@coherent-logic.com>
1.1       snw         7:  *    Copyright (C) 1998 MUG Deutschland
1.3       snw         8:  *    Copyright (C) 2023, 2025 Coherent Logic Development LLC
1.1       snw         9:  *
                     10:  *
                     11:  *   This file is part of FreeM.
                     12:  *
                     13:  *   FreeM is free software: you can redistribute it and/or modify
                     14:  *   it under the terms of the GNU Affero Public License as published by
                     15:  *   the Free Software Foundation, either version 3 of the License, or
                     16:  *   (at your option) any later version.
                     17:  *
                     18:  *   FreeM is distributed in the hope that it will be useful,
                     19:  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
                     20:  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                     21:  *   GNU Affero Public License for more details.
                     22:  *
                     23:  *   You should have received a copy of the GNU Affero Public License
                     24:  *   along with FreeM.  If not, see <https://www.gnu.org/licenses/>.
                     25:  *
1.4       snw        26:  *   $Log: routine.h,v $
1.5     ! snw        27:  *   Revision 1.4  2025/04/30 17:19:16  snw
        !            28:  *   Improve backtraces in debugger
        !            29:  *
1.4       snw        30:  *   Revision 1.3  2025/03/09 19:50:47  snw
                     31:  *   Second phase of REUSE compliance and header reformat
                     32:  *
1.3       snw        33:  *
                     34:  * SPDX-FileCopyrightText:  (C) 2025 Coherent Logic Development LLC
                     35:  * SPDX-License-Identifier: AGPL-3.0-or-later
1.1       snw        36:  **/
                     37: 
                     38: #if !defined(_FREEM_ROUTINE_H)
                     39: # define _FREEM_ROUTINE_H
                     40: 
                     41: typedef struct rtn_arg {
                     42:     char *arg_name;
                     43:     char *arg_type;
                     44:     short reference;
                     45: } rtn_arg;
                     46:     
                     47: 
                     48: typedef struct m_entry {
                     49:     char *tag;
                     50:     char *return_type;
                     51: 
                     52:     rtn_arg args[20];
                     53:     int argct;
                     54:     
                     55:     struct m_entry *next;
                     56: } m_entry;
                     57: 
                     58: extern short rtn_get_offset(char *buf);
                     59: extern char *rtn_resolve(char *rou, char *tag, char *buf);
                     60: extern short rtn_get_superclass(char *rou, char *buf);
                     61: extern short rtn_get_path(char *rou, char *buf);
                     62: extern short rtn_has_tag(char *rou, char *tag);
                     63: extern void rtn_free_entries(m_entry *head);
                     64: extern m_entry *rtn_get_entries(char *rou);
                     65: extern void zload(char *rou);
                     66: extern void zsave(char *rou);
                     67: extern void getraddress (char *a, short lvl);
1.4       snw        68: extern char *m_text(char *lref, char *buf);
1.5     ! snw        69: extern char *routine_get_line(char *entryref, char *buf);
1.1       snw        70: #endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>