Re: [fpc-pascal] Enabling FPC_HAS_FEATURE_CONSOLEIO

2008-08-01 Thread leledumbo
Florian Klaempfl wrote: > > If you want only consoleio without file system support > I fear you need to take your own approach > No workaround? I'll implement a file system soon, so I guess I'll be fine. Except there's another feature dependency for CONSOLEIO besides TEXTIO. PS: FILEIO looks

Re: [fpc-pascal] Enabling FPC_HAS_FEATURE_CONSOLEIO

2008-08-01 Thread Florian Klaempfl
leledumbo schrieb: Perhaps someone have a dependency graph for all of these features? This is probably too hard to do. The goal of the feature approach is designed more towards the possibility to create a stripped rtl for existing targets. If you want only consoleio without file system suppor

Re: [fpc-pascal] Enabling FPC_HAS_FEATURE_CONSOLEIO

2008-08-01 Thread leledumbo
Micha Nelissen wrote: > > Can you undefine FPC_HAS_FEATURE_TEXTIO as well? > > In the end, you have nothing left :-). Or is this the point? > > What's the goal? > > Micha > It's already undefined. Yes, I have nothing for now. In systemh.inc, you may find: {$ifndef FPC_HAS_FEATURE_SUPPORT}

Re: [fpc-pascal] Enabling FPC_HAS_FEATURE_CONSOLEIO

2008-07-29 Thread Micha Nelissen
leledumbo wrote: > This is very inconvenient. Moreover, assertions needs it. My first attempt, > is to comment out {$undef FPC_HAS_FEATURE_CONSOLEIO} in my system.pas. But > then, FPC argues about Unknown compilerproc "fpc_write_text_shortstr". I > found it in text.inc, but it's only included if FP

Re: [fpc-pascal] Enabling FPC_HAS_FEATURE_CONSOLEIO

2008-07-29 Thread leledumbo
Mattias Gaertner wrote: > > Can you use variants? > No, it requires objfpc support which I don't have yet (see my other post about FPC_HAS_FEATURE_HEAP). What if I declare fpc_write_text_shortstr with the same signature as the one in text.inc? -- View this message in context: http://www.nab

Re: [fpc-pascal] Enabling FPC_HAS_FEATURE_CONSOLEIO

2008-07-28 Thread Mattias Gaertner
On Mon, 28 Jul 2008 02:12:35 -0700 (PDT) leledumbo <[EMAIL PROTECTED]> wrote: > > I need FPC (or better, Pascal) console IO feature for my OS. That is, > Write(Ln) (and possibly Read(Ln)) with variable number and type of > arguments. I already have my own, but each can only take one > argument. S

[fpc-pascal] Enabling FPC_HAS_FEATURE_CONSOLEIO

2008-07-28 Thread leledumbo
I need FPC (or better, Pascal) console IO feature for my OS. That is, Write(Ln) (and possibly Read(Ln)) with variable number and type of arguments. I already have my own, but each can only take one argument. So, a statement like: WriteLn('Hello, I am ',20,' years old'); must be splitted into: W