diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-11-02 12:52:44 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-11-02 12:52:44 +0000 |
| commit | ebddf5bf9442daa010aee8cfbc36f2a68a3dd1b1 (patch) | |
| tree | 838995b0aaf1990b38bb2ce2a27a81190f291582 /test/unittests.cxx | |
| parent | 9944b5ad5a7a186f15b35a538dd8a741716cc68b (diff) | |
Change int to long in unittests callback, and add the standard FLTK
header/footer text.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4624 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test/unittests.cxx')
| -rw-r--r-- | test/unittests.cxx | 38 |
1 files changed, 33 insertions, 5 deletions
diff --git a/test/unittests.cxx b/test/unittests.cxx index a7a8c07d2..49a236640 100644 --- a/test/unittests.cxx +++ b/test/unittests.cxx @@ -1,6 +1,29 @@ - - - +// +// "$Id$" +// +// Unit tests for the Fast Light Tool Kit (FLTK). +// +// Copyright 1998-2005 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems on the following page: +// +// http://www.fltk.org/str.php +// #include <FL/Fl.H> #include <FL/x.H> @@ -14,8 +37,8 @@ Fl_Window *win = 0; int point_test_ix, line_test_ix, rect_test_ix, viewport_test_ix, circle_test_ix; void changePageCB(Fl_Widget*, void *ixvp) { - int ix = (int)ixvp; - int i = 0, n = win->children(); + long ix = (long)ixvp; + long i = 0, n = win->children(); for ( ; i<n; i++) win->child(i)->hide(); if (ix>=n || ix<0) ix = n-1; @@ -269,3 +292,8 @@ int main(int argc, char **argv) { win->show(argc, argv); return Fl::run(); } + + +// +// End of "$Id$". +// |
