File:  [Coherent Logic Development] / freem / src / objects.h
Revision 1.1: download - view: text, annotated - select for diffs
Sun Jan 19 02:04:04 2025 UTC (8 months, 1 week ago) by snw
Branches: MAIN
CVS tags: HEAD
Initial revision

    1: /*
    2:  *                            *
    3:  *                           * *
    4:  *                          *   *
    5:  *                     ***************
    6:  *                      * *       * *
    7:  *                       *  MUMPS  *
    8:  *                      * *       * *
    9:  *                     ***************
   10:  *                          *   *
   11:  *                           * *
   12:  *                            *
   13:  *
   14:  *   objects.h
   15:  *    prototypes, structures, and macros for OO support
   16:  *
   17:  *  
   18:  *   Author: Serena Willis <jpw@coherent-logic.com>
   19:  *    Copyright (C) 1998 MUG Deutschland
   20:  *    Copyright (C) 2023 Coherent Logic Development LLC
   21:  *
   22:  *
   23:  *   This file is part of FreeM.
   24:  *
   25:  *   FreeM is free software: you can redistribute it and/or modify
   26:  *   it under the terms of the GNU Affero Public License as published by
   27:  *   the Free Software Foundation, either version 3 of the License, or
   28:  *   (at your option) any later version.
   29:  *
   30:  *   FreeM is distributed in the hope that it will be useful,
   31:  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
   32:  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   33:  *   GNU Affero Public License for more details.
   34:  *
   35:  *   You should have received a copy of the GNU Affero Public License
   36:  *   along with FreeM.  If not, see <https://www.gnu.org/licenses/>.
   37:  *
   38:  **/
   39: 
   40: #if !defined(_FREEM_OBJECTS_H)
   41: # define _FREEM_OBJECTS_H
   42: extern void obj_init(void);
   43: extern short obj_is_field_private(char *key);
   44: extern void obj_set_field_private(char *key);
   45: extern void obj_set_field_public(char *key);
   46: extern short obj_is_object(char *inst);
   47: extern short obj_instance_of(char *inst, char *class);
   48: extern void obj_set_attribute(char *inst, char *attrib, char *value);
   49: extern short obj_get_attribute(char *inst, char *attrib, char *buf);
   50: extern void obj_destroy(char *inst);
   51: extern void obj_create_symbols(char *objvar, char *class);
   52: extern void obj_get_constructor(char *constructor, char *class, char *instvar);
   53: 
   54: #endif

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