An already present CR/LF combination causes us to jump two characters,
but we failed to update the length counter when doing this.
This also makes sure we handle the corner case of a CR as the last
character.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11873 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
These warnings and errors were found using gcc 6.1 (64-bit) under Windows.
The error in examples/howto-add_fd-and-popen.cxx (-fpermissive) is due
to the wrong definition of Fl_FD_Handler under Windows 64-bit (FL_SOCKET!).
This should really be fixed in a better way in FLTK 1.4.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11870 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Under Linux we link the shared image libs and forms libs with fltk_SHARED
(again), but this does currently not work with Visual Studio, hence we
need to differentiate in src/CMakeLists.txt when building shared libs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11866 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Now you can set OPTION_BUILD_SHARED_LIBS:BOOL=ON to build FLTK dll's with
Visual Studio. Tested and works (Visual Studio 2010 + 2015).
Todo: dll names and target directories may need some changes.
Todo: Shared libraries under Linux with CMake don't work yet:
/usr/bin/ld: ../lib/libfltk.a(Fl.cxx.o): relocation R_X86_64_32S against
`.bss' can not be used when making a shared object; recompile with -fPIC
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11865 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
On the Mac OS platform, file glu.h is not in a directory called GL.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11863 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
There were two real errors (AC_MSG_ERROR, fixed in previous commit) and
lots of less important missing quotes.
I also reordered some statements to make configure.in better comparable
with branch-1.3-porting.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11857 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
when e.g. the X11 libs weren't found:
configure: line 410: test: aborting.: integer expression expected
configure: error: Configure could not find required X11 libraries
For info on correct use of AC_MSG_ERROR(), see:
https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Printing-Messages.html
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11855 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Fixed warnings:
42 cast to pointer from integer of different size [-Wint-to-pointer-cast]
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11851 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Some of these warnings were benign (code formatting), but one of them
showed a potential bug (zero divide in test/fraciewer.cxx).
Fixed warnings:
2 suggest parentheses around operand of '!' or change '&' to '&&' or '!' to '~' [-Wparentheses]
1 this 'while' clause does not guard... [-Wmisleading-indentation]
1 this 'for' clause does not guard... [-Wmisleading-indentation]
1 this 'else' clause does not guard... [-Wmisleading-indentation]
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11849 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
this mod synchronizes the link's hot spot with the image.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11844 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
as per STR #3317 and manolo's commit #11785 to branch-1.3-porting/
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11793 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This is compatible with future scaling factors applicable to the GUI.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11787 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
WIP -- more to come; just checking in what I have for now..
1) rank -> index
2) Added docs for index \return values for some methods
3) Some clarification in the internal docs about rank vs. index
4) Enabled Fl_Menu_Item's enum flags to be able to be links (added @file
to Fl_Menu_Item.H) so references to e.g. "::FL_MENU_TOGGLE" will show
up as links in doxygen docs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11786 ea41ed52-d2ee-0310-a9c1-e6b18d33e121