File: obstack

package info (click to toggle)
gnulib 20250303-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 188,756 kB
  • sloc: ansic: 378,600; sh: 30,630; python: 8,358; cpp: 2,811; yacc: 1,846; perl: 920; makefile: 577; lisp: 328; sed: 11; java: 5
file content (55 lines) | stat: -rw-r--r-- 1,482 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
Description:
Memory allocation, optimized for stack-like allocation patterns.

Files:
lib/obstack.in.h
lib/obstack.c
m4/obstack.m4

Depends-on:
gen-header
alignof         [test $HAVE_OBSTACK = 0 || test $REPLACE_OBSTACK = 1]
gettext-h       [test $HAVE_OBSTACK = 0 || test $REPLACE_OBSTACK = 1]
gnulib-i18n     [test $HAVE_OBSTACK = 0 || test $REPLACE_OBSTACK = 1]
exitfail        [test $HAVE_OBSTACK = 0 || test $REPLACE_OBSTACK = 1]
stdint-h        [test $HAVE_OBSTACK = 0 || test $REPLACE_OBSTACK = 1]
stdlib-h        [test $HAVE_OBSTACK = 0 || test $REPLACE_OBSTACK = 1]

configure.ac:
gl_FUNC_OBSTACK
gl_CONDITIONAL_HEADER([obstack.h])
gl_CONDITIONAL([GL_COND_OBJ_OBSTACK],
               [test $HAVE_OBSTACK = 0 || test $REPLACE_OBSTACK = 1])
AC_PROG_MKDIR_P

Makefile.am:
BUILT_SOURCES += $(OBSTACK_H)

# We need the following in order to create <obstack.h> when the system
# doesn't have one that works with any size object.
if GL_GENERATE_OBSTACK_H
obstack.h: obstack.in.h $(top_builddir)/config.status
@NMD@	$(AM_V_GEN)$(MKDIR_P) '%reldir%'
	$(gl_V_at)$(SED_HEADER_STDOUT) \
	      -e 's|@''REPLACE_OBSTACK''@|$(REPLACE_OBSTACK)|g' \
	      -e 's|@''SMALL_PTRDIFF_T''@|$(SMALL_PTRDIFF_T)|g' \
	      $(srcdir)/obstack.in.h > $@-t
	$(AM_V_at)mv $@-t $@
else
obstack.h: $(top_builddir)/config.status
	rm -f $@
endif
MOSTLYCLEANFILES += obstack.h obstack.h-t

if GL_COND_OBJ_OBSTACK
lib_SOURCES += obstack.c
endif

Include:
"obstack.h"

License:
LGPL

Maintainer:
all, glibc