summaryrefslogtreecommitdiff
path: root/src/sbuf.c
diff options
context:
space:
mode:
authoralgernon <algernon>2001-02-15 21:44:59 +0000
committeralgernon <algernon>2001-02-15 21:44:59 +0000
commit81d8534454703493c70fa7d6d1acacc4c7105f79 (patch)
tree2c460a7037b4683b3150ef84c8b349399df8effc /src/sbuf.c
parente585df5873790eb4687aa1187dcfcc94469a077f (diff)
downloadratpoison-81d8534454703493c70fa7d6d1acacc4c7105f79.zip
header cleanups & copyright year update & co
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;
}
-