I did my best to exempt some of the bigger aligned blocks from the reformatting using the /* clang-format off */ and /* clang-format on */ tags. Probably some that shouldn't have been formatted were anyway; if you encounter them, please fix. The clang-format tags were left in on the basis that it's much easier to prune those out later than to put them back in, and it means that, modulo my custom version of clang-format, I should be able to run clang-format on the source tree again without changing anything, now that Pat has fixed the VA_DECL issues.
44 lines
1.2 KiB
C
44 lines
1.2 KiB
C
/* NetHack 3.6 gnglyph.h $NHDT-Date$ $NHDT-Branch$:$NHDT-Revision$ */
|
|
/* NetHack 3.6 gnglyph.h $Date: 2009/05/06 10:57:30 $ $Revision: 1.4 $ */
|
|
/* SCCS Id: @(#)gnglyph.h 3.5 2000/07/16 */
|
|
/* Copyright (C) 1998 by Erik Andersen <andersee@debian.org> */
|
|
/* NetHack may be freely redistributed. See license for details. */
|
|
|
|
#ifndef GnomeHackGlyph_h
|
|
#define GnomeHackGlyph_h
|
|
|
|
#include "config.h"
|
|
#include "global.h"
|
|
|
|
/* the prototypes in system headers contain useless argument names
|
|
that trigger spurious warnings if gcc's `-Wshadow' option is used */
|
|
#undef index
|
|
#define index _hide_index_
|
|
#define time _hide_time_
|
|
|
|
#include <gdk_imlib.h>
|
|
#include <gdk/gdk.h>
|
|
|
|
#undef index
|
|
#define index strchr
|
|
#undef time
|
|
|
|
extern short glyph2tile[]; /* From tile.c */
|
|
|
|
typedef struct {
|
|
GdkImlibImage *im;
|
|
int count;
|
|
int width;
|
|
int height;
|
|
} GHackGlyphs;
|
|
|
|
extern int ghack_init_glyphs(const char *);
|
|
extern void ghack_free_glyphs(void);
|
|
extern void ghack_dispose_glyphs(void);
|
|
extern int ghack_glyph_count(void);
|
|
extern GdkImlibImage *ghack_image_from_glyph(int, gboolean);
|
|
extern int ghack_glyph_height(void);
|
|
extern int ghack_glyph_width(void);
|
|
|
|
#endif /* GnomeHackGlyph_h */
|