You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(6) |
Nov
(31) |
Dec
(6) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(6) |
Feb
|
Mar
(17) |
Apr
(17) |
May
(27) |
Jun
(67) |
Jul
(26) |
Aug
(15) |
Sep
(2) |
Oct
(24) |
Nov
(6) |
Dec
|
2007 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(28) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2008 |
Jan
(21) |
Feb
(45) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2010 |
Jan
|
Feb
(3) |
Mar
|
Apr
(3) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2011 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Robert M. <rob...@us...> - 2008-02-01 13:29:45
|
Update of /cvsroot/perl-win32-gui/Win32-GUI/build_tools In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5981/build_tools Added Files: MMUtil.pm Log Message: Add -mms-bitfields option for mingw-gcc --- NEW FILE: MMUtil.pm --- #!perl package MMUtil; # This file is part of the build tools for Win32::GUI # It encapsulates a number of helper functions that # are repeatedly used in the build process. Specifically # helpers in this package are used to extend the ExtUtil::MakeMaker # functionality during the Makefile.PL phase. # # Author: Robert May , rm...@po..., 20 June 2005 # $Id: MMUtil.pm,v 1.1 2008/02/01 13:29:49 robertemay Exp $ use 5.006001; use strict; use warnings; use Config(); my $extra_compiler_flags = []; my $remove_compiler_flags = []; ###################################################################### # Testing for whether various fixes are required. ###################################################################### # mms_bitfields_fix() # When bulding Win32::GUI with Mingw (gcc) and the perl version we are # building against uses bitfields in structs (perl >= 5.9.x) # and perl.exe we are building against was built with MS VC++, then we # need to pass the -mms-bitfields option to gcc to casue it to use the # same bitfield alignment as MS VC++ did. sub mms_bitfields_fix { if( builder_is_mingw() && $] >= 5.009000 && perl_is_msvc() ) { push @{$extra_compiler_flags}, '-mms-bitfields'; return 1; } return; 0 } # gcc_declaration_after_statement_fix() # gcc-3.4 issues a warning if -Wdeclaration-after-statement is # used with cpp files (c++ mode). So remove it. sub gcc_declaration_after_statement_fix { if( cc_is_gcc() ) { push @{$remove_compiler_flags}, '-Wdeclaration-after-statement'; return 1; } return 0; } ###################################################################### # Testing our build environment. ###################################################################### sub builder_is_mingw { return os_is_win32() && cc_is_gcc(); } sub builder_is_gcc { return os_is_cygwin() && cc_is_gcc(); } sub builder_is_msvc { return os_is_win32() && cc_is_cl(); } sub cc_is_gcc { return $Config::Config{cc} =~ /gcc/i; } sub cc_is_cl { return $Config::Config{cc} =~ /cl/i; } sub os_is_win32 { return $^O =~ /MSWin32/i; } sub os_is_cygwin { return $^O =~ /cygwin/i; } ###################################################################### # Testing the current Perl ###################################################################### # perl_is_msvc() # Tell us whether it looks like the currently running perl # was built with VC++ compiler. We can't just check $config{cc}, as # modules like ActiveState::Config and ExtUtils::FakeConfig hide # the original value from us. sub perl_is_msvc { return 0 unless os_is_win32(); # Parse the raw Config data, so that we can find the values set # by the original perl build. require Config; my $config_file=$INC{'Config.pm'}; my $cc = ''; # What we're looking for is in Config_heavy.pl for all # recent perl's so look there first. But that doesn't # exist on perl 5.6.1, so don't die if it's not for my $file (qw(Config_heavy.pl Config.pm)) { (my $fullname = $config_file) =~ s/Config.pm$/$file/; open(my $fh, "<", $fullname) or next; while (<$fh>) { $cc = $1, last if /^cc='(.*)'/; } last if length $cc; } return $cc =~ /cl/i; } ###################################################################### # Extend ExtUtil::MakeMaker by creating stuff in package MY ###################################################################### # Extend_MM() # Designed to be called just before calling # ExtUtils::MakeMaker::WriteMakefile to prepare the extensions required sub Extend_MM { # fix up c_flags mms_bitfields_fix(); gcc_declaration_after_statement_fix(); _fixup_cflags(); return 1; } sub _fixup_cflags() { my $frag = '{ package MY; no warnings "redefine"; sub cflags { my $i = shift->SUPER::cflags(@_);'; for my $c_flag (@{$extra_compiler_flags}) { $frag .= '$i =~ s/^(CCFLAGS\s*=\s*.*)$/$1 ' . $c_flag . '/m;'; } for my $c_flag (@{$remove_compiler_flags}) { $frag .= '$i =~ s/' . $c_flag . '//mg;'; } $frag .= 'return $i; } }'; eval $frag; die $@ if $@; return; } 1; # end of MMUtil |
From: Robert M. <rob...@us...> - 2008-02-01 13:29:45
|
Update of /cvsroot/perl-win32-gui/Win32-GUI/Win32-GUI-DropFiles In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5981/Win32-GUI-DropFiles Modified Files: Makefile.PL Log Message: Add -mms-bitfields option for mingw-gcc Index: Makefile.PL =================================================================== RCS file: /cvsroot/perl-win32-gui/Win32-GUI/Win32-GUI-DropFiles/Makefile.PL,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Makefile.PL 11 Jun 2006 21:00:15 -0000 1.4 --- Makefile.PL 1 Feb 2008 13:29:49 -0000 1.5 *************** *** 10,13 **** --- 10,16 ---- use ExtUtils::MakeMaker; + use lib '../build_tools'; + use MMUtil; + my %config = ( NAME => 'Win32::GUI::DropFiles', *************** *** 40,43 **** --- 43,47 ---- delete $config{PREREQ_PM}->{'Win32::GUI'} if $main::W32G_CORE; } + MMUtil::Extend_MM(); WriteMakefile(%config); |
From: Robert M. <rob...@us...> - 2008-01-31 00:42:09
|
Update of /cvsroot/perl-win32-gui/Win32-GUI In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14718 Modified Files: CHANGELOG Log Message: Bring Changelog and Release Notes up to date Index: CHANGELOG =================================================================== RCS file: /cvsroot/perl-win32-gui/Win32-GUI/CHANGELOG,v retrieving revision 1.131 retrieving revision 1.132 diff -C2 -d -r1.131 -r1.132 *** CHANGELOG 13 Jan 2008 20:20:50 -0000 1.131 --- CHANGELOG 31 Jan 2008 00:42:10 -0000 1.132 *************** *** 6,9 **** --- 6,26 ---- Win32-GUI ChangeLog =================== + + [Robert May] : 31 January 2008 - Misc Fixes + - Makefile.PL - another attempt to prevent spurous CPAN tester reports + from linux testers. + - TreeView.xs - GetItem()/ItemInfo() return empty list rather than undef + on failure. + - GUI.xs - allow LoadImage to cope with cygwin paths + - Update ppport.h to the latest version to silence some compiler warnings + - Toolbar.xs - allow AddBitmap to be called multiple times + --- Win32::GUI::BitmapInline --- + - BitmapInline.pm - fix tained problem with tmpfile under perl 5.6.1 + --- Win32::GUI::Scintilla --- + - Scintilla.xs - remove NO_GET_PERL_CONTEXT, as this is picked up from + GUI.h when needed, and was causing crash in cygwin (Reini Urban) + - t/02_new.t,03_LoadFile.t,55_crash.t - new tests added + --- Win32::GUI::ReleaseNotes --- + - RN_1_06.pod brought up to date. + + [Reini Urban] : 13 January 2008 - Fixes to build under Perl 5.10.0 - Changes to GUI.pm and Win32-GUI-Constants/Constants.pm to get |
From: Robert M. <rob...@us...> - 2008-01-31 00:42:08
|
Update of /cvsroot/perl-win32-gui/Win32-GUI/Win32-GUI-ReleaseNotes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14718/Win32-GUI-ReleaseNotes Modified Files: RN_1_06.pod Log Message: Bring Changelog and Release Notes up to date Index: RN_1_06.pod =================================================================== RCS file: /cvsroot/perl-win32-gui/Win32-GUI/Win32-GUI-ReleaseNotes/RN_1_06.pod,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** RN_1_06.pod 13 Jan 2008 21:41:46 -0000 1.6 --- RN_1_06.pod 31 Jan 2008 00:42:11 -0000 1.7 *************** *** 17,20 **** --- 17,23 ---- been made to enable correct building with the new perl 5.10.0 + Please note that this is intended to be the last release that is + compatible with the Perl 5.6 series. + =head2 New Features *************** *** 38,42 **** now functional on MDI child windows. ! =item Confusion with GetParent() and Treeview windows The GetParent() method usually gets the parent window, but for --- 41,45 ---- now functional on MDI child windows. ! =item Confusion with GetParent() and TreeView windows The GetParent() method usually gets the parent window, but for *************** *** 127,130 **** --- 130,142 ---- } + =item TreeView::GetItem may now return an empty list + + Win32::GUI::TreeView::GetItem (and Win32::GUI::TreeView::ItemInfo) + used to return C<undef> when asked about a non-existing + item. In now returns an empty list to better support + things like: + + my $node_info = $treeview->GetItem($item); + =item Crash when destroying a window during a callback *************** *** 171,174 **** --- 183,194 ---- race-condition should also be fixed. + =item Toolbar Addbitmap can't be called multiple times + + The Win32::GUI::Toolbar::AddBitmap() method failed when called + a second time, reporting that you couldn't use it when an + imagelist was already assigned (regardless of whether you had + assigned an imagelist or not). It may now be called more + than once to add individual bitmaps to the toolbar. + =back |
From: Robert M. <rob...@us...> - 2008-01-31 00:41:24
|
Update of /cvsroot/perl-win32-gui/Win32-GUI In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14359 Modified Files: Makefile.PL Log Message: Attempt to stop spurious fail reports from CPAN testers Index: Makefile.PL =================================================================== RCS file: /cvsroot/perl-win32-gui/Win32-GUI/Makefile.PL,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** Makefile.PL 13 Jan 2008 11:42:57 -0000 1.26 --- Makefile.PL 31 Jan 2008 00:41:27 -0000 1.27 *************** *** 58,61 **** --- 58,66 ---- } } + else { + # Attempt to stop CPAN Testers reporting build failures + # for OS's like linux! + die("OS unsupported\n"); + } } *************** *** 209,212 **** --- 214,218 ---- PREREQ_PM => { 'Test::More' => 0, + 'File::Spec' => 0.9, # Needed on perl 5.8.0 as 0.82 is broken }, PM => { |
From: Robert M. <rob...@us...> - 2008-01-31 00:36:07
|
Update of /cvsroot/perl-win32-gui/Win32-GUI In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12559 Modified Files: TreeView.xs Log Message: GetItem returns empty list rather than undef on failure Index: TreeView.xs =================================================================== RCS file: /cvsroot/perl-win32-gui/Win32-GUI/TreeView.xs,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** TreeView.xs 16 Jul 2007 19:28:28 -0000 1.9 --- TreeView.xs 31 Jan 2008 00:36:11 -0000 1.10 *************** *** 484,488 **** XSRETURN(12); } else { ! XSRETURN_UNDEF; } --- 484,488 ---- XSRETURN(12); } else { ! XSRETURN_EMPTY; } |
From: Robert M. <rob...@us...> - 2008-01-31 00:34:16
|
Update of /cvsroot/perl-win32-gui/Win32-GUI/Win32-GUI-Scintilla In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11812/Win32-GUI-Scintilla Modified Files: Scintilla.xs ScintillaRC.PL Log Message: Fix cygwin crash and add new tests Index: Scintilla.xs =================================================================== RCS file: /cvsroot/perl-win32-gui/Win32-GUI/Win32-GUI-Scintilla/Scintilla.xs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Scintilla.xs 11 Jun 2006 16:51:48 -0000 1.3 --- Scintilla.xs 31 Jan 2008 00:34:19 -0000 1.4 *************** *** 3,8 **** /**********************************************************************/ - #define PERL_NO_GET_CONTEXT /* we want efficiency */ - //Bring in the Win32-GUI header files, this defines common structures that //we will need/use --- 3,6 ---- Index: ScintillaRC.PL =================================================================== RCS file: /cvsroot/perl-win32-gui/Win32-GUI/Win32-GUI-Scintilla/ScintillaRC.PL,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ScintillaRC.PL 11 Jun 2006 21:00:16 -0000 1.2 --- ScintillaRC.PL 31 Jan 2008 00:34:19 -0000 1.3 *************** *** 12,16 **** my %info = ( Version => MM->parse_version('Scintilla.PL'), ! Dllname => 'SCintilla.dll', Years => '2003..2006', Win32GUIVersion => MM->parse_version('../GUI.pm'), --- 12,16 ---- my %info = ( Version => MM->parse_version('Scintilla.PL'), ! Dllname => 'Scintilla.dll', Years => '2003..2006', Win32GUIVersion => MM->parse_version('../GUI.pm'), |
From: Robert M. <rob...@us...> - 2008-01-31 00:34:15
|
Update of /cvsroot/perl-win32-gui/Win32-GUI/Win32-GUI-Scintilla/t In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11812/Win32-GUI-Scintilla/t Modified Files: 02_new.t Added Files: 03_LoadFile.t 55_crash.t Log Message: Fix cygwin crash and add new tests Index: 02_new.t =================================================================== RCS file: /cvsroot/perl-win32-gui/Win32-GUI/Win32-GUI-Scintilla/t/02_new.t,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** 02_new.t 11 Jun 2006 16:51:50 -0000 1.1 --- 02_new.t 31 Jan 2008 00:34:20 -0000 1.2 *************** *** 1,3 **** ! #!perl -wT # Win32::GUI::Scintilla test suite # $Id$ --- 1,3 ---- ! #!perl -w # Win32::GUI::Scintilla test suite # $Id$ *************** *** 10,19 **** BEGIN { $| = 1 } # Autoflush ! use Test::More tests => 2; ! use Win32::GUI(); ! use Win32::GUI::Scintilla(); can_ok('Win32::GUI::Scintilla', 'new'); my $W = Win32::GUI::Window->new(); my $S = $W->AddScintilla(); isa_ok($S, 'Win32::GUI::Scintilla', 'Correct object type created'); --- 10,29 ---- BEGIN { $| = 1 } # Autoflush ! use Test::More tests => 6; ! ! use Win32::GUI qw(); ! use Win32::GUI::Scintilla qw(); ! use Win32::GUI::Scintilla::Perl qw(); can_ok('Win32::GUI::Scintilla', 'new'); + can_ok('Win32::GUI::Window', 'AddScintilla'); + can_ok('Win32::GUI::Scintilla::Perl', 'new'); + can_ok('Win32::GUI::Window', 'AddScintillaPerl'); + my $W = Win32::GUI::Window->new(); + my $S = $W->AddScintilla(); isa_ok($S, 'Win32::GUI::Scintilla', 'Correct object type created'); + + my $P = $W->AddScintillaPerl(); + isa_ok($P, 'Win32::GUI::Scintilla', 'Correct object type created'); --- NEW FILE: 55_crash.t --- #!perl -wT # Win32::GUI::Scintilla test suite # $Id: 55_crash.t,v 1.1 2008/01/31 00:34:20 robertemay Exp $ # # These tests performed at the end, as they may well crash. use strict; use warnings; BEGIN { $| = 1 } # Autoflush use Test::More tests => 1; use Win32::GUI qw(); use Win32::GUI::Scintilla qw(); # cygwin (only) crashes with 1.05 at demos/Editor.pl and # scripts/win32-gui-demos in the scintilla callback. # Was due to #define PERL_NO_GET_CONTEXT in Scintilla.h # causing perlud to be different sizes for Win32::GUI and # Win32::GUI::Scintilla. Win32::GUI::Window->new->AddScintilla()->SetFocus(0); pass("Didn't crash"); --- NEW FILE: 03_LoadFile.t --- #!perl -wT # Win32::GUI::Scintilla test suite # $Id: 03_LoadFile.t,v 1.1 2008/01/31 00:34:20 robertemay Exp $ # # cygwin (only) crashes with 1.05 at demos/Editor.pl and # scripts/win32-gui-demos in the scintilla callback. use strict; use warnings; BEGIN { $| = 1 } # Autoflush use Test::More tests => 5; use Win32::GUI qw(); use Win32::GUI::Scintilla qw(); use Win32::GUI::Scintilla::Perl qw(); can_ok('Win32::GUI::Scintilla', 'LoadFile'); my $W = Win32::GUI::Window->new(); my $S = $W->AddScintilla(); my $P = $W->AddScintillaPerl(); isa_ok($S, 'Win32::GUI::Scintilla', 'Correct object type created'); isa_ok($P, 'Win32::GUI::Scintilla', 'Correct object type created'); ok($P->LoadFile(__FILE__), 'Scintilla can load a file'); ok($S->LoadFile(__FILE__), 'ScintillaPerl can load a file'); |
From: Robert M. <rob...@us...> - 2008-01-31 00:28:10
|
Update of /cvsroot/perl-win32-gui/Win32-GUI In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9313 Modified Files: GUI.xs Log Message: Allow LoadImage() to cope with cygwin paths Index: GUI.xs =================================================================== RCS file: /cvsroot/perl-win32-gui/Win32-GUI/GUI.xs,v retrieving revision 1.66 retrieving revision 1.67 diff -C2 -d -r1.66 -r1.67 *** GUI.xs 16 Jul 2007 19:31:50 -0000 1.66 --- GUI.xs 31 Jan 2008 00:28:14 -0000 1.67 *************** *** 1564,1567 **** --- 1564,1571 ---- ########################################################################### # (@)INTERNAL:LoadImage(FILENAME, [TYPE, X, Y, FLAGS]) + # The return value is a handle to the bitmap, or 0 on failure. + # + # Directory seperators are normalised to windows seperators (C<\>). + # Under Cygwin, cygwin paths are converted to windows paths HBITMAP LoadImage(filename,iType=IMAGE_BITMAP,iX=0,iY=0,iFlags=LR_DEFAULTCOLOR) *************** *** 1574,1577 **** --- 1578,1584 ---- HINSTANCE moduleHandle; HBITMAP bitmap = NULL; + char buffer[MAX_PATH+1]; + char *name; + int i; CODE: /* Try to find the resource in the current EXE */ *************** *** 1610,1615 **** /* if filename looks like a string, try it as a file name */ if((bitmap == NULL) && SvPOK(filename)) { bitmap = (HBITMAP) LoadImage((HINSTANCE) moduleHandle, ! SvPV_nolen(filename), iType, iX, iY, iFlags|LR_LOADFROMFILE); } --- 1617,1648 ---- /* if filename looks like a string, try it as a file name */ if((bitmap == NULL) && SvPOK(filename)) { + name = SvPV_nolen(filename); + #ifdef __CYGWIN__ + /* Under Cygwin, convert paths to windows + * paths. E.g. convert /usr/local... and /cygdrive/c/... + */ + if(cygwin_conv_to_win32_path(name,buffer) != 0) + XSRETURN_UNDEF; + #else + /* LoadImage on Win98 (at least) doesn't like unix + * path seperators, so normalise to windows path seperators + */ + for(i=0; *name && (i<MAX_PATH); ++name,++i) { + buffer[i] = (*name == '/' ? '\\' : *name); + } + if(*name) { + /* XXX Path too long - although this appears to be what + * LoadImage would return with such a path, it might be + * better to find a more specific error code. E.g. + * ENAMETOOLONG? + */ + SetLastError(ERROR_FILE_NOT_FOUND); + errno = ENOENT; + XSRETURN_UNDEF; + } + buffer[i] = 0; + #endif bitmap = (HBITMAP) LoadImage((HINSTANCE) moduleHandle, ! buffer, iType, iX, iY, iFlags|LR_LOADFROMFILE); } |
From: Robert M. <rob...@us...> - 2008-01-31 00:23:09
|
Update of /cvsroot/perl-win32-gui/Win32-GUI/Win32-GUI-Constants In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7767/Win32-GUI-Constants Modified Files: ppport.h Log Message: Update ppport.h to latest version (silence some build warnings) Index: ppport.h =================================================================== RCS file: /cvsroot/perl-win32-gui/Win32-GUI/Win32-GUI-Constants/ppport.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ppport.h 13 May 2006 15:39:30 -0000 1.1 --- ppport.h 31 Jan 2008 00:23:11 -0000 1.2 *************** *** 5,3327 **** ---------------------------------------------------------------------- ! ppport.h -- Perl/Pollution/Portability Version 3.06 ! ! Automatically created by Devel::PPPort running under ! perl 5.008007 on Fri Mar 17 15:01:07 2006. ! ! Do NOT edit this file directly! -- Edit PPPort_pm.PL and the ! includes in parts/inc/ instead. ! [...7494 lines suppressed...] ! extern Size_t DPPP_(my_my_strlcpy)(char * dst, const char * src, Size_t size); ! #endif ! #define my_strlcpy DPPP_(my_my_strlcpy) ! #define Perl_my_strlcpy DPPP_(my_my_strlcpy) ! #if defined(NEED_my_strlcpy) || defined(NEED_my_strlcpy_GLOBAL) ! Size_t ! DPPP_(my_my_strlcpy)(char *dst, const char *src, Size_t size) ! { ! Size_t length, copy; ! length = strlen(src); ! if (size > 0) { ! copy = (length >= size) ? size - 1 : length; ! memcpy(dst, src, copy); ! dst[copy] = '\0'; ! } ! return length; ! } ! #endif ! #endif #endif |
From: Robert M. <rob...@us...> - 2008-01-31 00:23:08
|
Update of /cvsroot/perl-win32-gui/Win32-GUI/Win32-GUI-DropFiles In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7767/Win32-GUI-DropFiles Modified Files: ppport.h Log Message: Update ppport.h to latest version (silence some build warnings) Index: ppport.h =================================================================== RCS file: /cvsroot/perl-win32-gui/Win32-GUI/Win32-GUI-DropFiles/ppport.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ppport.h 25 Apr 2006 21:38:18 -0000 1.1 --- ppport.h 31 Jan 2008 00:23:11 -0000 1.2 *************** *** 5,3327 **** ---------------------------------------------------------------------- ! ppport.h -- Perl/Pollution/Portability Version 3.06 ! ! Automatically created by Devel::PPPort running under ! perl 5.008007 on Fri Mar 17 15:01:07 2006. ! ! Do NOT edit this file directly! -- Edit PPPort_pm.PL and the ! includes in parts/inc/ instead. ! [...7494 lines suppressed...] ! extern Size_t DPPP_(my_my_strlcpy)(char * dst, const char * src, Size_t size); ! #endif ! #define my_strlcpy DPPP_(my_my_strlcpy) ! #define Perl_my_strlcpy DPPP_(my_my_strlcpy) ! #if defined(NEED_my_strlcpy) || defined(NEED_my_strlcpy_GLOBAL) ! Size_t ! DPPP_(my_my_strlcpy)(char *dst, const char *src, Size_t size) ! { ! Size_t length, copy; ! length = strlen(src); ! if (size > 0) { ! copy = (length >= size) ? size - 1 : length; ! memcpy(dst, src, copy); ! dst[copy] = '\0'; ! } ! return length; ! } ! #endif ! #endif #endif |
From: Robert M. <rob...@us...> - 2008-01-31 00:21:39
|
Update of /cvsroot/perl-win32-gui/Win32-GUI In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7112 Modified Files: Toolbar.xs Log Message: Allow AddBitmap to be called multiple times to add images Index: Toolbar.xs =================================================================== RCS file: /cvsroot/perl-win32-gui/Win32-GUI/Toolbar.xs,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** Toolbar.xs 15 Jul 2007 18:58:28 -0000 1.8 --- Toolbar.xs 31 Jan 2008 00:21:40 -0000 1.9 *************** *** 125,139 **** HIMAGELIST imagelist; LPPERLWIN32GUI_USERDATA perlud; CODE: TbAddBitmap.hInst = (HINSTANCE) NULL; TbAddBitmap.nID = (UINT) bitmap; imagelist = (HIMAGELIST) SendMessage(handle, TB_GETIMAGELIST, 0, 0); ! if(imagelist != NULL) { ! CROAK("AddBitmap() should not be used when toolbar has imagelist set"); XSRETURN_UNDEF; } - perlud = (LPPERLWIN32GUI_USERDATA) GetWindowLong((HWND) handle, GWL_USERDATA); if( ValidUserData(perlud) ) { perlud->dwPlStyle |= PERLWIN32GUI_TB_HASBITMAPS; --- 125,144 ---- HIMAGELIST imagelist; LPPERLWIN32GUI_USERDATA perlud; + BOOL hasBitmaps = 0; CODE: TbAddBitmap.hInst = (HINSTANCE) NULL; TbAddBitmap.nID = (UINT) bitmap; + perlud = (LPPERLWIN32GUI_USERDATA) GetWindowLong((HWND) handle, GWL_USERDATA); + if( ValidUserData(perlud) ) { + hasBitmaps = (BOOL)(perlud->dwPlStyle & PERLWIN32GUI_TB_HASBITMAPS); + } + imagelist = (HIMAGELIST) SendMessage(handle, TB_GETIMAGELIST, 0, 0); ! if(imagelist && !hasBitmaps) { ! CROAK("AddBitmap() cannot be used when the toolbar has imagelist set"); XSRETURN_UNDEF; } if( ValidUserData(perlud) ) { perlud->dwPlStyle |= PERLWIN32GUI_TB_HASBITMAPS; |
From: Robert M. <rob...@us...> - 2008-01-31 00:17:25
|
Update of /cvsroot/perl-win32-gui/Win32-GUI/Win32-GUI-BitmapInline In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5541/Win32-GUI-BitmapInline Modified Files: BitmapInline.pm Log Message: Fix problem with tainted tmpfile under perl 5.6.1 Index: BitmapInline.pm =================================================================== RCS file: /cvsroot/perl-win32-gui/Win32-GUI/Win32-GUI-BitmapInline/BitmapInline.pm,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** BitmapInline.pm 13 Jan 2008 11:42:57 -0000 1.5 --- BitmapInline.pm 31 Jan 2008 00:17:28 -0000 1.6 *************** *** 96,99 **** --- 96,107 ---- my $tmpfile = File::Spec->catfile(File::Spec->tmpdir(), _tmp_filename()); + # On perl 5.6 we have problems with tainted data in open(). + # so (naughtily) untaint our TMP file name. In later versions + # of File::Spec tmpdir() won't give us a tained answer. + if($[ < 5.008000) { + $tmpfile =~ /^(.*)$/; + $tmpfile = $1; + } + open(my $tmpfh, '>', $tmpfile); if(!$tmpfh) { |
From: Robert M. <rob...@us...> - 2008-01-13 21:41:42
|
Update of /cvsroot/perl-win32-gui/Win32-GUI/Win32-GUI-ReleaseNotes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7020/Win32-GUI-ReleaseNotes Modified Files: RN_1_06.pod Log Message: Add info about 5.10 support and some typos Index: RN_1_06.pod =================================================================== RCS file: /cvsroot/perl-win32-gui/Win32-GUI/Win32-GUI-ReleaseNotes/RN_1_06.pod,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** RN_1_06.pod 13 Jan 2008 11:42:57 -0000 1.5 --- RN_1_06.pod 13 Jan 2008 21:41:46 -0000 1.6 *************** *** 14,18 **** This release is a primarily a bug-fix release addressing the issues ! below. There are a small number of new features. =head2 New Features --- 14,19 ---- This release is a primarily a bug-fix release addressing the issues ! below. There are a small number of new features. Minor changes have ! been made to enable correct building with the new perl 5.10.0 =head2 New Features *************** *** 56,60 **** =over ! =item Baloon Tooltip info and warning icons swapped The info and warning icon for balloon tooltips --- 57,61 ---- =over ! =item Balloon Tooltip info and warning icons swapped The info and warning icon for balloon tooltips *************** *** 97,101 **** There were several places in the Scintilla wrapper ! code where buffer of the wrong sizes were allocated. This has been fixed. --- 98,102 ---- There were several places in the Scintilla wrapper ! code where buffers of the wrong sizes were allocated. This has been fixed. *************** *** 167,170 **** --- 168,174 ---- directory. (Tracker: 1586643) + Further, the filename chosen wasn't thread-safe. This (unlikely) + race-condition should also be fixed. + =back |
From: Robert M. <rob...@us...> - 2008-01-13 20:21:12
|
Update of /cvsroot/perl-win32-gui/Win32-GUI/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10441/scripts Modified Files: win32-gui-demos.pl Log Message: Space/tab correction Index: win32-gui-demos.pl =================================================================== RCS file: /cvsroot/perl-win32-gui/Win32-GUI/scripts/win32-gui-demos.pl,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** win32-gui-demos.pl 15 Oct 2006 12:09:27 -0000 1.5 --- win32-gui-demos.pl 13 Jan 2008 20:21:16 -0000 1.6 *************** *** 101,105 **** -size => [750,500], -menu => $menu, ! -accel => $accel, -class => $class, -pushstyle => WS_CLIPCHILDREN, # avoid flicker on resize --- 101,105 ---- -size => [750,500], -menu => $menu, ! -accel => $accel, -class => $class, -pushstyle => WS_CLIPCHILDREN, # avoid flicker on resize |
From: Robert M. <rob...@us...> - 2008-01-13 20:20:52
|
Update of /cvsroot/perl-win32-gui/Win32-GUI In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10080 Modified Files: CHANGELOG GUI.pm Log Message: Fixes for build/test under perl 5.10.0 Index: GUI.pm =================================================================== RCS file: /cvsroot/perl-win32-gui/Win32-GUI/GUI.pm,v retrieving revision 1.65 retrieving revision 1.66 diff -C2 -d -r1.65 -r1.66 *** GUI.pm 16 Jul 2007 19:26:23 -0000 1.65 --- GUI.pm 13 Jan 2008 20:20:50 -0000 1.66 *************** *** 424,428 **** if(keys(%options) != 0) { require Carp; ! Carp::carp "Animate: Unrecognised options ".join(", ", keys(%options)); return undef } --- 424,428 ---- if(keys(%options) != 0) { require Carp; ! Carp::carp("Animate: Unrecognised options ".join(", ", keys(%options))); return undef } *************** *** 436,440 **** if($animation !~ /roll|slide|blend|center/) { require Carp; ! Carp::carp "Animate: Unrecognised animation type: $animation"; return undef; } --- 436,440 ---- if($animation !~ /roll|slide|blend|center/) { require Carp; ! Carp::carp("Animate: Unrecognised animation type: $animation"); return undef; } *************** *** 442,446 **** if($direction !~ /lr|tlbr|tb|trbl|rl|brtl|bt|bltr/) { require Carp; ! Carp::carp "Animate: Unrecognised direction: $direction"; return undef unless $direction eq 'blrt'; # blrt allowed for deprection cycle } --- 442,446 ---- if($direction !~ /lr|tlbr|tb|trbl|rl|brtl|bt|bltr/) { require Carp; ! Carp::carp("Animate: Unrecognised direction: $direction"); return undef unless $direction eq 'blrt'; # blrt allowed for deprection cycle } Index: CHANGELOG =================================================================== RCS file: /cvsroot/perl-win32-gui/Win32-GUI/CHANGELOG,v retrieving revision 1.130 retrieving revision 1.131 diff -C2 -d -r1.130 -r1.131 *** CHANGELOG 13 Jan 2008 11:46:13 -0000 1.130 --- CHANGELOG 13 Jan 2008 20:20:50 -0000 1.131 *************** *** 6,9 **** --- 6,13 ---- Win32-GUI ChangeLog =================== + + [Reini Urban] : 13 January 2008 - Fixes to build under Perl 5.10.0 + - Changes to GUI.pm and Win32-GUI-Constants/Constants.pm to get + build and test to be successful with Perl 5.10.0 + + [Robert May] : 13 January 2008 - Bug Fixes - ListView.xs - SelectedItems now returns empty list (rather than |
From: Robert M. <rob...@us...> - 2008-01-13 20:20:47
|
Update of /cvsroot/perl-win32-gui/Win32-GUI/Win32-GUI-Constants In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10080/Win32-GUI-Constants Modified Files: Constants.pm Log Message: Fixes for build/test under perl 5.10.0 Index: Constants.pm =================================================================== RCS file: /cvsroot/perl-win32-gui/Win32-GUI/Win32-GUI-Constants/Constants.pm,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** Constants.pm 15 Jul 2007 19:06:09 -0000 1.8 --- Constants.pm 13 Jan 2008 20:20:50 -0000 1.9 *************** *** 272,276 **** # only require Carp if we need it require Carp; ! Carp::croak qq(Can't continue after import errors); } } --- 272,276 ---- # only require Carp if we need it require Carp; ! Carp::croak(qq(Can't continue after import errors)); } } |
From: Robert M. <rob...@us...> - 2008-01-13 11:46:09
|
Update of /cvsroot/perl-win32-gui/Win32-GUI In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25992 Modified Files: CHANGELOG Log Message: Bug fix to Listview.xs (note: actual change accidently committed in last commit) Index: CHANGELOG =================================================================== RCS file: /cvsroot/perl-win32-gui/Win32-GUI/CHANGELOG,v retrieving revision 1.129 retrieving revision 1.130 diff -C2 -d -r1.129 -r1.130 *** CHANGELOG 13 Jan 2008 11:42:57 -0000 1.129 --- CHANGELOG 13 Jan 2008 11:46:13 -0000 1.130 *************** *** 6,9 **** --- 6,13 ---- Win32-GUI ChangeLog =================== + + [Robert May] : 13 January 2008 - Bug Fixes + - ListView.xs - SelectedItems now returns empty list (rather than + undef) if there are no selected items. + + [Robert May] : 13 January 2008 - Bug fixes/code re-org for BitmapInline - BitmapInline.pm - move to its own subdirectory. |
From: Robert M. <rob...@us...> - 2008-01-13 11:42:56
|
Update of /cvsroot/perl-win32-gui/Win32-GUI/Win32-GUI-BitmapInline In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24505/Win32-GUI-BitmapInline Modified Files: BitmapInline.pm Added Files: Makefile.PL Log Message: Re-organisation and bug fixes to BitmapInline --- NEW FILE: Makefile.PL --- #!perl -w use strict; #use warnings; # Makefile.PL for Win32::GUI::BitmapInline # $Id: Makefile.PL,v 1.1 2008/01/13 11:42:57 robertemay Exp $ use 5.006; use ExtUtils::MakeMaker; my %config = ( NAME => 'Win32::GUI::BitmapInline', VERSION_FROM => 'BitmapInline.pm', ABSTRACT_FROM => 'BitmapInline.pm', AUTHOR => 'Robert May <rob...@us...>', ); WriteMakefile(%config); Index: BitmapInline.pm =================================================================== RCS file: /cvsroot/perl-win32-gui/Win32-GUI/Win32-GUI-BitmapInline/BitmapInline.pm,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** BitmapInline.pm 16 Jul 2006 11:07:04 -0000 1.4 --- BitmapInline.pm 13 Jan 2008 11:42:57 -0000 1.5 *************** *** 1,76 **** package Win32::GUI::BitmapInline; ! require Exporter; ! @ISA = qw(Exporter); ! @EXPORT = qw(inline); ! $VERSION = "0.02"; $VERSION = eval $VERSION; ! $Counter = 1; ! require Win32::GUI; ! require MIME::Base64; sub new { ! my($class, $data) = @_; ! open(BMP, ">~$$.tmp") or return undef; ! binmode(BMP); ! print BMP MIME::Base64::decode($data); ! close(BMP); ! my $B = new Win32::GUI::Bitmap("~$$.tmp"); ! unlink("~$$.tmp"); ! return $B; } sub newCursor { my($class, $data) = @_; ! open(BMP, ">~$$.tmp") or return undef; ! binmode(BMP); ! print BMP MIME::Base64::decode($data); ! close(BMP); ! my $B = new Win32::GUI::Cursor("~$$.tmp"); ! unlink("~$$.tmp"); ! return $B; } sub newIcon { my($class, $data) = @_; ! open(BMP, ">~$$.tmp") or return undef; ! binmode(BMP); ! print BMP MIME::Base64::decode($data); ! close(BMP); ! my $B = new Win32::GUI::Icon("~$$.tmp"); ! unlink("~$$.tmp"); ! return $B; } ! sub inline { ! my ($file, $name) = @_; ! $name = "Bitmap" . $Win32::GUI::BitmapInline::Counter++ unless $name; ! my $type = ""; ! $file =~ /\.ico$/i and $type = "Icon"; ! $file =~ /\.cur$/i and $type = "Cursor"; ! open(BMP, $file) or ! $! = "Bitmap file '$file' not found", return undef; ! my $oldsep = $/; ! undef $/; ! binmode(BMP); ! my $ret = ""; ! $ret .= "\$$name = new$type Win32::GUI::BitmapInline( q(\n"; ! $ret .= MIME::Base64::encode( <BMP> ); $ret .= ") );\n"; ! close(BMP); ! $/ = $oldsep; print $ret; return length($ret); } ! 1; __END__ --- 1,173 ---- package Win32::GUI::BitmapInline; + use strict; + use warnings; ! use Win32::GUI(); ! use MIME::Base64(); # Core since ??? ! use File::Spec(); # Core since ??? ! # Make Win32::GUI::BitmapInline thread-safe for ithreads. ! # Stolen from Test::More ! BEGIN { ! use Config; ! # Load threads::shared when threads are turned on. ! # 5.8.0's threads are so busted we no longer support them. ! if( $] >= 5.008001 && $Config{useithreads} && $INC{'threads.pm'}) { ! require threads::shared; ! ! # Hack around YET ANOTHER threads::shared bug. It would ! # occassionally forget the contents of the variable when sharing it. ! # So we first copy the data, then share, then put our copy back. ! *share = sub (\[$@%]) { ! my $type = ref $_[0]; ! my $data; ! ! if( $type eq 'HASH' ) { ! %$data = %{$_[0]}; ! } ! elsif( $type eq 'ARRAY' ) { ! @$data = @{$_[0]}; ! } ! elsif( $type eq 'SCALAR' ) { ! $$data = ${$_[0]}; ! } ! else { ! die("Unknown type: ".$type); ! } ! ! $_[0] = &threads::shared::share($_[0]); ! ! if( $type eq 'HASH' ) { ! %{$_[0]} = %$data; ! } ! elsif( $type eq 'ARRAY' ) { ! @{$_[0]} = @$data; ! } ! elsif( $type eq 'SCALAR' ) { ! ${$_[0]} = $$data; ! } ! else { ! die("Unknown type: ".$type); ! } ! ! return $_[0]; ! }; ! } ! # 5.8.0's threads::shared is busted when threads are off ! # and earlier Perls just don't have that module at all. ! else { ! *share = sub { return $_[0] }; ! *lock = sub { 0 }; ! } ! } ! ! use Exporter(); ! our @ISA = qw(Exporter); ! our @EXPORT = qw(inline); ! ! our $VERSION = "0.02_01"; $VERSION = eval $VERSION; ! # Thread-safe, temporary filename generator ! # We'd like to use File::Temp, but it's not in core. This ! # is probably good enough ! { ! my $file_count = 0; ! share($file_count); ! sub _tmp_filename { ! my $count; ! { lock($file_count); $count = ++$file_count; } ! return "~Win32GUIBitmapInLine.$$.$count.tmp"; ! } ! } + # new(), defaulting to $type = "Win32::GUI::Bitmap" exists as a public api + # for backwards compatibility sub new { ! my($class, $data, $type) = @_; ! $type = 'Win32::GUI::Bitmap' unless $type; ! ! # Find a suitable temp directory. File::Spec->tmpdir givs us ! # a writable tmp dir from a list, or the current directory (whether or not ! # writable) if it can't find a writable directory in any of the usual ! # places. It'd be nice to use IO::File->new_tmpfile(), but we need the ! # name of the file to pass to Win32::GUI::Bitmap->new(). ! my $tmpfile = File::Spec->catfile(File::Spec->tmpdir(), _tmp_filename()); ! ! open(my $tmpfh, '>', $tmpfile); ! if(!$tmpfh) { ! warn(qq(Failed to open tmp file '$tmpfile' for writing)); ! return undef; ! } ! ! binmode($tmpfh); ! print $tmpfh MIME::Base64::decode($data); ! close($tmpfh) or warn(qq(Failed to close tmp file '$tmpfile')); ! ! my $obj = $type->new($tmpfile); ! ! unlink($tmpfile) or warn(qq(Failed to remove tmp file '$tmpfile')); ! ! return $obj; } sub newCursor { my($class, $data) = @_; ! ! return $class->new($data, 'Win32::GUI::Cursor'); } sub newIcon { my($class, $data) = @_; ! ! return $class->new($data, 'Win32::GUI::Icon'); } ! # Thread-safe counter ! { ! my $object_count = 0; ! share($object_count); ! sub _new_count { ! my $count; ! {lock($object_count); $count = ++$object_count; } ! return $count; ! } ! } ! sub inline { ! my ($filename, $name) = @_; ! my $type = 'Bitmap'; ! $type = 'Icon' if $filename =~ /\.ico$/i; ! $type = 'Cursor' if $filename =~ /\.cur$/i; + $name = $type . _new_count() unless $name; ! my $bmpfh; ! if(!open($bmpfh, '<', $filename)) { ! warn (qq(Can't open file '$filename' for reading)); return undef; ! } ! binmode($bmpfh); ! ! # use new() (not newBitmap()) for backwards compatability ! $type = q() if $type eq 'Bitmap'; ! my $ret = "\$$name = Win32::GUI::BitmapInline->new$type( q(\n"; ! { ! local $/ = undef; # Slurp ! $ret .= MIME::Base64::encode( <$bmpfh> ); ! } $ret .= ") );\n"; ! ! close($bmpfh) or warn(qq(Failed to close '$filename')); ! ! # print to currrently selected output filehandle print $ret; + return length($ret); } ! 1; # End of BitmapInline.pm __END__ *************** *** 84,95 **** To create a BitmapInline: ! perl -MWin32::GUI::BitmapInline -e inline('image.bmp') >>script.pl To use a BitmapInline (in script.pl): ! use Win32::GUI; use Win32::GUI::BitmapInline (); ! $Bitmap1 = new Win32::GUI::BitmapInline( q( Qk32AAAAAAAAAHYAAAAoAAAAEAAAABAAAAABAAQAAAAAAIAAAAAAAAAAAAAAABAAAAAQAAAAAAAA AACcnABjzs4A9/f3AJzO/wCc//8Azv//AP///wD///8A////AP///wD///8A////AP///wD///8A --- 181,192 ---- To create a BitmapInline: ! perl -MWin32::GUI::BitmapInline -e "inline('image.bmp')" >>script.pl To use a BitmapInline (in script.pl): ! use Win32::GUI(); use Win32::GUI::BitmapInline (); ! $Bitmap1 = Win32::GUI::BitmapInline->new( q( Qk32AAAAAAAAAHYAAAAoAAAAEAAAABAAAAABAAQAAAAAAIAAAAAAAAAAAAAAABAAAAAQAAAAAAAA AACcnABjzs4A9/f3AJzO/wCc//8Azv//AP///wD///8A////AP///wD///8A////AP///wD///8A *************** *** 102,113 **** This module can be used to "inline" a bitmap file in your script, so ! that it doesn't need to be accompained by several external files (less hassle when you need to redistribute your script or move it to another location). The C<inline> function is used to create an inlined bitmap resource; it ! will print on STDOUT the packed data including the lines of Perl ! needed to use the inlined bitmap resource; it is intended to be used as ! a one-liner whose output is appended to your script. The function takes the name of the bitmap file to inline as its first --- 199,215 ---- This module can be used to "inline" a bitmap file in your script, so ! that the script doesn't need to be accompained by several external files (less hassle when you need to redistribute your script or move it to another location). + =head2 FUNCTIONS + + =head3 inline + The C<inline> function is used to create an inlined bitmap resource; it ! will print on the currently selected filehandle (STDOUT by default) the ! packed data including the lines of Perl needed to use the inlined bitmap ! resource; it is intended to be used as a one-liner whose output is ! appended to your script. The function takes the name of the bitmap file to inline as its first *************** *** 115,119 **** the name of the bitmap object in the resulting scriptlet, eg: ! perl -MWin32::GUI::BitmapInline -e inline('image.bmp','IMAGE') $IMAGE = new Win32::GUI::BitmapInline( q( ... --- 217,221 ---- the name of the bitmap object in the resulting scriptlet, eg: ! perl -MWin32::GUI::BitmapInline -e "inline('image.bmp','IMAGE')" $IMAGE = new Win32::GUI::BitmapInline( q( ... *************** *** 122,196 **** (the next ones $Bitmap2 , $Bitmap3 and so on). ! Note that the object returned by C<new Win32::GUI::BitmapInline> is ! a regular Win32::GUI::Bitmap object. ! With version 0.02 you can inline icons and cursors too. Nothing changes ! in the inlining process, just the file extension: ! perl -MWin32::GUI::BitmapInline -e inline('harrow.cur','Cursor1') >>script.pl ! perl -MWin32::GUI::BitmapInline -e inline('guiperl.ico','Icon1') >>script.pl The module recognizes from the extension the type of object that it should recreate, so it will add these lines to F<script.pl>: ! $Cursor1 = newCursor Win32::GUI::BitmapInline( q( ... ! $Icon1 = newIcon Win32::GUI::BitmapInline( q( ... ! C<newCursor> or C<newIcon> are used in place of just C<new>. As above, ! the returned objects are regular Win32::GUI objects (respectively, ! Win32::GUI::Cursor and Win32::GUI::Icon). ! =head1 WARNINGS ! =over 4 ! =item * ! B<Requires MIME::Base64> ! ...and, of course, Win32::GUI :-) ! =for html <P> ! =item * ! B<Don't use it on large bitmap files!> ! BitmapInline was designed for small bitmaps, such as ! toolbar items, icons, et alia; it is not at all ! performant. ! Inlined data takes approximatively the size of your ! bitmap file plus a 30%; thus, if you inline a 100k bitmap ! you're adding about 130k of bad-looking data to your script... ! =for html <P> ! =item * ! B<Your script must have write access to its current directory> ! When inlined data are used in your script (with ! C<new Win32::GUI::BitmapInline...>) ! a temporary file is created, then loaded as a regular ! bitmap and then immediately deleted. ! This will fail if your script is not able to create and delete ! files in the current directory at the moment of the call. ! One workaround could be to change directory to a safer place ! before constructing the bitmap: ! chdir("c:\\temp"); ! $Bitmap1 = new Win32::GUI::BitmapInline( ... ); ! A better solution could pop up in some future release... ! =for html <P> ! =item * ! B<The package exports C<inline> by default> For practical reasons (see one-liners above), C<inline> is ! exported by default into your C<main> namespace; to avoid ! this side-effect is recommended to use the module in your production scripts as follows: --- 224,313 ---- (the next ones $Bitmap2 , $Bitmap3 and so on). ! Note that the object returned by C<< Win32::GUI::BitmapInline->new( ... ) >> is ! a regular L<Win32::GUI::Bitmap|Win32::GUI::Bitmap> object. ! With version 0.02 and later you can inline icons and cursors too. Nothing ! changes in the inlining process, just the file extension: ! perl -MWin32::GUI::BitmapInline -e "inline('harrow.cur')" >>script.pl ! perl -MWin32::GUI::BitmapInline -e "inline('guiperl.ico')" >>script.pl The module recognizes from the extension the type of object that it should recreate, so it will add these lines to F<script.pl>: ! $Cursor1 = Win32::GUI::BitmapInline->newCursor( q( ... ! $Icon2 = Win32::GUI::BitmapInline->newIcon( q( ... ! =head3 new ! my $bitmap = Win32::GUI::BitmapInline->new($data); ! Returns a regular L<Win32::GUI::Bitmap|Win32::GUI::Bitmap> object from ! the data created by the inlining process. ! =head3 newCursor ! Similar in behaviour to C<new()>, except it returns a ! Win32::GUI::Cursor object. ! =head3 newIcon ! Similar in behaviour to C<new()>, except it returns a ! Win32::GUI::Icon object. ! =head1 REQUIRES ! =over ! =item L<Win32::GUI|Win32::GUI> ! =item L<MIME::Base64|Mime::Base64> ! =item L<File::Spec|File::Spec> ! =item L<threads::shared|threads::shared> ! =back ! =head1 WARNINGS ! =over ! =item * Don't use it on large bitmap files! ! BitmapInline was designed for small bitmaps, such as toolbar items, ! icons, et alia; it is not at all performant. Inlined data takes ! approximatively the size of your bitmap file plus a 30% overhead; ! thus, if you inline a 100k bitmap you're adding about 130k of ! bad-looking data to your script... ! =item * File::Spec must be able to find a writable temporary directory. ! ! When inlined data is used in your script (with ! C<Win32::GUI::BitmapInline->new( ... )>), ! then a temporary file is created, loaded as a regular bitmap and then ! immediately deleted. This will fail if Win32::GUI::BitmapInline script ! is not able to create and delete files in a suitable temporary ! directory at the moment of the call. ! ! Win32::GUI::BitmapInline uses L<File::Spec->tmpdir()|File::Spec/tmpdir> ! to locate a suitable temporary directory. This should be fine under most ! circumstances, but if you find it returning the current directory (which means ! that File::Spec was not able to find a writable temporary elesewhere), and you ! are not confident that the current directory will always be writable, then ! one workaround is to change directory to a known safe place before constructing ! the bitmap, and changing back afterwards: ! ! my $olddir = cwd(); ! my $tmpdir = get_some_writable_dir(); ! chdir($tmpdir); ! $Bitmap1 = Win32::GUI::BitmapInline->new( ... ); ! chdir($olddir); ! ! =item * The package exports the C<inline> function by default. For practical reasons (see one-liners above), C<inline> is ! exported by default into the caller's namespace; to avoid ! this side-effect is strongly recommended to use the module in your production scripts as follows: *************** *** 201,209 **** =head1 VERSION ! Win32::GUI::BitmapInline version 0.02, 24 January 2001. =head1 AUTHOR Aldo Calpini ( C<da...@pe...> ). =cut --- 318,327 ---- =head1 VERSION ! Win32::GUI::BitmapInline version 0.03, 24 January 2001. =head1 AUTHOR Aldo Calpini ( C<da...@pe...> ). + Modifications by Robert May ( C<rob...@us...> ). =cut |
From: Robert M. <rob...@us...> - 2008-01-13 11:42:56
|
Update of /cvsroot/perl-win32-gui/Win32-GUI/Win32-GUI-BitmapInline/t In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24505/Win32-GUI-BitmapInline/t Added Files: 01_load.t 02_public_api.t 03_inline.t 04_new.t 05_newCursor.t 06_newIcon.t 98_pod.t 99_pod_coverage.t test.bmp test.cur test.ico Log Message: Re-organisation and bug fixes to BitmapInline --- NEW FILE: 99_pod_coverage.t --- #!perl -wT # Win32::GUI::BitmapInline test suite. # $Id: 99_pod_coverage.t,v 1.1 2008/01/13 11:42:57 robertemay Exp $ # Check the POD covers all method calls use strict; use warnings; use Test::More; eval "use Test::Pod::Coverage 1.04"; plan skip_all => "Test::Pod::Coverage 1.04 required for testing POD coverage" if $@; plan skip_all => "Pod Coverage tests for Win32::GUI::BitmapInline done by core" if $ENV{W32G_CORE}; all_pod_coverage_ok( { also_private => [ qr/^(share|lock)$/, ] } ); --- NEW FILE: test.bmp --- (This appears to be a binary file; contents omitted.) --- NEW FILE: test.ico --- (This appears to be a binary file; contents omitted.) --- NEW FILE: 05_newCursor.t --- #!perl -w # Win32::GUI::BitmapInline test suite # $Id: 05_newCursor.t,v 1.1 2008/01/13 11:42:57 robertemay Exp $ # # - check the new function works for bitmaps use strict; use warnings; use IO::File(); BEGIN { $| = 1 } # Autoflush use Test::More tests => 3; use Win32::GUI::BitmapInline(); # Check that 'inline' is not exported with empty import list ok(!__PACKAGE__->can('inline'), "'inline' not exported"); # Check that 'new' is not exported with empty import list ok(!__PACKAGE__->can('newCursor'), "'newCursor' not exported"); # use inline to create some inline data # XXX I expect that using scalar reference as filename in open is not 5.6 # compatible { # Bitmap inlining my $fh = IO::File->new_tmpfile() or die "Open failed"; my $old_fh = select $fh; Win32::GUI::BitmapInline::inline('t/test.cur'); select $old_fh; $fh->seek(0,0) or die "Failed to seek back to start of file"; my $buffer = do { local $/; <$fh> }; $fh->close(); my $Cursor1; eval $buffer; isa_ok($Cursor1, "Win32::GUI::Cursor", "Created a cursor"); } --- NEW FILE: test.cur --- (This appears to be a binary file; contents omitted.) --- NEW FILE: 01_load.t --- #!perl -wT # Win32::GUI::BitmapInline test suite # $Id: 01_load.t,v 1.1 2008/01/13 11:42:57 robertemay Exp $ # # - check pre-requsites # - check module loads # - check module has a version use strict; use warnings; BEGIN { $| = 1 } # Autoflush # Pre-requisites: Bail out if we havent got Test::More eval "use Test::More"; if($@) { # As we haven't got Test::More, can't use diag() print "#\n# Test::More required to perform any Win32::GUI::BitmapInline test\n"; chomp $@; $@ =~ s/^/# /gm; print "$@\n"; print "Bail Out! Test::More not available\n"; exit(1); } plan( tests => 3 ); # Pre-requisites: Check that we're on windows or cygwin # bail out if we're not if ( not ($^O =~ /MSwin32|cygwin/i)) { diag("\nWin32::GUI::BitmapInline can only run on MSWin32 or cygwin, not '$^O'"); print "Bail out! Incompatible Operating System\n"; } pass("Correct OS: $^O"); # Check that Win32::GUI::BitmapInline loads, and bail out of all # tests if it doesn't use_ok('Win32::GUI::BitmapInline') or print STDOUT "Bail out! Can't load Win32::GUI::BitmapInline"; # Check that Win32::GUI::BitmapInline has a version ok(defined $Win32::GUI::BitmapInline::VERSION, "Win32::GUI::BitmapInline version check"); --- NEW FILE: 06_newIcon.t --- #!perl -w # Win32::GUI::BitmapInline test suite # $Id: 06_newIcon.t,v 1.1 2008/01/13 11:42:57 robertemay Exp $ # # - check the new function works for bitmaps use strict; use warnings; use IO::File(); BEGIN { $| = 1 } # Autoflush use Test::More tests => 3; use Win32::GUI::BitmapInline(); # Check that 'inline' is not exported with empty import list ok(!__PACKAGE__->can('inline'), "'inline' not exported"); # Check that 'new' is not exported with empty import list ok(!__PACKAGE__->can('newIcon'), "'newIcon' not exported"); # use inline to create some inline data # XXX I expect that using scalar reference as filename in open is not 5.6 # compatible { # Bitmap inlining my $fh = IO::File->new_tmpfile() or die "Open failed"; my $old_fh = select $fh; Win32::GUI::BitmapInline::inline('t/test.ico'); select $old_fh; $fh->seek(0,0) or die "Failed to seek back to start of file"; my $buffer = do { local $/; <$fh> }; $fh->close(); my $Icon1; eval $buffer; isa_ok($Icon1, "Win32::GUI::Icon", "Created an icon"); } --- NEW FILE: 03_inline.t --- #!perl -w # Win32::GUI::BitmapInline test suite # $Id: 03_inline.t,v 1.1 2008/01/13 11:42:57 robertemay Exp $ # # - check the inline function works use strict; use warnings; use IO::File(); BEGIN { $| = 1 } # Autoflush use Test::More tests => 17; # Check that 'inline' is exported by default require Win32::GUI::BitmapInline; ok(!__PACKAGE__->can('inline'), "No 'inline' before import called"); Win32::GUI::BitmapInline->import(); can_ok(__PACKAGE__, 'inline'); # Check what inline's output looks like # XXX I expect that using scalar reference as filename in open is not 5.6 # compatible { # Bitmap inlining my $fh = IO::File->new_tmpfile() or die "Open failed"; my $old_fh = select $fh; inline('t/test.bmp'); select $old_fh; $fh->seek(0,0) or die "Failed to seek back to start of file"; my $buffer = do { local $/; <$fh> }; # slurp $fh->close(); ok(length($buffer), "'inline' generates output"); like($buffer, qr/^\$Bitmap\d+\s*=/m, 'Output starts with "$BitmapX ="'); like($buffer, qr/^\$Bitmap1/, 'Counter starts at 1'); like($buffer, qr/.*=\s*Win32::GUI::BitmapInline->new\s*\(\s*q\s*\(/m, 'Output continues with "Win32::GUI::BitmapInline->new( q("'); like($buffer, qr/\)\s*\)\s*;\s*$/m, 'Output end with ") );"'); } { # Icon inlining my $fh = IO::File->new_tmpfile() or die "Open failed"; my $old_fh = select $fh; inline('t/test.ico'); select $old_fh; $fh->seek(0,0) or die "Failed to seek back to start of file"; my $buffer = do { local $/; <$fh> }; # slurp $fh->close(); ok(length($buffer), "'inline' generates output"); like($buffer, qr/^\$Icon\d+\s*=/m, 'Output starts with "$IconX ="'); like($buffer, qr/^\$Icon2/, 'Counter continues with 2'); like($buffer, qr/.*=\s*Win32::GUI::BitmapInline->newIcon\s*\(\s*q\s*\(/m, 'Output continues with "Win32::GUI::BitmapInlineIcon->newIcon( q("'); like($buffer, qr/\)\s*\)\s*;\s*$/m, 'Output end with ") );"'); } { # Cursor inlining my $fh = IO::File->new_tmpfile() or die "Open failed"; my $old_fh = select $fh; inline('t/test.cur'); select $old_fh; $fh->seek(0,0) or die "Failed to seek back to start of file"; my $buffer = do { local $/; <$fh> }; # slurp $fh->close(); ok(length($buffer), "'inline' generates output"); like($buffer, qr/^\$Cursor\d+\s*=/m, 'Output starts with "$CursorX ="'); like($buffer, qr/^\$Cursor3/, 'Counter continues with 3'); like($buffer, qr/.*=\s*Win32::GUI::BitmapInline->newCursor\s*\(\s*q\s*\(/m, 'Output continues with "Win32::GUI::BitmapInlineIcon->newCursor( q("'); like($buffer, qr/\)\s*\)\s*;\s*$/m, 'Output end with ") );"'); } --- NEW FILE: 04_new.t --- #!perl -w # Win32::GUI::BitmapInline test suite # $Id: 04_new.t,v 1.1 2008/01/13 11:42:57 robertemay Exp $ # # - check the new function works for bitmaps use strict; use warnings; BEGIN { $| = 1 } # Autoflush use Test::More tests => 3; use IO::File(); use Win32::GUI::BitmapInline(); # Check that 'inline' is not exported with empty import list ok(!__PACKAGE__->can('inline'), "'inline' not exported"); # Check that 'new' is not exported with empty import list ok(!__PACKAGE__->can('new'), "'new' not exported"); # use inline to create some inline data # XXX I expect that using scalar reference as filename in open is not 5.6 # compatible { # Bitmap inlining my $fh = IO::File->new_tmpfile() or die "Open failed"; my $old_fh = select $fh; Win32::GUI::BitmapInline::inline('t/test.bmp'); select $old_fh; $fh->seek(0,0) or die "Failed to seek back to start of file"; my $buffer = do { local $/; <$fh> }; $fh->close(); my $Bitmap1; eval $buffer; isa_ok($Bitmap1, "Win32::GUI::Bitmap", "Created a bitmap"); } --- NEW FILE: 02_public_api.t --- #!perl -wT # Win32::GUI::BitmapInline test suite # $Id: 02_public_api.t,v 1.1 2008/01/13 11:42:57 robertemay Exp $ # # - check the public api methods are defined use strict; use warnings; BEGIN { $| = 1 } # Autoflush use Test::More tests => 1; use Win32::GUI::BitmapInline(); can_ok('Win32::GUI::BitmapInline', qw( inline new newCursor newIcon )); --- NEW FILE: 98_pod.t --- #!perl -wT # Win32::GUI::BitmapInline test suite. # $Id: 98_pod.t,v 1.1 2008/01/13 11:42:57 robertemay Exp $ # Check that our pod documentation has valid syntax use strict; use warnings; BEGIN { $| = 1 } # Autoflush use Test::More; eval "use Test::Pod 1.14"; plan skip_all => "Test::Pod 1.14 required for testing POD" if $@; plan skip_all => "Pod tests for Win32::GUI::BitmapInline done by core" if $ENV{W32G_CORE}; all_pod_files_ok(); |
From: Robert M. <rob...@us...> - 2008-01-13 11:42:56
|
Update of /cvsroot/perl-win32-gui/Win32-GUI/Win32-GUI-ReleaseNotes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24505/Win32-GUI-ReleaseNotes Modified Files: RN_1_06.pod Log Message: Re-organisation and bug fixes to BitmapInline Index: RN_1_06.pod =================================================================== RCS file: /cvsroot/perl-win32-gui/Win32-GUI/Win32-GUI-ReleaseNotes/RN_1_06.pod,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** RN_1_06.pod 30 Jul 2007 22:04:49 -0000 1.4 --- RN_1_06.pod 13 Jan 2008 11:42:57 -0000 1.5 *************** *** 28,32 **** DrawFrameControl() will now adjust it's input parameters ! if the DFCS_ADJUSTRECT flag is set. =item Dialog navigation for MDI Windows --- 28,33 ---- DrawFrameControl() will now adjust it's input parameters ! if the DFCS_ADJUSTRECT flag is set and the input parameters ! are not readonly. =item Dialog navigation for MDI Windows *************** *** 44,53 **** This made it difficult to get the parent window. Now, if the ! GetParent() method is called without an arguements: $parent_window = $tree_view->GetParent(); - Then it will give you the parent window. - =back --- 45,53 ---- This made it difficult to get the parent window. Now, if the ! GetParent() method is called without an arguements it returns ! the parent window: $parent_window = $tree_view->GetParent(); =back *************** *** 59,63 **** The info and warning icon for balloon tooltips ! were the wrong way round. This is fixed. =item Textfield::GetLine() truncates lines --- 59,63 ---- The info and warning icon for balloon tooltips ! were the wrong way round. This is fixed. (Tracker: 1709017) =item Textfield::GetLine() truncates lines *************** *** 78,85 **** the previouly incorrect placement (always against the left border), then you may need to re-position your labels. ! =item Error During Global Destruction ! It was common to get an error like: (in cleanup) Can't call method "DELETE" on an undefined value at C:/Perl --- 78,86 ---- the previouly incorrect placement (always against the left border), then you may need to re-position your labels. + (Tracker: 1734697) ! =item Warning During Global Destruction ! It was common to get a warning like: (in cleanup) Can't call method "DELETE" on an undefined value at C:/Perl *************** *** 113,117 **** The second arguement was being set incorrectly when the callback ! was made. This is now fixed. =item Crash when destroying a window during a callback --- 114,128 ---- The second arguement was being set incorrectly when the callback ! was made. This is now fixed. (Tracker: 1706901) ! ! =item ListView SelectedItems may now return an empty list ! ! Win32::GUI::ListView::SelectedItems used to return C<undef> when ! there were no items selected. It now returns an empty list, to ! better support things like: ! ! for my $item ($listview->SelectedItems()) { ! # do something with the selected $item ! } =item Crash when destroying a window during a callback *************** *** 121,125 **** is now fixed. ! =item All Poly* drawing functions broken Polygon(), PolyBezier(), PolyBezierTo(), PolyLine() and --- 132,136 ---- is now fixed. ! =item All Win32::GUI::DC::Poly* drawing functions broken Polygon(), PolyBezier(), PolyBezierTo(), PolyLine() and *************** *** 136,140 **** =item Win32::GUI::Imagelist::AddMasked broken ! This call should now work. =item Win32::GUI::Acceptfiles() generates warning --- 147,151 ---- =item Win32::GUI::Imagelist::AddMasked broken ! This call should now work. (Tracker: 1734697) =item Win32::GUI::Acceptfiles() generates warning *************** *** 145,151 **** =item Build process fixes ! A number of warnign when building under cygwin were fixed - patches submitted by Reini Urban. =back --- 156,170 ---- =item Build process fixes ! A number of warnings when building under cygwin were fixed - patches submitted by Reini Urban. + =item Win32::GUI::BitmapInline wasn't using a suitable temporary directory + + Win32::GUI::BitmapInline was always using the current directory to create + temporary files. This failed when the current directory wasn't writable + (likely under limited user accounts in Win2K and above). + It now uses C<< File::Spec->tmpdir() >> to get a writable temporary + directory. (Tracker: 1586643) + =back |
From: Robert M. <rob...@us...> - 2008-01-13 11:42:55
|
Update of /cvsroot/perl-win32-gui/Win32-GUI In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24505 Modified Files: CHANGELOG ListView.xs MANIFEST Makefile.PL Log Message: Re-organisation and bug fixes to BitmapInline Index: CHANGELOG =================================================================== RCS file: /cvsroot/perl-win32-gui/Win32-GUI/CHANGELOG,v retrieving revision 1.128 retrieving revision 1.129 diff -C2 -d -r1.128 -r1.129 *** CHANGELOG 30 Jul 2007 22:04:49 -0000 1.128 --- CHANGELOG 13 Jan 2008 11:42:57 -0000 1.129 *************** *** 6,9 **** --- 6,18 ---- Win32-GUI ChangeLog =================== + + [Robert May] : 13 January 2008 - Bug fixes/code re-org for BitmapInline + - BitmapInline.pm - move to its own subdirectory. + - Makefile.PL - change to reflect BitmapInline.pm move. + --- Win32::GUI::BitmapInline --- + - use a writable temporary directory instead of the current directory + (Tracker: 1586643) + - make it threadsafe + - add Makefile.PL and tests + + [Robert May] : 30 July 2007 - Bug Fixes - build_tools/updateRC, Makefile - fix problem with GUI.rc being readonly Index: ListView.xs =================================================================== RCS file: /cvsroot/perl-win32-gui/Win32-GUI/ListView.xs,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** ListView.xs 15 Jul 2007 18:52:38 -0000 1.14 --- ListView.xs 13 Jan 2008 11:42:57 -0000 1.15 *************** *** 1975,1979 **** ########################################################################### # (@)METHOD:SelectedItems() ! # Retuns an array containing the zero-based indexes of selected items. void SelectedItems(handle) --- 1975,1980 ---- ########################################################################### # (@)METHOD:SelectedItems() ! # Returns an array containing the zero-based indexes of selected items, or ! # an empty list if no items are selected. void SelectedItems(handle) *************** *** 1995,2001 **** index = ListView_GetNextItem(handle, index, LVNI_SELECTED); } ! XSRETURN(scount); } else { ! XSRETURN_UNDEF; } --- 1996,2002 ---- index = ListView_GetNextItem(handle, index, LVNI_SELECTED); } ! XSRETURN(tcount); } else { ! XSRETURN_EMPTY; } Index: Makefile.PL =================================================================== RCS file: /cvsroot/perl-win32-gui/Win32-GUI/Makefile.PL,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** Makefile.PL 30 Jul 2007 22:04:49 -0000 1.25 --- Makefile.PL 13 Jan 2008 11:42:57 -0000 1.26 *************** *** 212,216 **** PM => { 'GUI.pm' => '$(INST_LIBDIR)/GUI.pm', - 'BitmapInline.pm' => '$(INST_LIBDIR)/GUI/BitmapInline.pm', 'GridLayout.pm' => '$(INST_LIBDIR)/GUI/GridLayout.pm', }, --- 212,215 ---- Index: MANIFEST =================================================================== RCS file: /cvsroot/perl-win32-gui/Win32-GUI/MANIFEST,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** MANIFEST 5 Nov 2006 20:04:49 -0000 1.21 --- MANIFEST 13 Jan 2008 11:42:57 -0000 1.22 *************** *** 1,5 **** Animation.xs Bitmap.xs - BitmapInline.pm BUGS build_tools/BuildTools.pm --- 1,4 ---- *************** *** 171,174 **** --- 170,186 ---- Win32-GUI-AxWindow/TODO Win32-GUI-AxWindow/TYPEMAP + Win32-GUI-BitmapInline/BitmapInline.pm + Win32-GUI-BitmapInline/Makefile.PL + Win32-GUI-BitmapInline/t/01_load.t + Win32-GUI-BitmapInline/t/02_public_api.t + Win32-GUI-BitmapInline/t/03_inline.t + Win32-GUI-BitmapInline/t/04_new.t + Win32-GUI-BitmapInline/t/05_newCursor.t + Win32-GUI-BitmapInline/t/06_newIcon.t + Win32-GUI-BitmapInline/t/98_pod.t + Win32-GUI-BitmapInline/t/99_pod_coverage.t + Win32-GUI-BitmapInline/t/test.bmp + Win32-GUI-BitmapInline/t/test.cur + Win32-GUI-BitmapInline/t/test.ico Win32-GUI-Constants/Changes Win32-GUI-Constants/Constants.PL *************** *** 344,347 **** --- 356,360 ---- Win32-GUI-ReleaseNotes/RN_1_04.pod Win32-GUI-ReleaseNotes/RN_1_05.pod + Win32-GUI-ReleaseNotes/RN_1_06.pod Win32-GUI-ReleaseNotes/t/98_pod.t Win32-GUI-Scintilla/Changes *************** *** 367,369 **** Win32-GUI-Scintilla/Typemap Window.xs - META.yml Module meta-data (added by MakeMaker) --- 380,381 ---- |
From: Robert M. <rob...@us...> - 2008-01-13 11:07:51
|
Update of /cvsroot/perl-win32-gui/Win32-GUI/Win32-GUI-BitmapInline/t In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12544/t Log Message: Directory /cvsroot/perl-win32-gui/Win32-GUI/Win32-GUI-BitmapInline/t added to the repository |
From: Robert M. <rob...@us...> - 2007-07-30 22:04:54
|
Update of /cvsroot/perl-win32-gui/Win32-GUI/Win32-GUI-ReleaseNotes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29107/Win32-GUI-ReleaseNotes Modified Files: RN_1_06.pod Log Message: Build fixes for Cygwin from Reini Urban Index: RN_1_06.pod =================================================================== RCS file: /cvsroot/perl-win32-gui/Win32-GUI/Win32-GUI-ReleaseNotes/RN_1_06.pod,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** RN_1_06.pod 16 Jul 2007 19:36:59 -0000 1.3 --- RN_1_06.pod 30 Jul 2007 22:04:49 -0000 1.4 *************** *** 143,146 **** --- 143,151 ---- They have been removed. + =item Build process fixes + + A number of warnign when building under cygwin were fixed - + patches submitted by Reini Urban. + =back *************** *** 256,259 **** --- 261,266 ---- =item Joseph Cordero + =item Reini Urban + =back |
From: Robert M. <rob...@us...> - 2007-07-30 22:04:54
|
Update of /cvsroot/perl-win32-gui/Win32-GUI/build_tools In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29107/build_tools Modified Files: updateRC.pl Log Message: Build fixes for Cygwin from Reini Urban Index: updateRC.pl =================================================================== RCS file: /cvsroot/perl-win32-gui/Win32-GUI/build_tools/updateRC.pl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** updateRC.pl 3 Aug 2005 21:45:58 -0000 1.1 --- updateRC.pl 30 Jul 2007 22:04:49 -0000 1.2 *************** *** 19,23 **** use BuildTools; ! my $rcfile = "GUI.rc"; my $version = BuildTools::macro_subst('__W32G_VERSION__'); --- 19,25 ---- use BuildTools; ! $|++; #AUTOFLUSH ! ! my $rcfile = 'GUI.rc'; my $version = BuildTools::macro_subst('__W32G_VERSION__'); *************** *** 25,36 **** my $changed = 0; ! my $outtext = ''; # Parse $version into 4 parts: ! my($maj, $min, $rc, $extra) = split(/\.|_/, $version . ".00.00.00"); ! print "Checking RC file ... "; ! open(my $in, "<$rcfile") or die "Filaed to open $rcfile for reading: $!"; while (my $inline = <$in>) { my $outline = $inline; --- 27,38 ---- my $changed = 0; ! my $outtext = q(); # Parse $version into 4 parts: ! my($maj, $min, $rc, $extra) = split(/\.|_/, $version . '.00.00.00'); ! print 'Checking RC file ... '; ! open(my $in, '<', $rcfile) or die "Failed to open $rcfile for reading: $!"; while (my $inline = <$in>) { my $outline = $inline; *************** *** 60,69 **** close($in); ! # write out the new rcfile ! open(my $out, ">$rcfile") or die "Failed to open $rcfile for writing"; ! print $out $outtext; ! close($out); ! print $changed ? "updated.\n" : "no change.\n"; exit(0); --- 62,77 ---- close($in); ! # write out the new rcfile, if it changed ! if($changed) { ! my $out; ! if(!open($out, '>', $rcfile)) { ! chmod 0644, $rcfile; ! open($out, '>', $rcfile) or die "Failed to open $rcfile for writing"; ! } ! print $out $outtext; ! close($out); ! } ! print $changed ? 'updated' : 'no change', ".\n"; exit(0); |