libsfio_C_la_SOURCES = sfclose.c sfclrlock.c sfcvt.c sfdisc.c \
sfexcept.c sfexit.c sfextern.c sffilbuf.c \
sfflsbuf.c sfgetd.c sfgetl.c sfgetm.c sfgetr.c sfgetu.c \
- sfllen.c sfmode.c sfnew.c sfnotify.c \
+ sfmode.c sfnew.c sfnotify.c \
sfnputc.c sfopen.c sfpkrd.c sfpoll.c sfpool.c \
sfprintf.c sfprints.c sfpurge.c sfputd.c sfputl.c sfputm.c \
sfputr.c sfputu.c sfraise.c sfrd.c sfread.c sfreserve.c \
noinst_LTLIBRARIES = libsfiof_C.la
libsfiof_C_la_SOURCES = \
- _sffileno.c _sfgetc.c _sfllen.c _sfputc.c _sfputd.c \
+ _sffileno.c _sfgetc.c _sfputc.c _sfputd.c \
_sfputl.c _sfputm.c _sfputu.c _sfslen.c _sfstacked.c \
_sfulen.c _sfvalue.c
+++ /dev/null
-/* $Id$ $Revision$ */
-/* vim:set shiftwidth=4 ts=8: */
-
-/*************************************************************************
- * Copyright (c) 2011 AT&T Intellectual Property
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors: See CVS logs. Details at http://www.graphviz.org/
- *************************************************************************/
-
-#include <sfio/sfhdr.h>
-
-#undef sfllen
-
-int sfllen(Sflong_t v)
-{
- return __sf_llen(v);
-}
extern ssize_t sfpkrd(int, void *, size_t, int, long, int);
/* portable handling of primitive types */
- extern int sfllen(Sflong_t);
extern int sfulen(Sfulong_t);
extern int sfputd(Sfio_t *, Sfdouble_t);
extern int _sffilbuf(Sfio_t *, int);
- extern int _sfllen(Sflong_t);
extern int _sfulen(Sfulong_t);
/* miscellaneous function analogues of fast in-line functions */
(int)(*_SF_(f)->next++ = (unsigned char)(c)) )
#define __sf_getc(f) (_SF_(f)->next >= _SF_(f)->endr ? _sffilbuf(_SF_(f),0) : \
(int)(*_SF_(f)->next++) )
-#define __sf_llen(v) (_sfllen((Sflong_t)(v)) )
#define __sf_ulen(v) ((Sfulong_t)(v) < SF_U1 ? 1 : (Sfulong_t)(v) < SF_U2 ? 2 : \
(Sfulong_t)(v) < SF_U3 ? 3 : (Sfulong_t)(v) < SF_U4 ? 4 : 5)
#define __sf_fileno(f) ((f) ? _SF_(f)->file : -1)
#define sfputm(f,v,m) ( __sf_putm((f),(v),(m)) )
#define sfputc(f,c) ( __sf_putc((f),(c)) )
#define sfgetc(f) ( __sf_getc(f) )
-#define sfllen(v) ( __sf_llen(v) )
#define sfulen(v) ( __sf_ulen(v) )
#define sffileno(f) ( __sf_fileno(f) )
#define sfstacked(f) ( __sf_stacked(f) )
<ClCompile Include="sfgetu.c" />
<ClCompile Include="sfio_f\_sffileno.c" />
<ClCompile Include="sfio_f\_sfgetc.c" />
- <ClCompile Include="sfio_f\_sfllen.c" />
<ClCompile Include="sfio_f\_sfputc.c" />
<ClCompile Include="sfio_f\_sfputd.c" />
<ClCompile Include="sfio_f\_sfputl.c" />
<ClCompile Include="sfio_f\_sfstacked.c" />
<ClCompile Include="sfio_f\_sfulen.c" />
<ClCompile Include="sfio_f\_sfvalue.c" />
- <ClCompile Include="sfllen.c" />
<ClCompile Include="sfmode.c" />
<ClCompile Include="sfnew.c" />
<ClCompile Include="sfnotify.c" />
<ClCompile Include="sfio_f\_sfgetc.c">
<Filter>Source Files</Filter>
</ClCompile>
- <ClCompile Include="sfio_f\_sfllen.c">
- <Filter>Source Files</Filter>
- </ClCompile>
<ClCompile Include="sfio_f\_sfputc.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="sfgetu.c">
<Filter>Source Files</Filter>
</ClCompile>
- <ClCompile Include="sfllen.c">
- <Filter>Source Files</Filter>
- </ClCompile>
<ClCompile Include="sfmode.c">
<Filter>Source Files</Filter>
</ClCompile>
+++ /dev/null
-/* $Id$ $Revision$ */
-/* vim:set shiftwidth=4 ts=8: */
-
-/*************************************************************************
- * Copyright (c) 2011 AT&T Intellectual Property
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors: See CVS logs. Details at http://www.graphviz.org/
- *************************************************************************/
-
-#include <sfio/sfhdr.h>
-
-/* Get size of a long value coded in a portable format
-**
-** Written by Kiem-Phong Vo
-*/
-int _sfllen(Sflong_t v)
-{
- if (v < 0)
- v = -(v + 1);
- v = (Sfulong_t) v >> SF_SBITS;
- return 1 + (v > 0 ? sfulen(v) : 0);
-}