From 77894237a5bf3c507a4407e314c3abbb0616507b Mon Sep 17 00:00:00 2001 From: "William F. Jolitz" Date: Sun, 1 Mar 1992 04:54:36 -0800 Subject: [PATCH] 386BSD 0.1 development Work on file usr/othersrc/public/ghostscript-2.4.1/nsave.h Co-Authored-By: Lynne Greer Jolitz Synthesized-from: 386BSD-0.1 --- usr/othersrc/public/ghostscript-2.4.1/nsave.h | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 usr/othersrc/public/ghostscript-2.4.1/nsave.h diff --git a/usr/othersrc/public/ghostscript-2.4.1/nsave.h b/usr/othersrc/public/ghostscript-2.4.1/nsave.h new file mode 100644 index 0000000000..de529d2fe0 --- /dev/null +++ b/usr/othersrc/public/ghostscript-2.4.1/nsave.h @@ -0,0 +1,41 @@ +/* Copyright (C) 1991, 1992 Aladdin Enterprises. All rights reserved. + Distributed by Free Software Foundation, Inc. + +This file is part of Ghostscript. + +Ghostscript is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY. No author or distributor accepts responsibility +to anyone for the consequences of using it or for whether it serves any +particular purpose or works at all, unless he says so in writing. Refer +to the Ghostscript General Public License for full details. + +Everyone is granted permission to copy, modify and redistribute +Ghostscript, but only under the conditions described in the Ghostscript +General Public License. A copy of this license is supposed to have been +given to you along with Ghostscript so you can know your rights and +responsibilities. It should be in a file named COPYING. Among other +things, the copyright notice and this notice must be preserved on all +copies. */ + +/* nsave.h */ +/* Interpreter client interface for new Ghostscript allocator */ +/* Requires nalloc.h and ghost.h */ + +/* The routines here parallel those in nalloc.h, but deal with */ +/* refs and (unaligned) strings. */ + +/* ====== Ordinary clients ====== */ +/* These are clients who just allocate and deallocate objects. */ + +/* Allocate/free a string. */ +extern byte *gs_alloc_string(P3(as_ptr_t, uint, client_name_t)); +extern void gs_free_string(P4(as_ptr_t, byte *, uint, client_name_t)); + +/* Allocate/free refs. */ +extern ref *gs_alloc_refs(P3(as_ptr_t, uint, client_name_t)); +extern void gs_free_refs(P4(as_ptr_t, ref *, uint, client_name_t)); + +/* ====== Root-registering clients ====== */ + +/* Register a ref root. */ +void gs_alloc_ref_root_register(P3(as_ptr_t, gc_root_t *, ref **)); -- 2.20.1