Commit Graph

657 Commits

Author SHA1 Message Date
Charlie Fenton 62ef1e8107 *** empty log message ***
svn path=/trunk/boinc/; revision=5929
2005-04-25 11:09:40 +00:00
Charlie Fenton 775adf5d19 *** empty log message ***
svn path=/trunk/boinc/; revision=5927
2005-04-24 12:31:55 +00:00
Charlie Fenton 716c75f996 *** empty log message ***
svn path=/trunk/boinc/; revision=5890
2005-04-19 00:34:41 +00:00
Charlie Fenton e50c21e658 *** empty log message ***
svn path=/trunk/boinc/; revision=5876
2005-04-16 07:16:29 +00:00
David Anderson 599943d367 *** empty log message ***
svn path=/trunk/boinc/; revision=5870
2005-04-15 22:38:22 +00:00
Rom Walton 9471802db1 *** empty log message ***
svn path=/trunk/boinc/; revision=5844
2005-04-12 23:58:01 +00:00
Charlie Fenton 91580bf010 *** empty log message ***
svn path=/trunk/boinc/; revision=5780
2005-04-05 14:26:34 +00:00
Charlie Fenton 9fc1e29b31 *** empty log message ***
svn path=/trunk/boinc/; revision=5778
2005-04-05 11:48:52 +00:00
David Anderson 7a6caef6cb *** empty log message ***
svn path=/trunk/boinc/; revision=5754
2005-04-01 22:30:08 +00:00
David Anderson ce48424984 *** empty log message ***
svn path=/trunk/boinc/; revision=5745
2005-03-30 21:11:49 +00:00
David Anderson dc0bf925b8 *** empty log message ***
svn path=/trunk/boinc/; revision=5732
2005-03-29 23:13:28 +00:00
David Anderson e057c05dfa *** empty log message ***
svn path=/trunk/boinc/; revision=5696
2005-03-21 19:57:44 +00:00
David Anderson dae6b07a9b *** empty log message ***
svn path=/trunk/boinc/; revision=5691
2005-03-19 21:39:17 +00:00
David Anderson 47a2b1ab49 *** empty log message ***
svn path=/trunk/boinc/; revision=5666
2005-03-15 20:23:24 +00:00
Rom Walton c8921f3bc3 *** empty log message ***
svn path=/trunk/boinc/; revision=5664
2005-03-15 18:35:53 +00:00
Rom Walton 9b5a4bb483 *** empty log message ***
svn path=/trunk/boinc/; revision=5660
2005-03-14 21:37:53 +00:00
David Anderson 179bdec4d7 *** empty log message ***
svn path=/trunk/boinc/; revision=5658
2005-03-14 18:39:41 +00:00
David Anderson e18a297017 *** empty log message ***
svn path=/trunk/boinc/; revision=5625
2005-03-10 22:05:42 +00:00
David Anderson 7df8f71988 *** empty log message ***
svn path=/trunk/boinc/; revision=5570
2005-03-05 23:12:31 +00:00
David Anderson aaa135c3d3 *** empty log message ***
svn path=/trunk/boinc/; revision=5478
2005-02-19 00:12:59 +00:00
David Anderson 1e2c3e1266 *** empty log message ***
svn path=/trunk/boinc/; revision=5452
2005-02-16 23:30:29 +00:00
David Anderson 8d0ab453b3 *** empty log message ***
svn path=/trunk/boinc/; revision=5443
2005-02-16 23:17:43 +00:00
David Anderson 0b495765c4 *** empty log message ***
svn path=/trunk/boinc/; revision=5427
2005-02-15 06:32:43 +00:00
David Anderson 6c6b2b7ba2 *** empty log message ***
svn path=/trunk/boinc/; revision=5408
2005-02-11 23:47:49 +00:00
Bruce Allen 87d0753b1a Add CVS-id RCS tags to files.
svn path=/trunk/boinc/; revision=5398
2005-02-11 04:46:01 +00:00
Eric J. Korpela 7450ffd910 There was a problem using dynamic allocations (with new) in many of the
graphics classes.  In many places the code was written assuming default values
of 0, especially for pointers and booleans.  While that's true in the case of
a static instance with the default constructors, it not generally true with
dynamic allocation unless the default constructor is replaced.  Therefore I've
added constructors in the following classes/structs:  MOVING_TEXT_PANEL, COLOR,
PROGRESS, PROGRESS_2D, TEXTURE_DESC, REDUCED_ARRAY.

