Commit 8cbb3949 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

gegl/module/gegldatafiles.c gegl/graph/gegl-node.c

2008-02-19  Sven Neumann  <sven@gimp.org>

	* gegl/module/gegldatafiles.c
	* gegl/graph/gegl-node.c
	* gegl/graph/gegl-node-context.c
	* gegl/buffer/gegl-cache.c
	* gegl/buffer/gegl-tile-mem.c
	* gegl/buffer/gegl-buffer.c: organized includes.

	* gegl/buffer/gegl-buffer-load.c
	* gegl/buffer/gegl-buffer-save.c: fixed error handling.

svn path=/trunk/; revision=2062
parent 001176ce
2008-02-19 Sven Neumann <sven@gimp.org>
* gegl/module/gegldatafiles.c
* gegl/graph/gegl-node.c
* gegl/graph/gegl-node-context.c
* gegl/buffer/gegl-cache.c
* gegl/buffer/gegl-tile-mem.c
* gegl/buffer/gegl-buffer.c: organized includes.
* gegl/buffer/gegl-buffer-load.c
* gegl/buffer/gegl-buffer-save.c: fixed error handling.
2008-02-19 Sven Neumann <sven@gimp.org>
* gegl/buffer/gegl-buffer-allocator.c (gegl_swap_dir): rewritten
......
......@@ -15,14 +15,17 @@
*
* Copyright 2006, 2007 Øyvind Kolås <pippin@gimp.org>
*/
#include "config.h"
#include <string.h>
#include <errno.h>
#include <fcntl.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <string.h>
#include <glib.h>
#include <glib-object.h>
#include <glib/gstdio.h>
......@@ -30,7 +33,8 @@
#include <io.h>
#endif
#include "../gegl-types.h"
#include "gegl-types.h"
#include "gegl-buffer-types.h"
#include "gegl-buffer.h"
#include "gegl-storage.h"
......@@ -104,7 +108,12 @@ gegl_buffer_load (GeglBuffer *buffer,
info->fd = g_open (info->path, O_RDONLY, 0);
if (info->fd == -1)
{
g_message ("Unable to open '%s' for loading a buffer", info->path);
gchar *name = g_filename_display_name (info->path);
g_message ("Unable to open '%s' for loading a buffer: %s",
name, g_strerror (errno));
g_free (name);
load_info_destroy (info);
return;
}
......
......@@ -18,12 +18,14 @@
#include "config.h"
#include <string.h>
#include <errno.h>
#include <fcntl.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <string.h>
#include <glib.h>
#include <glib-object.h>
#include <glib/gstdio.h>
......@@ -37,7 +39,8 @@
#endif
#endif
#include "../gegl-types.h"
#include "gegl-types.h"
#include "gegl-buffer-types.h"
#include "gegl-buffer.h"
#include "gegl-storage.h"
......@@ -158,10 +161,16 @@ gegl_buffer_save (GeglBuffer *buffer,
strcpy (info->header.magic, "_G_E_G_L");
info->path = g_strdup (path);
info->fd = g_open (info->path, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR);
info->fd = g_open (info->path,
O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR);
if (info->fd == -1)
{
g_message ("Unable to open '%s' when saving a buffer", info->path);
gchar *name = g_filename_display_name (info->path);
g_message ("Unable to open '%s' when saving a buffer: %s",
name, g_strerror (errno));
g_free (name);
save_info_destroy (info);
return;
}
......
......@@ -18,15 +18,13 @@
#include "config.h"
#include <limits.h>
#include <math.h>
#include <string.h>
#include <glib.h>
#include <glib-object.h>
#include <glib/gstdio.h>
#include "../gegl-types.h"
#include "gegl-types.h"
#include "gegl-buffer-types.h"
#include "gegl-buffer.h"
#include "gegl-buffer-allocator.h"
......
......@@ -16,18 +16,22 @@
* Copyright (C) 2003, 2004, 2006 Øyvind Kolås
*/
#include <stdio.h>
#include "config.h"
#include <string.h>
#include <glib-object.h>
#include <gobject/gvaluecollector.h>
#include "gegl-types.h"
#include <babl/babl.h>
#include "gegl-types.h"
#include "gegl-utils.h"
#include "graph/gegl-node.h"
#include "gegl-cache.h"
#include "gegl-region.h"
#include "../gegl-utils.h"
enum
{
......
......@@ -19,15 +19,8 @@
#include "config.h"
#include <string.h>
#include <errno.h>
#include <fcntl.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <glib-object.h>
#include <glib/gstdio.h>
#include "gegl-tile-backend.h"
#include "gegl-tile-mem.h"
......
......@@ -21,15 +21,16 @@
#define GEGL_INTERNAL
#include <stdio.h>
#include <string.h>
#include <glib-object.h>
#include "gegl-types.h"
#include "gegl-node-context.h"
#include "gegl-node.h"
#include "gegl-pad.h"
#include "operation/gegl-operation.h"
static void gegl_node_context_class_init (GeglNodeContextClass *klass);
......
......@@ -21,11 +21,11 @@
#include "config.h"
#include <stdio.h>
#include <string.h>
#include <glib-object.h>
#include <gobject/gvaluecollector.h>
#include "gegl-types.h"
#include "gegl-node.h"
......@@ -33,9 +33,11 @@
#include "gegl-pad.h"
#include "gegl-utils.h"
#include "gegl-visitable.h"
#include "operation/gegl-operation.h"
#include "operation/gegl-operations.h"
#include "operation/gegl-operation-meta.h"
#include "process/gegl-eval-mgr.h"
#include "process/gegl-have-visitor.h"
#include "process/gegl-prepare-visitor.h"
......@@ -483,8 +485,6 @@ find_connection (GeglNode *sink,
return NULL;
}
#include <stdio.h>
gboolean
gegl_node_connect_to (GeglNode *source,
const gchar *source_pad_name,
......@@ -1106,8 +1106,6 @@ gegl_node_get (GeglNode *self,
va_end (var_args);
}
#include <stdio.h>
void
gegl_node_set_valist (GeglNode *self,
const gchar *first_property_name,
......
......@@ -19,12 +19,12 @@
* Datafiles module copyight (C) 1996 Federico Mena Quintero
* federico@nuclecu.unam.mx
*/
#include "config.h"
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/types.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
......@@ -198,7 +198,6 @@ gegl_datafiles_read_directories (const gchar *path_str,
file_data.atime = filestat.st_atime;
file_data.mtime = filestat.st_mtime;
file_data.ctime = filestat.st_ctime;
if (! err)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment