Recent

Author Topic: JCF problems with BitPacked records..  (Read 1441 times)

jamie

  • Hero Member
  • *****
  • Posts: 6090
JCF problems with BitPacked records..
« on: August 20, 2017, 07:25:53 pm »
I am still using 1.6.4 Laz but I don't think it makes much difference here.
 
 I have a bitPacked Record and JCF fails to format the source with a popup
tabbed dalog showing the tree of where it stopped.

 It won't get past the Type define.
The only true wisdom is knowing you know nothing

jamie

  • Hero Member
  • *****
  • Posts: 6090
Re: JCF problems with BitPacked records..
« Reply #1 on: August 20, 2017, 08:46:56 pm »
TDCBFlags = bitPacked Record
    fBinary:0..1;              // Bimnary Mode, EOF check
    fParity:0..1;              // enable parity checking;
    fOutTxCtsFlow:0..1;        // CTS output flow control;
    fOutTxDsrFlow:0..1;        // DSR output flow control;
    fDtrCOntrol:0..3;          // flow control type;
    fDsrSensitivity:0..1;      // DSP sensitivity;
    fTxContinueOnXoff:0..1;    //  Xoff continues TX
    fOutX:0..1;                // Xon/Xoff out flow control
    finX:0..1;                 // Xon/Xoff in flow control
    fErrorChar:0..1;               // Enable Error replacement char;
    fNull:0..1;                // Enable Null stripping;
    fRTsControl:0..3;          // RTS Flow control;
    fAbortOnError:0..1;        // Abort Reads/Writes on error;
    fDummy2:0..131071;             // Reserved;
  end;                           

Example of what I ment.
The only true wisdom is knowing you know nothing

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: JCF problems with BitPacked records..
« Reply #2 on: August 20, 2017, 11:58:30 pm »
JCF parser cannot handle a lot of FPC specific syntax yet, bitpacked is one of them (generics is another). Temporarily use packed record and restore to bitpacked after formatting.

 

TinyPortal © 2005-2018