This will be a problem is any are used from C code unless the constructors
declarations are enclosed in "#ifdef __cplusplus" blocks.

There was also a problem that showed up under Windows when dynamic allocations
were used.  app_graphics_resize() gets called before app_graphics_init().  This
usually results in a crash since classes haven't yet been constructed.  To work
around this I've added a case for WM_CREATE in the WndProc() which calls
app_graphics_init.  Under windows this will get passed before WM_SIZE does.

svn path=/trunk/boinc/; revision=5395
2005-02-11 02:15:20 +00:00
Eric J. Korpela 0e47fe1fa6 -Unfortunately on some 32 bit systems there is a problem with wx-widgets
configuring itself for largefile support.  On these systems largefile
     support breaks C++ compiles by defining away many of the C standard library
     routines that should reside in namespace std::.  In order to get around
     problem first we have to check the largefile support macros.  Later we will
     use the macro SAH_LARGEFILE_BREAKS_CXX to check for the breakage.  If
     if breakage is found LARGEFILE_BREAKS_CXX is defined in config.h.  This
     define is checked in std_fixes.h and the appropriate functions are defined
     in order to solve the problem. (These functions were already in place)
     Because these defines affect the behavior of standard library headers,
     std_fixes.h is being included from config.h
    -Added AM_CPPFLAGS, AM_CFLAGS, and AM_CXXFLAGS (for flags common to all
     compiles) so they will be defined in all Makefile.am files.
    -Put #ifdef _cplusplus around the C++ specific items in std_fixes.h so it
     may be included from C source files.

svn path=/trunk/boinc/; revision=5375
2005-02-09 19:39:04 +00:00
David Anderson 6e1c442831 *** empty log message ***
svn path=/trunk/boinc/; revision=5374
2005-02-09 19:02:11 +00:00
Eric J. Korpela 4f5cff90d5 Changed xwin_glut_is_initialized() to return int.
svn path=/trunk/boinc/; revision=5321
2005-02-04 21:26:27 +00:00
Eric J. Korpela 0616ecb86f Added a boolean function "xwin_glut_is_initialized()" to allow applications
to determine whether glut has been initialized before calling any glut API
functions.

svn path=/trunk/boinc/; revision=5317
2005-02-04 21:04:05 +00:00
David Anderson 7c0456340a *** empty log message ***
svn path=/trunk/boinc/; revision=5232
2005-01-28 01:58:11 +00:00
Rom Walton 4294c73664 *** empty log message ***
svn path=/trunk/boinc/; revision=5220
2005-01-27 09:24:18 +00:00
Rom Walton b91c5683a3 *** empty log message ***
svn path=/trunk/boinc/; revision=5219
2005-01-27 09:19:42 +00:00
Rom Walton 943dfda580 *** empty log message ***
svn path=/trunk/boinc/; revision=5218
2005-01-27 08:36:27 +00:00
David Anderson 435f8edd47 *** empty log message ***
svn path=/trunk/boinc/; revision=5161
2005-01-20 23:22:22 +00:00
Bruce Allen 37a49c9b09 Patches from Reinhard Prix to fix several problems.
(1) apps being suspended would call boinc_finish(nonzero) and
          core client would treat this as app failure.  Introduce
          a new function boinc_exit() and call that instead.
(2) improvements to GUI build with wxWidgets
(3) improved X event handling loop now ensures that X window
          is taken away when window killed.

svn path=/trunk/boinc/; revision=5142
2005-01-19 15:54:04 +00:00
David Anderson 74acc672b2 replace bad filename hashing function
svn path=/trunk/boinc/; revision=5031
2005-01-08 07:55:59 +00:00
Bruce Allen 7d96f35ba3 Reinhard has done a substantial amount of work in the past
couple of weeks to fix a number of bugs and problems in the
X-windows and/or Mac graphics event loop, and with lockfile
handling problems seen on a number of Unix file systems. A
brief summary of the changes is:

lockfile: replace calls to exit() by boinc_finish() + make
boinc_finish() remove the lockfile

graphics-eventloop: some re-structuring and simplification to
make handling of glut-exits/abort-signals more robust.  Eric,
if you could test this under Solaris we'd be very grateful.

