Updated PC port



Hi Mike/Dave.

Further notes for you to ponder:


ISSUE 1.

I was browsing the source for the new XMaxima and came across this question
which I assume was yours:

# Voodo for CYGWIN
# Is there a canonical way of telling we are under CYGWIN?

My suggestion is that you try executing "uname".  The result for Cygwin is
then:
---------------------
$ uname
CYGWIN_NT-5.0
---------------------

For MSYS:
---------------------
$ uname
MINGW32_NT-5.0
---------------------

Of course the stuff after the underscore will vary according to the verison
of Windows the user has. If "uname" can't be found in the path and executed
then you are probably running in a pure Windows environment or a seriously
underconfigured Cygwin environment (ie, don't bother).


ISSUE 2:

Also, the following startup batch file fixes the object file path problems I
had in running the tests from XMaxima in my earlier message today:

-------------Better maxima.bat ---------------------------
@SET cd=
@SET promp$=%prompt%
@PROMPT SET cd$Q$P
@CALL>%temp%.\setdir.bat
@
% do not delete this line %
@ECHO off
PROMPT %promp$%
FOR %%c IN (CALL DEL) DO %%c %temp%.\setdir.bat
set cwd=%cd%
path c:\lang\mingw32\bin;%PATH%
set MAXIMA_PREFIX=%cd%/..
start %MAXIMA_PREFIX%/lib/maxima/5.9.0rc1/binary-gcl/maxima.exe -eval (run)
----------------------------------------

Note that the gcc path is still hard wired.



ISSUE 3.

This one may sound bizarre but I reproduced it three time to make sure.

When I run the test from Xmaxima as a background process (ie, I click on
some other window such as Emacs to go to work on something else), Maxima
slows down considerably but runs to completion.

When run in the foreground (XMaxima is the active window) it eventually dies
prematurely!

----------------------------------------
Foreground - barfs and the maxima process dies:
----------------------------------------
.....
/* ********************** Problem 17. *************** */
%Input is
INTEGRATE(DIFF(f(x, y), x, 1, y, 1), x)
Too many arguments supplied to f(x):
[x, y]
#0: f(x=x)(rtest15.mac line 48)
 -- an error.  Quitting.  To debug this try DEBUGMODE(TRUE);)


----------------------------------------
Background - works perfectly:
----------------------------------------
/* ********************** Problem 136. *************** */
%Input is
(KILL(ALL), EXAMPLE(ZEROEQUIV))
(C1) ZEROEQUIV(SIN(2*X)-2*SIN(X)*COS(X),X)
(D1)          TRUE
(C2) ZEROEQUIV(X+%E^X,X)
(D2)          FALSE
(C3) ZEROEQUIV(-LOG(B)-LOG(A)+LOG(A*B),A)
(D3)        DONTKNOW
(C4) FALSE


The result is
DONE

..Which was correct
Congratulations: No differences!
Error summary:
Error(s) found in rtest15.mac: (4)
real time : 102.750 secs
run time  : 4555518.000 secs
T
(C1)
----------------------------------------



ISSUE 4

When trying to execute code at:

http://www.ma.utexas.edu/users/wfs/courses/408c/riemansum.html

I get:

---------------------------------------
(D1)       critical_points(EXPR, VAR) := BLOCK([NUMER : TRUE, f : DIFF(EXPR,
VAR)], REALROOTS(NUM(f) DENOM(f), 10   ))
(C2)
Could not find `plot.o' using paths in FILE_SEARCH_MAXIMA,FILE_SEARCH_LISP
(combined values: [C:\/.maxima/###.{mac,mc}, G:\maxm\bin/../share/maxim#

a/5.9.0rc1/{share,share/algebra,share/calculus,share/combinatorics,share/con
trib,share/diffequations,share/graphics,share/integequations,share/int#

egration,share/macro,share/matrix,share/misc,share/numeric,share/physics,sha
re/simplification,share/specfunctions,share/sym,share/tensor,share/tri#

gonometry,share/utils,share/vector}/###.{mac,mc},
C:\/.maxima/###.{o,lisp,lsp},
G:\maxm\bin/../share/maxima/5.9.0rc1/{share,share/algebra,share/ca#

lculus,share/combinatorics,share/contrib,share/diffequations,share/graphics,
share/integequations,share/integration,share/macro,share/matrix,share/#

misc,share/numeric,share/physics,share/simplification,share/specfunctions,sh
are/sym,share/tensor,share/trigonometry,share/utils,share/vector}/###.#

{o,lisp,lsp}, G:\maxm\bin/../share/maxima/5.9.0rc1/src/###.{o,lisp,lsp}] )
 -- an error.  Quitting.  To debug this try DEBUGMODE(TRUE);)
(C3)
--------------------------------------------

"plot.lsp" is present in the tree at "g:/maxm/share/maxima/5.90rc1/src", but
"plot.o" is not.  This may be a result of the mixed forward/back slashes in
the path, but most programs seem to be able to handle this these days so it
may be some other thing.


---------------------------------------


ISSUE 5.

"Ctrl-c" actually results in a cut rather than a copy, when used in the
XMaxima window.  ("^x" in fact also does just that, as it should.)


Cheers

Mike Thomas.