Commit graph

13 commits

Author SHA1 Message Date
Bill Kendrick
cc05925d9e Re-ran indent on all .c & .h source code files
Like so --
  find . -name "*.c" -or -name "*.h" -exec  indent -nbfda -npcs -npsl -bli0 --no-tabs {} \;

The `indent` invocation differs from the last one noted in
CHANGES.txt (from 2006!?), in that I've added "--no-tabs",
to ensure indents are all space-based.
2022-09-15 00:14:20 -07:00
Bill Kendrick
e87f36d9a7 Fix Haiku "unable to open saved files" bug
Appling patch from a92961004d
that fixes https://github.com/haikuports/haikuports/issues/3045
2020-06-22 23:04:13 -07:00
Bill Kendrick
df49986fab Add a FALL_THROUGH macro to compiler.h
Older gcc's don't support `__attribute__ ((fallthrough))`
(see https://sourceforge.net/u/begasus/tuxpaint/ci/e5c3cdfcf5e16a9b0fc3e7766bfea1d9c326b3ae/
"Haiku Fixes" by Luc), so adding a new macro to compiler.h
that is defined as "((void)0)" on older compilers.
2019-09-12 20:27:03 -07:00
Bill Kendrick
b0c1546b1b A patch to enable compiling on latest mingw env.
Contributed by TOYAMA Shin-ichi
2017-12-30 10:53:08 -08:00
Bill Kendrick
18b855169b indent compiler.h
Replaced tabs with spaces
2017-10-15 10:50:05 -07:00
Scott McCreary
17dfb423b8 Avoid redefining min and max on Haiku 2013-11-04 19:17:33 +00:00
William Kendrick
7b31b7549d Patch collection from Volker Grabsch to help Tux Paint cross-compile for Windows:
* Solve the 'FIXME: "finddir" ...' (The trick is to use "=" instead of ":=". That way, $(beos_PREFIX) will only be evaluated when it is actually used.)
* include "shlwapi.h" instead of "Shlwapi.h" (Otherwise, compiling for Windows will fail on a case sensitive file system. (e.g. a Unix file system when cross compiling))
* use FILENAME_MAX instead of NAME_MAX (FILENAME_MAX is more portable than NAME_MAX. Also, recent MinGW versions don't support NAME_MAX anymore.)
* Exposing font_thread_aborted via extern [tweak to Volker's patch which removed a logic test, which is probably not what we want]
* include parse.h (and thus compiler.h) after <stdio.h> (This ensures that the perror() macro of compiler.h won't confuse the perror() function declaration of <stdio.h>.)
* fix another compiling error about undefined variables (The tuxpaint.c uses printcommand/altprintcommand/papersize even when they aren't defined, i.e. when libpaper is not used. This patch solves the issue by using "#ifdef PAPER_H")
* call show_available_papersizes() only when libpaper is used
* permit cross compiling by using Make variables instead of hard-coded tools

Documented scottmc's Haiku improvements.
2010-02-25 07:06:13 +00:00
Albert Cahalan
f296909c75 have to reset y_nudge if wiping out lang/locale 2009-11-21 11:30:19 +00:00
William Kendrick
7716a05281 Ran source code through "indent -nbfda -npcs -npsl -bli0". 2006-08-27 21:00:52 +00:00
John Popplewell
2982961f38 Various fixes for win32, mostly as a result of the splits. 2006-02-20 04:12:27 +00:00
William Kendrick
ce30f735f1 Moved some more compiler/OS-specific stuff to compiler.h 2006-02-19 06:22:26 +00:00
William Kendrick
a9511eda41 * Added comments/copyright/license-notes to top of compiler.h.
* Moved more compiler-specific stuff to compiler.h
2006-02-18 08:49:16 +00:00
William Kendrick
3b5f10c4fe Split out some compiler-version-specific definitions into "compiler.h".
Split out 'getpixel' and 'putpixel' family of functions into "pixels.c" and "pixels.h" source files.
2006-02-18 08:42:23 +00:00