svn path=/trunk/boinc/; revision=5025
2005-01-08 01:17:51 +00:00
David Anderson 8d9317c11f *** empty log message ***
svn path=/trunk/boinc/; revision=4990
2005-01-03 20:35:32 +00:00
Bruce Allen f31b244f90 Modified CVS id strings. After some fussing with different versions
of gcc to try and force them to not complain with -Wall but to always
include this, I decided to take a simpler approach.  All these strings
now have global linkage.  To prevent namespace conflicts they all
have different names.  For the record, the variable extension is a hash made of the first ten characters of the md5sum of the file path, eg:
    md5hash=`boinc/api/x_opengl.C | md5sum | cut -c 1-10`

svn path=/trunk/boinc/; revision=4979
2005-01-02 18:29:53 +00:00
David Anderson 097c237fda *** empty log message ***
svn path=/trunk/boinc/; revision=4964
2004-12-30 03:33:53 +00:00
David Anderson 637aa3b688 *** empty log message ***
svn path=/trunk/boinc/; revision=4962
2004-12-30 03:03:26 +00:00
Bruce Allen c4c6f4be40 make X/Unix graphics not fail if GLUT calls abort(3). This
generated a SIGARBT.  We now catch this signal.  In the
graphics thread, this just restarts the graphics init process
(with some sleep(2)ing if needed to prevent a busy fail loop).
If the signal is caught in the main thread, we restore the old
signal handler then raise(SIGABRT).

David, note that when run standalone, killing the graphics
window does NOT kill the process.  I think this is fine, but
it doesn't correspond to what the documentation says.

svn path=/trunk/boinc/; revision=4958
2004-12-29 12:21:46 +00:00
Bruce Allen fd4265d93b fixes from Reinhard Prix to disable building of boincglut under
Darwin/Unix.  It's only needed under Windows. Also warn user if
GLUT libraries missing, and then build only non-graphical client
side code.

svn path=/trunk/boinc/; revision=4954
2004-12-28 15:58:24 +00:00
Bruce Allen 9c1fb7a931 We need to change the fixed 60 second interval to increasing intervals.
When glutInit fails it prints a line (~100 chars) to stdout.  If it does
this 60 times per hour, that's 6kB/hour.  After ten hours it will overflow
the blob for stderr.

svn path=/trunk/boinc/; revision=4953
2004-12-28 09:32:29 +00:00
David Anderson 177b530d0b *** empty log message ***
svn path=/trunk/boinc/; revision=4951
2004-12-28 03:39:52 +00:00
David Anderson 308a867493 *** empty log message ***
svn path=/trunk/boinc/; revision=4940
2004-12-26 06:08:11 +00:00
David Anderson 452c6831cc *** empty log message ***
svn path=/trunk/boinc/; revision=4927
2004-12-23 06:10:53 +00:00
Bruce Allen 02e1ab9770 Make boinc_time_to_checkpoint() return int not bool, for compability
with C API.

svn path=/trunk/boinc/; revision=4921
2004-12-22 15:02:03 +00:00
David Anderson 779ee206b7 *** empty log message ***
svn path=/trunk/boinc/; revision=4912
2004-12-21 06:05:44 +00:00
David Anderson e3e062bed5 *** empty log message ***
svn path=/trunk/boinc/; revision=4901
2004-12-19 07:53:02 +00:00
Rom Walton ab98339572 *** empty log message ***
svn path=/trunk/boinc/; revision=4900
2004-12-19 04:27:02 +00:00
David Anderson 2b539b7f1e *** empty log message ***
svn path=/trunk/boinc/; revision=4881
2004-12-17 19:59:35 +00:00
David Anderson 421cbcf75d *** empty log message ***
svn path=/trunk/boinc/; revision=4880
2004-12-17 19:55:08 +00:00
Bruce Allen fdb0556fa6 Added RCSID tags
svn path=/trunk/boinc/; revision=4862
2004-12-16 03:28:40 +00:00
Bruce Allen 0329a35667 Added RCSID at the end
svn path=/trunk/boinc/; revision=4861
2004-12-16 03:09:57 +00:00
David Anderson 751b0ebd9b *** empty log message ***
svn path=/trunk/boinc/; revision=4854
2004-12-15 19:35:42 +00:00
David Anderson 2da526fa0d *** empty log message ***
svn path=/trunk/boinc/; revision=4849
2004-12-15 00:38:19 +00:00
David Anderson 8cab8517fd *** empty log message ***
svn path=/trunk/boinc/; revision=4846
2004-12-14 20:28:13 +00:00
David Anderson 3db69edb05 *** empty log message ***
svn path=/trunk/boinc/; revision=4844
2004-12-14 19:23:46 +00:00
David Anderson 18f015b6ae *** empty log message ***
svn path=/trunk/boinc/; revision=4837
2004-12-13 19:14:54 +00:00
David Anderson 940c173597 *** empty log message ***
svn path=/trunk/boinc/; revision=4836
2004-12-13 19:09:15 +00:00
David Anderson 9400348974 *** empty log message ***
svn path=/trunk/boinc/; revision=4835
2004-12-13 19:03:10 +00:00
David Anderson cacd24f348 *** empty log message ***
svn path=/trunk/boinc/; revision=4834
2004-12-13 18:55:42 +00:00
Bruce Allen 4c8d4ae2b0 Typo
svn path=/trunk/boinc/; revision=4833
2004-12-13 01:41:57 +00:00
David Anderson 12e3ff46a6 *** empty log message ***
svn path=/trunk/boinc/; revision=4832
2004-12-13 01:21:50 +00:00
Bruce Allen 152699da36 Initialized NULL (in static initialized data segment anyway, but be
explicit).

