Re: [Freedos-devel] Basic question on OW

2007-05-02 Thread Aitor Santamaría
Alain, there are not lists as such, you have a news server to which you subscribe and post (you can also use it through google groups, just as I do, instead of a traditional mail client). All the info is at: http://www.openwatcom.org/index.php/Main_Page#Community Aitor 2007/5/2, Alain M. <[EMAIL

Re: [Freedos-devel] Basic question on OW

2007-05-02 Thread Alain M.
Hi Aitor, Do you participate in OpenWatcom lists? Please send me a link, I would like to participate too! I want to use templates, but it seems to be a complicated topic... Cheers, Alain Aitor Santamaría escreveu: > About the other stuff (why constant initialisations with :> are not > allowed)

Re: [Freedos-devel] Basic question on OW

2007-05-02 Thread Robert Riebisch
Aitor Santamaría wrote: > (1) That it is NOT what I want *g* > (2) That I want to define a variable widely used accross sources. That's what my latest code does. Don't you have main() in your sources? ;-) Robert Riebisch -- BTTR Software http://www.bttr-software.de/ -

Re: [Freedos-devel] Basic question on OW

2007-05-02 Thread Aitor Santamaría
(1) That it is NOT what I want (2) That I want to define a variable widely used accross sources. 2007/5/2, Robert Riebisch <[EMAIL PROTECTED]>: > Aitor Santamaría wrote: > > > The code you wrote does, but this does not: > > I already knew. ;-) > > What's wrong with the following (except more typin

Re: [Freedos-devel] Basic question on OW

2007-05-02 Thread Robert Riebisch
Aitor Santamaría wrote: > The code you wrote does, but this does not: I already knew. ;-) What's wrong with the following (except more typing): *** #include char far *myvar; void main() { myvar = MK_FP(0x40, 0x55); } *** Robert Riebisch -- BTTR Software http://www.bttr-software.de/ ---

Re: [Freedos-devel] Basic question on OW

2007-05-02 Thread Aitor Santamaría
Hi, The code you wrote does, but this does not: #include char far *myvar = MK_FP(0x40, 0x55); void main() { } Aitor 2007/5/2, Robert Riebisch <[EMAIL PROTECTED]>: > Aitor Santamaría wrote: > > > Watcom 1.6, model Large. > > OK > > > > Maybe you can use this. > > > *** > > > #include > > > >

Re: [Freedos-devel] Basic question on OW

2007-05-02 Thread Robert Riebisch
Aitor Santamaría wrote: > Watcom 1.6, model Large. OK > > Maybe you can use this. > > *** > > #include > > > > void main() > > { > >char far *myvar = MK_FP(0x40, 0x55); > > } > > *** > > The problem appears both as a global or as a local var of a function. Are you sure? The code above com

Re: [Freedos-devel] Basic question on OW

2007-05-02 Thread Aitor Santamaría
Self-correction: 2007/5/2, Aitor Santamaría <[EMAIL PROTECTED]>: > I have redefined MK_FP as > (void *)((unsigned long)((unsigned short)(seg)*0x100)+((unsigned short)ofs)) I have redefined it as the more logical: (void *)(((unsigned long)(seg)<<16)|((unsigned short)ofs)) which gives the "shift

Re: [Freedos-devel] Basic question on OW

2007-05-02 Thread Aitor Santamaría
Hello Robert, 2007/5/2, Robert Riebisch <[EMAIL PROTECTED]>: > Aitor Santamaría wrote: > > > Being used to BC, I'm experimenting with OpenWatcom, and before > > What OW version? > What memory model? Watcom 1.6, model Large. > > Apparently, OW doesn't seem to like when I do use it's own MK_FP > >

Re: [Freedos-devel] Basic question on OW

2007-05-02 Thread Robert Riebisch
Aitor Santamaría wrote: > Being used to BC, I'm experimenting with OpenWatcom, and before What OW version? What memory model? > Apparently, OW doesn't seem to like when I do use it's own MK_FP > (which is the same as in kernel's portab.h, with :> ) and I do, for > example > > char far *myvar =