Commit e43056a0 authored by Tobias Ellinghaus's avatar Tobias Ellinghaus

Guard headers with "pragma once"

- It looks cleaner
- We had a couple of guard defines of the __FOO_H__ style which is
technically not to be used
parent b37b1a97
......@@ -17,8 +17,7 @@
along with darktable. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef DT_BAUHAUS_H
#define DT_BAUHAUS_H
#pragma once
#include "common/debug.h"
#include "control/control.h"
......@@ -290,7 +289,6 @@ void dt_bauhaus_vimkey_exec(const char *input);
// give autocomplete suggestions
GList *dt_bauhaus_vimkey_complete(const char *input);
#endif
// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.sh
// vim: shiftwidth=2 expandtab tabstop=2 cindent
// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
......@@ -16,8 +16,7 @@
along with darktable. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef DT_COMMON_BILATERAL_H
#define DT_COMMON_BILATERAL_H
#pragma once
#include <stddef.h> // for size_t
......@@ -65,8 +64,6 @@ void dt_bilateral_slice_to_output(const dt_bilateral_t *const b, const float *co
void dt_bilateral_free(dt_bilateral_t *b);
#endif
// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.sh
// vim: shiftwidth=2 expandtab tabstop=2 cindent
// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
......@@ -16,8 +16,7 @@
along with darktable. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef DT_COMMON_BILATERAL_CL_H
#define DT_COMMON_BILATERAL_CL_H
#pragma once
#ifdef HAVE_OPENCL
......@@ -62,8 +61,7 @@ cl_int dt_bilateral_slice_cl(dt_bilateral_cl_t *b, cl_mem in, cl_mem out, const
void dt_bilateral_free_cl_global(dt_bilateral_cl_global_t *b);
#endif
#endif
#endif // HAVE_OPENCL
// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.sh
// vim: shiftwidth=2 expandtab tabstop=2 cindent
......
......@@ -16,8 +16,7 @@
along with darktable. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef DT_COMMON_CACHE_H
#define DT_COMMON_CACHE_H
#pragma once
#include "common/dtpthread.h"
#include <glib.h>
......@@ -99,7 +98,6 @@ int dt_cache_for_all(dt_cache_t *cache,
int (*process)(const uint32_t key, const void *data, void *user_data),
void *user_data);
#endif
// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.sh
// vim: shiftwidth=2 expandtab tabstop=2 cindent
// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
......@@ -16,14 +16,11 @@
along with darktable. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __CALCULATOR_H__
#define __CALCULATOR_H__
#pragma once
/** solve the mathematical expression in formula, the only allowed variable is 'x' */
float dt_calculator_solve(float x, const char *formula);
#endif // __CALCULATOR_H__
// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.sh
// vim: shiftwidth=2 expandtab tabstop=2 cindent
// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
......@@ -16,8 +16,7 @@
along with darktable. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef DT_CAMERA_CONTROL_H
#define DT_CAMERA_CONTROL_H
#pragma once
#include "common/darktable.h"
......@@ -260,8 +259,6 @@ const char *dt_camctl_camera_property_get_next_choice(const dt_camctl_t *c, cons
void dt_camctl_camera_build_property_menu(const dt_camctl_t *c, const dt_camera_t *cam, GtkMenu **menu,
GCallback item_activate, gpointer user_data);
#endif
// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.sh
// vim: shiftwidth=2 expandtab tabstop=2 cindent
// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
......@@ -15,8 +15,8 @@
You should have received a copy of the GNU General Public License
along with darktable. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef DT_COLLECTION_H
#define DT_COLLECTION_H
#pragma once
#include <glib.h>
#include <inttypes.h>
......@@ -213,7 +213,6 @@ void dt_collection_split_operator_number(const gchar *input, char **number1, cha
void dt_collection_split_operator_datetime(const gchar *input, char **number1, char **number2,
char **operator);
#endif
// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.sh
// vim: shiftwidth=2 expandtab tabstop=2 cindent
// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
......@@ -16,8 +16,7 @@
along with darktable. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef DT_COMMON_COLOR_PICKER_H
#define DT_COMMON_COLOR_PICKER_H
#pragma once
struct dt_iop_buffer_dsc_t;
struct dt_iop_roi_t;
......@@ -26,8 +25,6 @@ void dt_color_picker_helper(const struct dt_iop_buffer_dsc_t *dsc, const float *
const struct dt_iop_roi_t *roi, const int *const box, float *const picked_color,
float *const picked_color_min, float *const picked_color_max);
#endif
// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.sh
// vim: shiftwidth=2 expandtab tabstop=2 cindent
// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
#ifndef DT_COMMON_COLORLABELS_H
#define DT_COMMON_COLORLABELS_H
#pragma once
#include "common/darktable.h"
#include <gtk/gtk.h>
......@@ -36,7 +35,6 @@ int dt_colorlabels_check_label(const int imgid, const int color);
gboolean dt_colorlabels_key_accel_callback(GtkAccelGroup *accel_group, GObject *acceleratable, guint keyval,
GdkModifierType modifier, gpointer data);
#endif
// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.sh
// vim: shiftwidth=2 expandtab tabstop=2 cindent
// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
......@@ -15,8 +15,8 @@
You should have received a copy of the GNU General Public License
along with darktable. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef DT_COLORSPACES_H
#define DT_COLORSPACES_H
#pragma once
#include "common/darktable.h"
#include <lcms2.h>
......@@ -197,7 +197,6 @@ void dt_colorspaces_cygm_to_rgb(float *out, int num, double CAM_to_RGB[3][4]);
/** convert RGB buffer to CYGM */
void dt_colorspaces_rgb_to_cygm(float *out, int num, double RGB_to_CAM[4][3]);
#endif
// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.sh
// vim: shiftwidth=2 expandtab tabstop=2 cindent
// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
......@@ -16,8 +16,7 @@
along with darktable. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef DT_COMMON_CPUID_H
#define DT_COMMON_CPUID_H
#pragma once
#include <glib.h>
......@@ -39,8 +38,6 @@ typedef enum dt_cpu_flags_t
dt_cpu_flags_t dt_detect_cpu_features();
#endif
// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.sh
// vim: shiftwidth=2 expandtab tabstop=2 cindent
// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
......@@ -16,8 +16,7 @@
along with darktable. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef DT_CUPS_PRINT_H
#define DT_CUPS_PRINT_H
#pragma once
#include <common/colorspaces.h>
......@@ -94,7 +93,6 @@ void dt_get_print_layout(const int32_t imgid, const dt_print_info_t *prt, const
int32_t *px, int32_t *py, int32_t *pwidth, int32_t *pheight,
int32_t *ax, int32_t *ay, int32_t *awidth, int32_t *aheight,
int32_t *ix, int32_t *iy, int32_t *iwidth, int32_t *iheight);
#endif
// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.sh
// vim: shiftwidth=2 expandtab tabstop=2 cindent
......
......@@ -19,8 +19,7 @@
Copyright 2004-2008 by Shawn Freeman, Udi Fuchs
*/
#ifndef DT_COMMON_CURVE_TOOLS_H
#define DT_COMMON_CURVE_TOOLS_H
#pragma once
// Curve Types
#define CUBIC_SPLINE 0
......@@ -127,7 +126,6 @@ float *interpolate_set(int n, float x[], float y[], unsigned int type);
*******************************************************************/
float interpolate_val(int n, float x[], float xval, float y[], float tangents[], unsigned int type);
#endif
// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.sh
// vim: shiftwidth=2 expandtab tabstop=2 cindent
// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
......@@ -16,8 +16,8 @@
You should have received a copy of the GNU General Public License
along with darktable. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef DARKTABLE_H
#define DARKTABLE_H
#pragma once
// just to be sure. the build system should set this for us already:
#if defined __DragonFly__ || defined __FreeBSD__ || defined __NetBSD__ || defined __OpenBSD__
......@@ -527,8 +527,6 @@ static inline void dt_unreachable_codepath_with_caller(const char *description,
*/
#define DT_MAX_PATH_FOR_PARAMS 4096
#endif
// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.sh
// vim: shiftwidth=2 expandtab tabstop=2 cindent
// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
......@@ -16,8 +16,7 @@
along with darktable. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef DATABASE_H
#define DATABASE_H
#pragma once
#include <glib.h>
......@@ -33,7 +32,7 @@ struct sqlite3 *dt_database_get(const struct dt_database_t *);
const gchar *dt_database_get_path(const struct dt_database_t *db);
/** test if database was already locked by another instance */
gboolean dt_database_get_lock_acquired(const struct dt_database_t *db);
#endif
// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.sh
// vim: shiftwidth=2 expandtab tabstop=2 cindent
// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
......@@ -16,8 +16,7 @@
along with darktable. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __DBUS_H__
#define __DBUS_H__
#pragma once
#include <glib.h>
......@@ -31,8 +30,6 @@ void dt_dbus_destroy(const struct dt_dbus_t *);
* running */
gboolean dt_dbus_connected(const struct dt_dbus_t *);
#endif // __DBUS_H__
// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.sh
// vim: shiftwidth=2 expandtab tabstop=2 cindent
// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
......@@ -17,8 +17,7 @@
along with darktable. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __DEBUG_H__
#define __DEBUG_H__
#pragma once
#include <sqlite3.h>
......@@ -85,7 +84,7 @@
#define DT_DEBUG_SQLITE3_BIND_BLOB(a, b, c, d, e) __DT_DEBUG_ASSERT__(sqlite3_bind_blob(a, b, c, d, e))
#define DT_DEBUG_SQLITE3_CLEAR_BINDINGS(a) __DT_DEBUG_ASSERT__(sqlite3_clear_bindings(a))
#define DT_DEBUG_SQLITE3_RESET(a) __DT_DEBUG_ASSERT__(sqlite3_reset(a))
#endif
// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.sh
// vim: shiftwidth=2 expandtab tabstop=2 cindent
// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
......@@ -16,8 +16,7 @@
along with darktable. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef DT_DLOPENCL_H
#define DT_DLOPENCL_H
#pragma once
#ifdef HAVE_OPENCL
......@@ -233,8 +232,7 @@ void dt_dlopencl_noop(void);
/* dynamically load OpenCL library and bind needed functions */
dt_dlopencl_t *dt_dlopencl_init(const char *);
#endif
#endif
#endif // HAVE_OPENCL
// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.sh
// vim: shiftwidth=2 expandtab tabstop=2 cindent
......
......@@ -17,8 +17,7 @@
along with darktable. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef DT_PTHREAD_H_
#define DT_PTHREAD_H_
#pragma once
#include <assert.h>
#include <errno.h>
......@@ -317,8 +316,6 @@ static inline int dt_pthread_rwlock_trywrlock_with_caller(dt_pthread_rwlock_t *r
int dt_pthread_create(pthread_t *thread, void *(*start_routine)(void *), void *arg);
#endif
// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.sh
// vim: shiftwidth=2 expandtab tabstop=2 cindent
// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
......@@ -16,8 +16,7 @@
along with darktable. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef DT_DYNLOAD_H
#define DT_DYNLOAD_H
#pragma once
#ifdef HAVE_OPENCL
......@@ -44,9 +43,7 @@ dt_gmodule_t *dt_gmodule_open(const char *);
/* get pointer to function */
int dt_gmodule_symbol(dt_gmodule_t *, const char *, void (**)(void));
#endif
#endif
#endif // HAVE_OPENCL
// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.sh
// vim: shiftwidth=2 expandtab tabstop=2 cindent
......
......@@ -16,8 +16,7 @@
along with darktable. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef DT_EXIF_H
#define DT_EXIF_H
#pragma once
#include "common/colorspaces.h"
#include "common/image.h"
......@@ -76,7 +75,6 @@ gboolean dt_exif_get_datetime_taken(const uint8_t *data, size_t size, time_t *da
}
#endif
#endif
// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.sh
// vim: shiftwidth=2 expandtab tabstop=2 cindent
// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
......@@ -16,8 +16,7 @@
along with darktable. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __FILE_LOCATION_H__
#define __FILE_LOCATION_H__
#pragma once
#include <gtk/gtk.h>
#include <string.h>
......@@ -47,7 +46,6 @@ void dt_loc_get_user_cache_dir(char *cachedir, size_t bufsize);
char *dt_loc_find_install_dir(const char *suffix, const char *searchname);
#endif
#endif
// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.sh
// vim: shiftwidth=2 expandtab tabstop=2 cindent
// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
......@@ -15,8 +15,8 @@
You should have received a copy of the GNU General Public License
along with darktable. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef DT_FILM_H
#define DT_FILM_H
#pragma once
#include "common/darktable.h"
#include "common/dtpthread.h"
......@@ -64,7 +64,6 @@ void dt_film_remove_empty();
/** gets all image ids in film. the returned GList has to be freed with g_list_free(). */
GList *dt_film_get_image_ids(const int filmid);
#endif
// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.sh
// vim: shiftwidth=2 expandtab tabstop=2 cindent
// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
......@@ -15,8 +15,7 @@
along with darktable. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef DT_COMMON_FOCUS_H
#define DT_COMMON_FOCUS_H
#pragma once
#include "common/image_cache.h"
......@@ -347,7 +346,7 @@ static void dt_focus_draw_clusters(cairo_t *cr, int width, int height, int imgid
#undef CHANNEL
#undef gbuf
#undef FOCUS_THRS
#endif
// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.sh
// vim: shiftwidth=2 expandtab tabstop=2 cindent
// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
......@@ -15,8 +15,8 @@
You should have received a copy of the GNU General Public License
along with darktable. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef DT_FSWATCH_H
#define DT_FSWATCH_H
#pragma once
#include "common/darktable.h"
#include "common/dtpthread.h"
......@@ -49,7 +49,6 @@ void dt_fswatch_add(const dt_fswatch_t *fswatch, dt_fswatch_type_t type, void *d
/** removes an watch of type and assigned data. */
void dt_fswatch_remove(const dt_fswatch_t *fswatch, dt_fswatch_type_t type, void *data);
#endif
// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.sh
// vim: shiftwidth=2 expandtab tabstop=2 cindent
// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
......@@ -16,8 +16,7 @@
along with darktable. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef DT_COMMON_GAUSSIAN_H
#define DT_COMMON_GAUSSIAN_H
#pragma once
#include "common/opencl.h"
#include <assert.h>
......@@ -90,7 +89,6 @@ cl_int dt_gaussian_blur_cl(dt_gaussian_cl_t *g, cl_mem dev_in, cl_mem dev_out);
void dt_gaussian_free_cl(dt_gaussian_cl_t *g);
#endif
#endif
// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.sh
// vim: shiftwidth=2 expandtab tabstop=2 cindent
// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
......@@ -15,8 +15,8 @@
* You should have received a copy of the GNU General Public License
* along with darktable. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __GEO_H__
#define __GEO_H__
#pragma once
typedef enum dt_geo_map_display_t
{
......@@ -31,7 +31,6 @@ typedef struct dt_geo_map_display_point_t
float lat, lon;
} dt_geo_map_display_point_t;
#endif // __GEO_H__
// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.sh
// vim: shiftwidth=2 expandtab tabstop=2 cindent
// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
......@@ -16,8 +16,7 @@
along with darktable. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _GPX_H
#define _GPX_H
#pragma once
#include <glib.h>
......@@ -32,7 +31,6 @@ void dt_gpx_destroy(struct dt_gpx_t *);
and closest record of lon,lat is filled */
gboolean dt_gpx_get_location(struct dt_gpx_t *, GTimeVal *timestamp, gdouble *lon, gdouble *lat, gdouble *ele);
#endif
// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.sh
// vim: shiftwidth=2 expandtab tabstop=2 cindent
// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
......@@ -3,8 +3,7 @@
According to http://git.gnome.org/browse/gobject-introspection/tree/COPYING it's licensed under the LGPLv2+.
*/
#ifndef __G_REALPATH_H__
#define __G_REALPATH_H__
#pragma once
#include <stdlib.h>
......@@ -54,8 +53,6 @@ static inline gchar *g_realpath(const char *path)
#endif
}
#endif
// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.sh
// vim: shiftwidth=2 expandtab tabstop=2 cindent
// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
......@@ -16,8 +16,7 @@
along with darktable. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __GROUPING_H__
#define __GROUPING_H__
#pragma once
/** add an image to a group */
void dt_grouping_add_to_group(int group_id, int image_id);
......@@ -28,8 +27,6 @@ int dt_grouping_remove_from_group(int image_id);
/** make an image the representative of the group it is in. returns the new group_id. */
int dt_grouping_change_representative(int image_id);
#endif
// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.sh
// vim: shiftwidth=2 expandtab tabstop=2 cindent
// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
......@@ -16,8 +16,7 @@
along with darktable. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef DT_HEAP_H
#define DT_HEAP_H
#pragma once
// simple implementation of a heap/priority queue, using uint64_t as key and
// float values to sort the elements.
......@@ -126,7 +125,6 @@ void heap_remove(heap_t *h, uint64_t *key, float *val)
}
}
#endif
// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.sh
// vim: shiftwidth=2 expandtab tabstop=2 cindent
// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
......@@ -16,8 +16,7 @@
along with darktable. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef DT_COMMON_HISTOGRAM_H
#define DT_COMMON_HISTOGRAM_H
#pragma once
#include <stdint.h>
......@@ -53,8 +52,6 @@ void dt_histogram_helper(dt_dev_histogram_collection_params_t *histogram_params,
void dt_histogram_max_helper(const dt_dev_histogram_stats_t *const histogram_stats,
dt_iop_colorspace_type_t cst, uint32_t **histogram, uint32_t *histogram_max);
#endif
// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.sh
// vim: shiftwidth=2 expandtab tabstop=2 cindent
// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
......@@ -16,8 +16,8 @@
along with darktable. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef DT_HISTORY_H
#define DT_HISTORY_H
#pragma once
#include <glib.h>
#include <inttypes.h>
#include <sqlite3.h>
......@@ -55,8 +55,6 @@ GList *dt_history_get_items(int32_t imgid, gboolean enabled);
/** get list of history items for image as a nice string */
char *dt_history_get_items_as_string(int32_t imgid);
#endif
// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.sh
// vim: shiftwidth=2 expandtab tabstop=2 cindent
// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
......@@ -16,8 +16,7 @@
along with darktable. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __HTTP_SERVER__
#define __HTTP_SERVER__
#pragma once
#include <libsoup/soup.h>
......@@ -41,10 +40,6 @@ dt_http_server_t *dt_http_server_create(const int *ports, const int n_ports, con
*/
void dt_http_server_kill(dt_http_server_t *server);
#endif // __HTTP_SERVER__
// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.sh
// vim: shiftwidth=2 expandtab tabstop=2 cindent
// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
......@@ -15,8 +15,9 @@
You should have received a copy of the GNU General Public License
along with darktable. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef DT_IMAGE_H
#define DT_IMAGE_H
#pragma once
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
......@@ -291,7 +292,6 @@ char *dt_image_get_audio_path_from_path(const char *image_path);
char *dt_image_get_text_path(const int32_t imgid);
char *dt_image_get_text_path_from_path(const char *image_path);
#endif
// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.sh
// vim: shiftwidth=2 expandtab tabstop=2 cindent
// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
......@@ -15,8 +15,8 @@
You should have received a copy of the GNU General Public License
along with darktable. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef DT_IMAGE_CACHE_H
#define DT_IMAGE_CACHE_H
#pragma once
#include "common/cache.h"
#include "common/image.h"
......@@ -66,7 +66,6 @@ void dt_image_cache_write_release(dt_image_cache_t *cache, dt_image_t *img, dt_i
// remove the image from the cache
void dt_image_cache_remove(dt_image_cache_t *cache, const uint32_t imgid);
#endif
// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.sh
// vim: shiftwidth=2 expandtab tabstop=2 cindent
// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
......@@ -15,7 +15,9 @@
You should have received a copy of the GNU General Public License
along with darktable. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef DT_IMAGE_COMPRESSION
#pragma once
#include <inttypes.h>
/** K. Roimela, T. Aarnio and J. Itäranta. High Dynamic Range Texture Compression. Proceedings of SIGGRAPH
......@@ -23,7 +25,6 @@
void dt_image_compress(const float *in, uint8_t *out, const int32_t width, const int32_t height);
void dt_image_uncompress(const uint8_t *in, float *out, const int32_t width, const int32_t height);
#endif
// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.sh
// vim: shiftwidth=2 expandtab tabstop=2 cindent
// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
......@@ -15,8 +15,8 @@
You should have received a copy of the GNU General Public License
along with darktable. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef DT_IMAGE_IO_H
#define DT_IMAGE_IO_H
#pragma once
#include "common/image.h"
#include "common/imageio_module.h"
......@@ -99,7 +99,7 @@ void dt_imageio_flip_buffers_ui8_to_float(float *out, const uint8_t *in, const f
// allocate buffer and return 0 on success along with largest jpg thumbnail from raw.
int dt_imageio_large_thumbnail(const char *filename, uint8_t **buffer, int32_t *width, int32_t *height,
dt_colorspaces_color_profile_type_t *color_space);