svn path=/trunk/boinc/; revision=4831
2004-12-12 15:21:20 +00:00
Bruce Allen 7ac4351f56 graphics_lib_handle has to be extern C to be usable in a C program.
svn path=/trunk/boinc/; revision=4830
2004-12-12 15:07:27 +00:00
Bruce Allen 7211c18865 Added extern C declarations to a couple of header files:
- In graphics_lib.h, this is for compatibility with pure C
      applications.
    - In graphics_impl.h, this would be needed EVEN if we were
      never building app or library with anything other than C++.
      It's because dlsym() can only work if you pass it a non-name
      mangled symbol. Please see:
      http://www.isotton.com/howtos/C++-dlopen-mini-HOWTO/C++-dlopen-mini-HOWTO.html
      for futher edetail.
    - Comments added to graphics_lib.C, better error message.

svn path=/trunk/boinc/; revision=4829
2004-12-12 14:40:43 +00:00
Bruce Allen 2c59187f7e Trying to make C compatible
svn path=/trunk/boinc/; revision=4828
2004-12-12 12:25:31 +00:00
Bruce Allen 2f122a6fa9 Missing include files for make install
svn path=/trunk/boinc/; revision=4827
2004-12-12 12:19:42 +00:00
David Anderson e6fb58fee8 *** empty log message ***
svn path=/trunk/boinc/; revision=4826
2004-12-12 06:54:28 +00:00
David Anderson 330477238f *** empty log message ***
svn path=/trunk/boinc/; revision=4825
2004-12-11 18:38:19 +00:00
David Anderson 4e2d808e1b *** empty log message ***
svn path=/trunk/boinc/; revision=4823
2004-12-11 05:55:55 +00:00
David Anderson 9c968d3c2f *** empty log message ***
svn path=/trunk/boinc/; revision=4822
2004-12-11 01:27:47 +00:00
David Anderson f95374f49d *** empty log message ***
svn path=/trunk/boinc/; revision=4821
2004-12-11 01:16:36 +00:00
David Anderson 537c820866 *** empty log message ***
svn path=/trunk/boinc/; revision=4820
2004-12-11 01:01:19 +00:00
Bruce Allen 2af4e5e390 David, here's a rough pass, I haven't even tried to compile
it. Please read comments in-line.  I think the major
        shortcoming is
        that most (all?) apps will want to use 'handle' to resolve their
        own functions to communicate data from worker to app graphics.
        Perhaps we should provide an additional argument to
        boinc_init_graphics_lib() for that purpose?  At the right point,
        after sucessful dlopen(), boinc_init_graphics_lib() will call
        that user-supplied function (if not NULL) passing it handle.
        On return boinc_init_graphics_lib() will then carry on and start
        graphics.
        It's fun working on a file that's not in Makefile.  No guilt!

