Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to v4.2.3.1 #6

Open
wants to merge 34 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
5dd3f06
Bumped version to 4.2.3 (SVN)
Jul 22, 2007
b58c261
Modify zipup.sh to handle filenames with spaces in the Allegro tree p…
Jul 24, 2007
f16a862
typo with allegro_errno
kazzmir Jul 31, 2007
5b7bf84
renamed alex to icon, just in the unlikely case someone names a game …
allefant Aug 4, 2007
d73336a
forgot one occurence of alex
allefant Aug 4, 2007
f49b02f
Clarified that set_config_file() does not search for the given config…
Aug 6, 2007
954f817
David A. Capello made key_shifts work properly on Windows for Control…
Sep 11, 2007
000ef59
AJ added detection for SSSE3, SSE4.1 and SSE4.2
Sep 11, 2007
f18297e
makefile.in fixes for parallel make builds and asmdef.inc
Sep 19, 2007
d36e376
Milan Mimica made the MinGW and MSVC makefiles add the suffix "_c" on…
Nov 3, 2007
53d7e9e
David A. Capello fixed a problem where the NumLock, ScrollLock and Ca…
Nov 3, 2007
2b752ea
Frédéric Lopez sent a replacement for a broken URL.
Nov 30, 2007
b8283a1
Matthew Leverton fixed a problem with filename encoding and the SYSTE…
allefant Dec 1, 2007
886ffa6
Re-add set_file_encoding and get_file_encoding for DLL compatibility (?)
allefant Dec 6, 2007
70a30c5
get_filename_encoding doesnt take any arguments
kazzmir Dec 12, 2007
dc5757a
Peter De Wachter made the ALSA driver work for hardware which does no…
allefant Jan 27, 2008
5e85ea4
Fixed a bug in the font routines
Apr 6, 2008
25e0e4a
Made a small change to the Windows mouse driver to add support for to…
Jul 17, 2008
4bad619
Delete lines that caused problems with autoconf 2.63 (and probably so…
Sep 28, 2009
a70ee34
Fixed buffer overflow in exgui.
Sep 28, 2009
b1597bd
Only call _al_detect_filename_encoding() at init on Unix and Windows.
Sep 28, 2009
0fa4f3c
Don't call deprecated ALSA function snd_pcm_sw_params_set_xfer_align().
Sep 29, 2009
6319337
Fixed some signedness warnings on newer mingw gcc.
Sep 29, 2009
d824269
Update dllsyms.lst for 4.2.3 RC1.
Sep 29, 2009
f0fb185
Document set_filename_encoding, get_filename_encoding sort of.
Oct 4, 2009
e8c6e47
Updates changes and thanks for 4.2.3.
Oct 4, 2009
2b6f242
Bump version number to 4.2.3.
Oct 4, 2009
444bbe7
Quick hack to exflame otherwise on Linux/X11 it never reacts to a key…
Oct 4, 2009
0d693dc
Bumped version to 4.2.4 (SVN)
Oct 4, 2009
459687f
Francis Devereux made the OS X port compile on Mac OS X 10.6.
Oct 29, 2009
67af772
Allow mkunixdists.sh to read version number from environment variable.
Oct 29, 2009
6c124d9
Updates changes and thanks for 4.2.3.1.
Oct 29, 2009
dd813b9
Bump version number to 4.2.3.
Oct 29, 2009
af0720c
Update readme to v4.2.3.1-xc
superjamie Sep 9, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 4 additions & 10 deletions aclocal.m4
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ dnl
dnl Variables:
dnl allegro_sv_procfs=(yes|no)
dnl
AC_MSG_CHECKING(for System V sys/procfs)
AC_DEFUN(ALLEGRO_ACTEST_SV_PROCFS, [
AC_CHECK_HEADER(sys/procfs.h, [
AC_TRY_COMPILE(
Expand All @@ -209,15 +208,13 @@ AC_DEFUN(ALLEGRO_ACTEST_SV_PROCFS, [
[allegro_sv_procfs=no]
])
])
AC_MSG_RESULT($allegro_sv_procfs)

dnl
dnl Test if sys/procfs.h tells us argc/argv.
dnl
dnl Variables:
dnl allegro_procfs_argcv=(yes|no)
dnl
AC_MSG_CHECKING(if sys/procfs.h tells us argc/argv)
AC_DEFUN(ALLEGRO_ACTEST_PROCFS_ARGCV, [
AC_TRY_COMPILE(
[#include <sys/procfs.h>],
Expand All @@ -226,21 +223,18 @@ AC_DEFUN(ALLEGRO_ACTEST_PROCFS_ARGCV, [
[allegro_procfs_argcv=no]
)
])
AC_MSG_RESULT($allegro_procfs_argcv)

dnl
dnl Test for getexecname() on Solaris
dnl
dnl Variables:
dnl allegro_sys_getexecname=(yes|no)
dnl
AC_MSG_CHECKING(for getexecname)
AC_DEFUN(ALLEGRO_ACTEST_SYS_GETEXECNAME,
[AC_CHECK_LIB(c, getexecname,
AC_DEFUN(ALLEGRO_ACTEST_SYS_GETEXECNAME, [
AC_CHECK_LIB(c, getexecname,
[allegro_sys_getexecname=yes],
[allegro_sys_getexecname=no])]
)
AC_MSG_RESULT($allegro_sys_getexecname)
[allegro_sys_getexecname=no])
])

dnl
dnl Test for X-Windows support.
Expand Down
27 changes: 17 additions & 10 deletions docs/src/allegro._tx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
@document_title=Allegro Manual
@html_footer=Back to contents
@rtfh=Allegro - a game programming library
@manh="version 4.2.2 (SVN)" "Allegro" "Allegro manual"
@manh="version 4.2.3" "Allegro" "Allegro manual"
@mans=#include <allegro.h>
@man_shortdesc_force1=allegro
@man_shortdesc_force2=Allegro game programming library.
Expand Down Expand Up @@ -52,12 +52,12 @@
\ \_\ \_\/\____\/\____\ \____\ \____ \ \_\\ \____/
\/_/\/_/\/____/\/____/\/____/\/___L\ \/_/ \/___/
/\____/
\_/__/ Version 4.2.2 (SVN)
\_/__/ Version 4.2.3


A game programming library.

By Shawn Hargreaves, Nov 26, 2006.
By Shawn Hargreaves, Oct 29, 2009.

See the AUTHORS file for a
complete list of contributors.
Expand Down Expand Up @@ -1849,13 +1849,10 @@ your game.
@xref Standard config variables, set_config_string, get_config_string
@eref exconfig
@shortdesc Sets the configuration file.
Sets the configuration file to be used by all subsequent config
functions. If you don't call this function, Allegro will use the default
`allegro.cfg' file, looking first in the same directory as your program
and then in the directory pointed to by the ALLEGRO environment variable
and the usual platform-specific paths for configuration files. For example
it will look for `/etc/allegro.cfg' under Unix.

Sets the configuration file to be used by all subsequent config
functions. (Allegro will not search for this file in other locations
as it does with allegro.cfg at the time of initialization.)

All pointers returned by previous calls to get_config_string() and
other related functions are invalidated when you call this function!
You can call this function before install_allegro() to change the
Expand Down Expand Up @@ -10303,6 +10300,16 @@ any character, but only one).
or `/' on to it (depending on the platform). Note: ignore the function
name, it's out of date.

@@void @set_filename_encoding(int encoding)
@xref get_filename_encoding
@shortdesc Sets the encoding to use for filenames.
Sets the encoding to use for filenames. By default, UTF-8 is assumed.

@@int @get_filename_encoding(void)
@xref set_filename_encoding
@shortdesc Returns the encoding currently assumed for filenames.
Returns the encoding currently assumed for filenames.

@@int @file_exists(const char *filename, int attrib, int *aret);
@xref exists, file_size_ex, file_time
@shortdesc Tells if a file exists.
Expand Down
4 changes: 4 additions & 0 deletions docs/src/build/mingw32._tx
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,10 @@ Using Allegro
the statically linked Allegro libraries are post-fixed with '<tt>_s</tt>' so that
you will link with either <tt>liballeg_s.a</tt>, <tt>liballd_s.a</tt> or <tt>liballp_s.a</tt>.

When using a no-ASM library (built with <tt>ALLEGRO_USE_C</tt> option), you must define the
preprocessor symbol <tt>ALLEGRO_NO_ASM</tt> before including any of the Allegro headers. The
names of the no-ASM libraries are post-fixed with '<tt>_c</tt>'.

Don't forget that you need to use the <code>END_OF_MAIN()</code> macro right after
your <code>main()</code> function.

Expand Down
4 changes: 4 additions & 0 deletions docs/src/build/msvc._tx
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,10 @@ Using Allegro
alleg_s_crt.lib - statically linked optimised library
with the static C runtime
<endblock>
All above library configurations could be built with <tt>ALLEGRO_USE_C</tt> option which
would add a "_c" suffix to them. When linking your program to such a library, you must define
the preprocessor symbol <tt>ALLEGRO_NO_ASM</tt> before including any of the Allegro headers.

When using a statically linked library, you must define the preprocessor
symbol <tt>ALLEGRO_STATICLINK</tt> before including any of the Allegro headers and
link your program against Allegro and the main Win32/DirectX libraries
Expand Down
38 changes: 38 additions & 0 deletions docs/src/changes._tx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,44 @@
@document_title=Allegro Changes
@html_spaced_list_bullet

@heading
Changes from 4.2.3 to 4.2.3.1 (October 2009)
<ul><li>
Francis Devereux made the OS X port compile on Mac OS X 10.6.
</ul>

@heading
Changes from 4.2.2 to 4.2.3 (October 2009)
<ul><li>
Fix fnstsw compile bug with newer binutils.
<li>
Trent Gamblin made a small change to the Windows mouse driver to add
support for touchscreens (at least 1 of them).
<li>
Peter De Wachter made the ALSA driver work for hardware which does not
support unsigned samples.
<li>
Matthew Leverton fixed a problem with filename encoding and the SYSTEM_NONE
driver. Added set_filename_encoding(), get_filename_encoding().
<li>
Milan Mimica made the MinGW and MSVC makefiles add the suffix "_c" onto
non-asm builds, and clarified that user programs linking against the
non-asm libraries must also defined ALLEGRO_USE_C. Mixing calling
conventions causes segfaults when functions are inlined.
<li>
AJ added detection for SSSE3, SSE4.1 and SSE4.2
<li>
David A. Capello made key_shifts work properly on Windows for Control,
Alt, and Shift.
<li>
Clarified that set_config_file() does not search for the given config file
in other locations, as Allegro does with allegro.cfg at initialization.
<li>
Fixed buffer overflow in exgui.
<li>
Fixed problems with newer versions of autoconf.
</ul>

@heading
Changes from 4.2.2 RC1 to 4.2.2 (July 2007)
<ul><li>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/faq._tx
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ General problems
@@ How can I convert the documentation into Windows Help format?

You need to download the makertf conversion utility
(<link>ftp://ftp.coast.net/Coast/win3/winhelp/mkrtf104.zip</a>), and the Windows
(<link>http://www.giffer.com/public/win/pwflemgt/Files/MKRTF104.ZIP</a>), and the Windows
Help compiler (<link>ftp://ftp.microsoft.com/Softlib/MSLFILES/HC505.EXE</a>).
Make a temporary directory, copy the <code>allegro.txi</code> file from the
<code>allegro/docs</code> dir, and run the commands <tt>makertf --no-warn allegro.txi
Expand Down
4 changes: 2 additions & 2 deletions docs/src/readme._tx
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@
\ \_\ \_\/\____\/\____\ \____\ \____ \ \_\\ \____/
\/_/\/_/\/____/\/____/\/____/\/___L\ \/_/ \/___/
/\____/
\_/__/ Version 4.2.2 (SVN)
\_/__/ Version 4.2.3


A game programming library.

By Shawn Hargreaves, Nov 26, 2006.
By Shawn Hargreaves, Oct 29, 2009.

See the AUTHORS file for a
complete list of contributors.
Expand Down
7 changes: 7 additions & 0 deletions docs/src/thanks._tx
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,9 @@ Contributors
Fabrizio Gennari (<email>[email protected]</a>).<br>
Contributed the DB9 and TurboGraFXoystick drivers.

Francis Devereux.<br>
Made the OS X port compile on Mac OS X 10.6.

Francisco Pires (<email>[email protected]</a>).<br>
Added an FPS counter and an option to disable vsync to the excamera
example.
Expand Down Expand Up @@ -833,6 +836,10 @@ Contributors
mapping, optimised the alpha sprite blending routines and added non-ASCII
space recognition to uisspace().

Peter De Wachter.<br>
Made the ALSA driver work for hardware which does not support unsigned
samples.

Peter Hull (<email>[email protected]</a>).<br>
Made the file selector work with directories that have more than 2048
files, solved some compiling issues on MacOS X, fixed a bug in rest()
Expand Down
9 changes: 9 additions & 0 deletions examples/exflame.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ int main(void)
}
}
release_screen();

/* Hack to make sure keyboard input is noticed. */
rest(0);
}

clear_keybuf();
Expand Down Expand Up @@ -170,6 +173,9 @@ int main(void)

bmp_unwrite_line(screen);
release_screen();

/* Hack to make sure keyboard input is noticed. */
rest(0);
}

clear_keybuf();
Expand Down Expand Up @@ -209,6 +215,9 @@ int main(void)

bmp_unwrite_line(screen);
release_screen();

/* Hack to make sure keyboard input is noticed. */
rest(0);
}

free(temp);
Expand Down
2 changes: 1 addition & 1 deletion examples/exgui.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ char the_text[] =
"word wrap the text.";

/* for the multiple selection list */
char sel[10];
char sel[11];

/* for the example bitmap */
DATAFILE *datafile;
Expand Down
14 changes: 14 additions & 0 deletions include/allegro/alcompat.h
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,20 @@ AL_INLINE_DEPRECATED(void, yield_timeslice, (void),
/* DOS-ish monitor retrace ideas that don't work elsewhere */
AL_FUNCPTR(void, retrace_proc, (void));


/* Those were never documented, but we need to keep them for DLL compatibility,
* and to be on the safe side also let's keep them work regardless.
*/
AL_INLINE_DEPRECATED(void, set_file_encoding, (int encoding),
{
set_filename_encoding(encoding);
})
AL_INLINE_DEPRECATED(int, get_file_encoding, (void),
{
return get_filename_encoding();
})


#ifdef ALLEGRO_LIB_BUILD
AL_FUNC(int, timer_can_simulate_retrace, (void));
AL_FUNC(void, timer_simulate_retrace, (int enable));
Expand Down
8 changes: 4 additions & 4 deletions include/allegro/base.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@

#define ALLEGRO_VERSION 4
#define ALLEGRO_SUB_VERSION 2
#define ALLEGRO_WIP_VERSION 2
#define ALLEGRO_VERSION_STR "4.2.2"
#define ALLEGRO_DATE_STR "2007"
#define ALLEGRO_DATE 20070722 /* yyyymmdd */
#define ALLEGRO_WIP_VERSION 3
#define ALLEGRO_VERSION_STR "4.2.3"
#define ALLEGRO_DATE_STR "2009"
#define ALLEGRO_DATE 20091029 /* yyyymmdd */

/*******************************************/
/************ Some global stuff ************/
Expand Down
6 changes: 3 additions & 3 deletions include/allegro/file.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,10 @@ struct PACKFILE_VTABLE
};


#define uconvert_tofilename(s, buf) uconvert(s, U_CURRENT, buf, get_file_encoding(), sizeof(buf))
#define uconvert_tofilename(s, buf) uconvert(s, U_CURRENT, buf, get_filename_encoding(), sizeof(buf))

AL_FUNC(void, set_file_encoding, (int encoding));
AL_FUNC(int, get_file_encoding, (void));
AL_FUNC(void, set_filename_encoding, (int encoding));
AL_FUNC(int, get_filename_encoding, (void));

AL_FUNC(void, packfile_password, (AL_CONST char *password));
AL_FUNC(PACKFILE *, pack_fopen, (AL_CONST char *filename, AL_CONST char *mode));
Expand Down
2 changes: 2 additions & 0 deletions include/allegro/internal/aintern.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ AL_FUNC(int, _al_drive_exists, (int drive));
AL_FUNC(int, _al_getdrive, (void));
AL_FUNC(void, _al_getdcwd, (int drive, char *buf, int size));

AL_FUNC(void, _al_detect_filename_encoding, (void));

/* obsolete; only exists for binary compatibility with 4.2.0 */
AL_FUNC(long, _al_file_size, (AL_CONST char *filename));

Expand Down
5 changes: 0 additions & 5 deletions include/allegro/platform/aintunix.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,6 @@ extern "C" {
AL_FUNC(void, _unix_register_digi_driver, (int id, DIGI_DRIVER *driver, int autodetect, int priority));
AL_FUNC(void, _unix_register_midi_driver, (int id, MIDI_DRIVER *driver, int autodetect, int priority));


/* File system helpers */
AL_FUNC(void, _unix_guess_file_encoding, (void));


/* Get size of a memory page in bytes */
AL_FUNC(size_t, _unix_get_page_size, (void));

Expand Down
3 changes: 3 additions & 0 deletions include/allegro/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ AL_FUNC(void, check_cpu, (void));
#define CPU_AMD64 0x0200
#define CPU_IA64 0x0400
#define CPU_SSE3 0x0800
#define CPU_SSSE3 0x1000
#define CPU_SSE41 0x2000
#define CPU_SSE42 0x4000

/* CPU families - PC */
#define CPU_FAMILY_UNKNOWN 0
Expand Down
2 changes: 1 addition & 1 deletion makefile.all
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# to *NOT* be backwards compatible (GCC-based platforms, MSVC).
# TARGET_OPTS allows you to customize general optimizations (GCC-based platforms).
# CROSSCOMPILE=1 cross-build under Linux (DJGPP, MinGW32).
# ALLEGRO_USE_C=1 use C drawing code instead of asm (GCC-based platforms).
# ALLEGRO_USE_C=1 use C drawing code instead of asm (GCC-based platforms, MSVC).
# UNIX_TOOLS=1 use Unix-like tools instead of DOS tools.
#
# Targets:
Expand Down
8 changes: 8 additions & 0 deletions makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,9 @@ allegro_aintdos_h = $(srcdir)/include/allegro/platform/aintdos.h \
obj_unix_asmdef_inc = $(OBJDIR)/asmdef.inc
xalleg_h = $(srcdir)/include/xalleg.h

# required to get asmdef.inc to be built automatically
$(ALLEGRO_SRC_I386_FILES): $(obj_unix_asmdef_inc)

ifdef CROSSCOMPILE

$(OBJDIR)/asmdef.s: src/i386/asmdef.c include/*.h include/allegro/*.h
Expand Down Expand Up @@ -342,6 +345,11 @@ info:

-include makefile.dep

# required to fix parallel make builds, makes the lib targets a dependency of the exe targets
# XXX this is a little bit of a hack. Ideally youd want only the debug exes to depend on the debug libs,
# not all of them.
$(ALLEGRO_EXE_TARGETS): $(ALLEGRO_LIB_TARGETS)

ifdef CROSSCOMPILE

full-build: lib modules programs
Expand Down
Loading