summaryrefslogtreecommitdiff
path: root/src/sbuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sbuf.c')
-rw-r--r--src/sbuf.c26
1 files changed, 24 insertions, 2 deletions
diff --git a/src/sbuf.c b/src/sbuf.c
index 2e805e8..2bc2d03 100644
--- a/src/sbuf.c
+++ b/src/sbuf.c
@@ -1,8 +1,31 @@
+/* Functions for handling string buffers.
+ * Copyright (C) 2000, 2001 Shawn Betts
+ *
+ * This file is part of ratpoison.
+ *
+ * ratpoison is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ *
+ * ratpoison is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this software; see the file COPYING. If not, write to
+ * the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
+ * Boston, MA 02111-1307 USA
+ */
+
+#include "ratpoison.h"
#include "sbuf.h"
/* ------------------------------------ move to separate file */
#include <stdlib.h>
#include <stdio.h>
+
void
fatal (const char *msg)
{
@@ -25,7 +48,7 @@ xrealloc (void *ptr, size_t size)
register void *value = realloc (ptr, size);
if (value == 0)
fatal ("Virtual memory exhausted");
- fprintf (stderr, "realloc: %d\n", size);
+ PRINT_DEBUG("realloc: %d\n", size);
return value;
}
/*------------------------------------------------------------*/
@@ -97,4 +120,3 @@ sbuf_get (struct sbuf *b)
{
return b->data;
}
-