projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
moved knowledge of pspp_linreg_cache out of pspp_coeff_init
[pspp]
/
src
/
libpspp
/
pool.h
diff --git
a/src/libpspp/pool.h
b/src/libpspp/pool.h
index 4f33dfa0d09a888bc3c0e2763f48968704850de9..fe4af29b73c4bcdccc77d1df03d8de21944c1432 100644
(file)
--- a/
src/libpspp/pool.h
+++ b/
src/libpspp/pool.h
@@
-1,5
+1,5
@@
/* PSPP - computes sample statistics.
/* PSPP - computes sample statistics.
- Copyright (C) 2000 Free Software Foundation, Inc.
+ Copyright (C) 2000
, 2006
Free Software Foundation, Inc.
Written by Ben Pfaff <blp@gnu.org>.
This program is free software; you can redistribute it and/or
Written by Ben Pfaff <blp@gnu.org>.
This program is free software; you can redistribute it and/or
@@
-20,6
+20,7
@@
#if !pool_h
#define pool_h 1
#if !pool_h
#define pool_h 1
+#include <stdarg.h>
#include <stdio.h>
#include "compiler.h"
#include <stdio.h>
#include "compiler.h"
@@
-63,7
+64,10
@@
void *pool_clone (struct pool *, const void *, size_t) MALLOC_LIKE;
void *pool_alloc_unaligned (struct pool *, size_t) MALLOC_LIKE;
void *pool_clone_unaligned (struct pool *, const void *, size_t) MALLOC_LIKE;
char *pool_strdup (struct pool *, const char *) MALLOC_LIKE;
void *pool_alloc_unaligned (struct pool *, size_t) MALLOC_LIKE;
void *pool_clone_unaligned (struct pool *, const void *, size_t) MALLOC_LIKE;
char *pool_strdup (struct pool *, const char *) MALLOC_LIKE;
-char *pool_strcat (struct pool *, const char *, ...) MALLOC_LIKE;
+char *pool_vasprintf (struct pool *, const char *, va_list)
+ MALLOC_LIKE PRINTF_FORMAT (2, 0);
+char *pool_asprintf (struct pool *, const char *, ...)
+ MALLOC_LIKE PRINTF_FORMAT (2, 3);
/* Standard allocation routines. */
void *pool_malloc (struct pool *, size_t) MALLOC_LIKE;
/* Standard allocation routines. */
void *pool_malloc (struct pool *, size_t) MALLOC_LIKE;
@@
-79,7
+83,7
@@
void pool_add_subpool (struct pool *, struct pool *subpool);
/* Files. */
FILE *pool_fopen (struct pool *, const char *, const char *);
/* Files. */
FILE *pool_fopen (struct pool *, const char *, const char *);
-int pool_fclose (struct pool *, FILE *);
+int pool_fclose (struct pool *, FILE *)
WARN_UNUSED_RESULT
;
FILE *pool_tmpfile (struct pool *);
void pool_attach_file (struct pool *, FILE *);
void pool_detach_file (struct pool *, FILE *);
FILE *pool_tmpfile (struct pool *);
void pool_attach_file (struct pool *, FILE *);
void pool_detach_file (struct pool *, FILE *);
@@
-92,7
+96,7
@@
int pool_unregister (struct pool *, void *);
void pool_mark (struct pool *, struct pool_mark *);
void pool_release (struct pool *, const struct pool_mark *);
void pool_mark (struct pool *, struct pool_mark *);
void pool_release (struct pool *, const struct pool_mark *);
-#if
GLOBAL_
DEBUGGING
+#if DEBUGGING
void pool_dump (const struct pool *, const char *title);
#endif
void pool_dump (const struct pool *, const char *title);
#endif