File:  [Coherent Logic Development] / freem / src / routine.h
Revision 1.5: download - view: text, annotated - select for diffs
Wed Apr 30 20:03:09 2025 UTC (3 months ago) by snw
Branches: MAIN
CVS tags: HEAD
Work on entryref parser

    1: /*
    2:  *   $Id: routine.h,v 1.5 2025/04/30 20:03:09 snw Exp $
    3:  *    Routine buffer constants and prototypes
    4:  *
    5:  *  
    6:  *   Author: Serena Willis <snw@coherent-logic.com>
    7:  *    Copyright (C) 1998 MUG Deutschland
    8:  *    Copyright (C) 2023, 2025 Coherent Logic Development LLC
    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:  *
   26:  *   $Log: routine.h,v $
   27:  *   Revision 1.5  2025/04/30 20:03:09  snw
   28:  *   Work on entryref parser
   29:  *
   30:  *   Revision 1.4  2025/04/30 17:19:16  snw
   31:  *   Improve backtraces in debugger
   32:  *
   33:  *   Revision 1.3  2025/03/09 19:50:47  snw
   34:  *   Second phase of REUSE compliance and header reformat
   35:  *
   36:  *
   37:  * SPDX-FileCopyrightText:  (C) 2025 Coherent Logic Development LLC
   38:  * SPDX-License-Identifier: AGPL-3.0-or-later
   39:  **/
   40: 
   41: #if !defined(_FREEM_ROUTINE_H)
   42: # define _FREEM_ROUTINE_H
   43: 
   44: typedef struct rtn_arg {
   45:     char *arg_name;
   46:     char *arg_type;
   47:     short reference;
   48: } rtn_arg;
   49:     
   50: 
   51: typedef struct m_entry {
   52:     char *tag;
   53:     char *return_type;
   54: 
   55:     rtn_arg args[20];
   56:     int argct;
   57:     
   58:     struct m_entry *next;
   59: } m_entry;
   60: 
   61: extern short rtn_get_offset(char *buf);
   62: extern char *rtn_resolve(char *rou, char *tag, char *buf);
   63: extern short rtn_get_superclass(char *rou, char *buf);
   64: extern short rtn_get_path(char *rou, char *buf);
   65: extern short rtn_has_tag(char *rou, char *tag);
   66: extern void rtn_free_entries(m_entry *head);
   67: extern m_entry *rtn_get_entries(char *rou);
   68: extern void zload(char *rou);
   69: extern void zsave(char *rou);
   70: extern void getraddress (char *a, short lvl);
   71: extern char *m_text(char *lref, char *buf);
   72: extern char *routine_get_line(char *entryref, char *buf);
   73: #endif

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