/***********************************************************************1* *2* This software is part of the ast package *3* Copyright (c) 1985-2011 AT&T Intellectual Property *4* and is licensed under the *5* Eclipse Public License, Version 1.0 *6* by AT&T Intellectual Property *7* *8* A copy of the License is available at *9* http://www.eclipse.org/org/documents/epl-v10.html *10* (with md5 checksum b35adb5213ca9657e911e9befb180842) *11* *12* Information and Software Systems Research *13* AT&T Research *14* Florham Park NJ *15* *16* Glenn Fowler <[email protected]> *17* David Korn <[email protected]> *18* Phong Vo <[email protected]> *19* *20***********************************************************************/21/* OBSOLETE 19961031 -- for shared library compatibility */2223#include "sfhdr.h"2425#undef _sfgetl22627_BEGIN_EXTERNS_28#if _BLD_sfio && defined(__EXPORT__)29#define extern __EXPORT__30#endif3132extern long _sfgetl2 _ARG_((Sfio_t*, long));3334#undef extern35_END_EXTERNS_3637#if __STD_C38long _sfgetl2(reg Sfio_t* f, long v)39#else40long _sfgetl2(f, v)41reg Sfio_t* f;42long v;43#endif44{45if (v < 0)46return -1;47sfungetc(f, v);48return sfgetl(f);49}505152