diff options
author | algernon <algernon> | 2001-02-15 21:44:59 +0000 |
---|---|---|
committer | algernon <algernon> | 2001-02-15 21:44:59 +0000 |
commit | 81d8534454703493c70fa7d6d1acacc4c7105f79 (patch) | |
tree | 2c460a7037b4683b3150ef84c8b349399df8effc /src/sbuf.c | |
parent | e585df5873790eb4687aa1187dcfcc94469a077f (diff) | |
download | ratpoison-81d8534454703493c70fa7d6d1acacc4c7105f79.zip |
header cleanups & copyright year update & co
Diffstat (limited to 'src/sbuf.c')
-rw-r--r-- | src/sbuf.c | 26 |
1 files changed, 24 insertions, 2 deletions
@@ -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; } - |