svn path=/trunk/boinc/; revision=4816
2004-12-10 23:33:41 +00:00
David Anderson 4150dcbacc *** empty log message ***
svn path=/trunk/boinc/; revision=4811
2004-12-10 21:06:42 +00:00
David Anderson b4aeaca73d fixed file upload bug
svn path=/trunk/boinc/; revision=4808
2004-12-10 04:18:40 +00:00
David Anderson 3c3a9eebdf *** empty log message ***
svn path=/trunk/boinc/; revision=4807
2004-12-10 00:57:20 +00:00
Bruce Allen 18b001a1f2 Removed line continuation in comments
svn path=/trunk/boinc/; revision=4805
2004-12-09 16:45:22 +00:00
Bruce Allen 5d8366ca43 Removed bmplib.C tgalib.C from api/Makefile.am as workaround
for missing header files + code.  Note: header files must also
be listed among source files!

svn path=/trunk/boinc/; revision=4804
2004-12-09 10:45:27 +00:00
David Anderson f4ef0f5126 *** empty log message ***
svn path=/trunk/boinc/; revision=4801
2004-12-09 01:07:01 +00:00
David Anderson 289241c87b *** empty log message ***
svn path=/trunk/boinc/; revision=4800
2004-12-09 00:46:07 +00:00
David Anderson fc8c69048f *** empty log message ***
svn path=/trunk/boinc/; revision=4795
2004-12-08 20:55:53 +00:00
Bruce Allen a24afe2b67 Moved RCSID strings to the end of all .c, .C and .cpp files as per
David's request.

svn path=/trunk/boinc/; revision=4787
2004-12-08 00:40:19 +00:00
David Anderson 0ed77df5c8 *** empty log message ***
svn path=/trunk/boinc/; revision=4780
2004-12-07 19:37:17 +00:00
Rom Walton d7519eec6a *** empty log message ***
svn path=/trunk/boinc/; revision=4778
2004-12-07 16:37:18 +00:00
Bruce Allen 6a4bb3419b Use HAVE_STD_MIN and HAVE_STD_MAX
svn path=/trunk/boinc/; revision=4777
2004-12-07 11:16:45 +00:00
Rom Walton f9c8c6b86d *** empty log message ***
svn path=/trunk/boinc/; revision=4775
2004-12-06 23:51:41 +00:00
Bruce Allen 2540d049ec [thanks to Bernd Machenschalk!]
Fixed 'time to checkpoint' problem under Win32 with pure C code.
It turns out that MS VC++ up to version 4.2 defines bool as INT.
But more recent VC++ defines bool as CHAR.  This broke
boinc_time_to_checkpoint() under Win32, when used within pure ANSI
C code, if you treated the return value as a bool. So this patch
defines bool as char if using C under recent MS compilers.

David, a better solution for API functions that should be
callable from C is to make them return 'int' not 'bool'.
Probably ditto for Fortran. Sigh.

svn path=/trunk/boinc/; revision=4767
2004-12-06 16:03:13 +00:00
David Anderson 11b088afe2 *** empty log message ***
svn path=/trunk/boinc/; revision=4765
2004-12-06 00:08:04 +00:00
David Anderson 02b6393a11 *** empty log message ***
svn path=/trunk/boinc/; revision=4764
2004-12-05 23:52:17 +00:00
Bruce Allen d11fe55856 Thanks, Reinhard!
-   C extern statements so that 'API' header files can be included in C
        programs as well as C++.
-   Make install now only installs the header files needed for building
        the external APIs.

svn path=/trunk/boinc/; revision=4755
2004-12-04 00:56:22 +00:00
Bruce Allen c2d7965c09 - Fixed autoconf/automake build process so that it works correctly
under Mac OSX. Also make dist now works (make distcheck still
     broken).  Karl, since you were the last
     person to fix up this mess, how about taking a look??

svn path=/trunk/boinc/; revision=4665
2004-11-26 17:45:13 +00:00
David Anderson d75f601efe *** empty log message ***
svn path=/trunk/boinc/; revision=4652
2004-11-25 07:24:35 +00:00
David Anderson 1ec6fdd236 *** empty log message ***
svn path=/trunk/boinc/; revision=4651
2004-11-24 23:51:15 +00:00
David Anderson eee3d31836 *** empty log message ***
svn path=/trunk/boinc/; revision=4644
2004-11-24 07:02:01 +00:00
Bruce Allen b05de361df - Modified api/boinc_gl.h to use config.h to get correct include path for glut.h
svn path=/trunk/boinc/; revision=4631
2004-11-23 13:41:45 +00:00