summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-alloc.h
diff options
context:
space:
mode:
authorDarin Adler <darin@src.gnome.org>2000-01-26 00:34:30 +0000
committerDarin Adler <darin@src.gnome.org>2000-01-26 00:34:30 +0000
commitc796ee4c97b37a2ad12a79a5d3805a4ef0b69ecf (patch)
tree961d3683d15b8c5cac03f9e6df33387fb5fca9d4 /libnautilus-private/nautilus-alloc.h
parent6d547890b62344f88d04cef7836d5ca1ceb63e9d (diff)
downloadnautilus-c796ee4c97b37a2ad12a79a5d3805a4ef0b69ecf.tar.gz
Added interface to get a NautilusFile for a specific file rather than a
* libnautilus/nautilus-directory.h: (nautilus_file_get): (nautilus_file_detach): (nautilus_directory_finalize): (nautilus_file_unref): Added interface to get a NautilusFile for a specific file rather than a file from a directory that we are scanning. * libnautilus/nautilus-glib-extensions.c: (check_tm_to_g_date): A little cleanup of the self-check code. * libnautilus/Makefile.am: libnautilus/libnautilus.h: libnautilus/nautilus-alloc.h: libnautilus/nautilus-directory.h: Moved g_alloca into its own header file so you don't have to include all the Bonobo stuff just to use g_alloca.
Diffstat (limited to 'libnautilus-private/nautilus-alloc.h')
-rw-r--r--libnautilus-private/nautilus-alloc.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/libnautilus-private/nautilus-alloc.h b/libnautilus-private/nautilus-alloc.h
new file mode 100644
index 000000000..c98eb9f66
--- /dev/null
+++ b/libnautilus-private/nautilus-alloc.h
@@ -0,0 +1,31 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*-
+
+ Nautilus extensions to things like malloc and alloca.
+
+ Copyright (C) 2000 Eazel, Inc.
+
+ This program 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 of the
+ License, or (at your option) any later version.
+
+ This program 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 program; if not, write to the
+ Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA.
+
+ Author: Darin Adler <darin@eazel.com>
+*/
+
+#ifdef HAVE_ALLOCA_H
+#include <alloca.h>
+#endif
+
+#ifndef g_alloca
+#define g_alloca alloca
+#endif