[M3devel] config init problem
Jay K
jay.krell at cornell.edu
Sat Aug 22 04:13:59 CEST 2009
In the top of cm3.cfg put
if not defined("SL") SL = "/"
and/or just hardcode forward slash -- it works on Windows.
There is already similar in a few places.
Look at cminstall/src/config-no-install/cm3.cfg.
This is why m3tohtml and such were crashing, but I dealt with them.
I thought. Again, see the cm3.cfg and cm3cfg.common, etc.
I have a proposal for next release that the predefines that cm3 does
be made available to all quake clients via some new function.
- Jay
> Date: Sat, 22 Aug 2009 01:16:49 +0200
> From: wagner at elegosoft.com
> To: m3devel at elegosoft.com
> Subject: [M3devel] config init problem
>
> In MxConfig.m3 quake runtime exception were ignored and thrown away
> in EvalConfig. Writing them to stderr, we get the following output
> for a simple cm3.cfg file:
>
> % cat ~/cm3-rc3/bin/cm3.cfg
>
> %INSTALL_ROOT = "/ad0e/home/wagner/cm3-rc3"
> INSTALL_ROOT = path() & SL & ".."
>
> include(path() & "/config/FreeBSD4")
>
> luthien [~/work/cm3] wagner
> % cm3 -trace -version
> Critical Mass Modula-3 version p5.8.3
> last updated: 2009-08-10
> compiled: 2009-08-21 22:59:34
> configuration: /ad0e/home/wagner/cm3-rc3/bin/cm3.cfg
> host: FreeBSD4
> ****** /ad0e/home/wagner/cm3-rc3/bin/cm3.cfg ******
> .0 SetLine 1
> .1 SetLine 3
> .2 LoadVar (193) "path"
> .3 StartCall
> .4 CallFunc 0
> .5 LoadVar (373) "SL"
> quake runtime error: "/ad0e/home/wagner/cm3-rc3/bin/cm3.cfg", line 3:
> quake runtime error: undefined variable: SL
>
> --procedure-- -line- -file---
> 3 /ad0e/home/wagner/cm3-rc3/bin/cm3.cfg
> target:
>
> SL gets defined in M3Build.m3 in cm3, along with all the other
> builtins that the compiler may use (and the config file author).
> Of course MxConfig in package m3quake does not know about these,
> as it creates its own quake machine on the fly.
>
> So configuration evaluation won't work in general currently,
> unless only standard quake functions and definitions are used.
>
> Any ideas?
>
> Olaf
> --
> Olaf Wagner -- elego Software Solutions GmbH
> Gustav-Meyer-Allee 25 / Gebäude 12, 13355 Berlin, Germany
> phone: +49 30 23 45 86 96 mobile: +49 177 2345 869 fax: +49 30 23 45 86 95
> http://www.elegosoft.com | Geschäftsführer: Olaf Wagner | Sitz: Berlin
> Handelregister: Amtsgericht Charlottenburg HRB 77719 | USt-IdNr: DE163214194
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20090822/7062a40d/attachment-0002.html>
More information about the M3devel
mailing list