1*0Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI"
2*0Sstevel@tonic-gate
3*0Sstevel@tonic-gate /*
4*0Sstevel@tonic-gate * This file is part of libdyn.a, the C Dynamic Object library. It
5*0Sstevel@tonic-gate * contains the source code for the function DynDebug().
6*0Sstevel@tonic-gate *
7*0Sstevel@tonic-gate * There are no restrictions on this code; however, if you make any
8*0Sstevel@tonic-gate * changes, I request that you document them so that I do not get
9*0Sstevel@tonic-gate * credit or blame for your modifications.
10*0Sstevel@tonic-gate *
11*0Sstevel@tonic-gate * Written by Barr3y Jaspan, Student Information Processing Board (SIPB)
12*0Sstevel@tonic-gate * and MIT-Project Athena, 1989.
13*0Sstevel@tonic-gate */
14*0Sstevel@tonic-gate
15*0Sstevel@tonic-gate #include <stdio.h>
16*0Sstevel@tonic-gate
17*0Sstevel@tonic-gate #include "dynP.h"
18*0Sstevel@tonic-gate
DynDebug(obj,state)19*0Sstevel@tonic-gate int DynDebug(obj, state)
20*0Sstevel@tonic-gate DynObjectP obj;
21*0Sstevel@tonic-gate int state;
22*0Sstevel@tonic-gate {
23*0Sstevel@tonic-gate obj->debug = state;
24*0Sstevel@tonic-gate
25*0Sstevel@tonic-gate fprintf(stderr, "dyn: debug: Debug state set to %d.\n", state);
26*0Sstevel@tonic-gate return DYN_OK;
27*0Sstevel@tonic-gate }
28