Annotation of freem/src/ssvn_object.c, revision 1.5
1.1 snw 1: /*
1.5 ! snw 2: * $Id: ssvn_object.c,v 1.4 2025/03/24 04:13:11 snw Exp $
1.1 snw 3: * ^$OBJECT SSVN implementation
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: ssvn_object.c,v $
1.5 ! snw 27: * Revision 1.4 2025/03/24 04:13:11 snw
! 28: * Replace action macro dat with fra_dat to avoid symbol conflict on OS/2
! 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: **/
1.3 snw 37:
1.1 snw 38: #include <stdlib.h>
39: #include <string.h>
40: #include <stdio.h>
41: #include <unistd.h>
42:
43: #include "mref.h"
44: #include "objects.h"
45: #include "mpsdef.h"
46:
47: void ssvn_object(short action, char *key, char *data)
48: {
49: freem_ref_t *r;
50:
51: r = (freem_ref_t *) malloc (sizeof (freem_ref_t));
52: NULLPTRCHK(r,"ssvn_object");
53:
54: mref_init (r, MREF_RT_SSV, "^$OBJECT");
55: internal_to_mref (r, key);
56:
57: switch (action) {
58:
59: case fra_order:
60: case fra_query:
1.4 snw 61: case fra_dat:
1.1 snw 62: case bigquery:
63: case get_sym:
64: symtab (action, key, data);
65: goto done;
66:
67:
68:
69: default:
70: merr_raise (M29);
71: goto done;
72: }
73:
74: done:
75: free (r);
76: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>