• Squish questions

    From Nick Andre@1:229/426 to All on Sunday, November 23, 2008 10:00:49
    Hi,

    I'm trying to add Squish support to my application, written in both
    assembly language, BASIC and Pascal, and I can read a Squish database but writing to one appears to involve a lot of work with frames and the indexes.

    I cannot work with TPU's, API's or any of that, for a variety of reasons.

    Is the source code to Maximus publically available or some sort of code
    example for writing to a Squish database?

    *Nick*

    --- Renegade vY2Ka2
    * Origin: His juggling is almost hypnotic. Like a lava lamp. (1:229/426)
  • From Alan Ianson@1:153/757 to Nick Andre on Sunday, November 23, 2008 09:10:41
    Nick Andre wrote to All:

    Is the source code to Maximus publically available or some sort of code example for writing to a Squish database?

    The source for Maximus was released under the GPL by Scott Dudley in
    2001 or there abouts. There is a source package for unix 3.03b as
    well.

    The project page likely contains all you need or you could contact
    the developers.

    http://sourceforge.net/projects/maximus

    Ttyl :-),
    Al

    ... My opinions are my own; mistakes are the computer's fault.

    --- MBSE BBS v0.95.4 (GNU/Linux-x86_64)
    * Origin: The Rusty MailBox - Penticton, B.C. Canada - trmb.ca (1:153/757)
  • From Alan Ianson@1:153/757 to Nick Andre on Sunday, November 23, 2008 09:36:49
    Hello Nick,

    Is the source code to Maximus publically available or some sort of
    code example for writing to a Squish database?

    Scott Dudley's source release release from 2002 (including the Y2K beta changes) can be found here.. as well as other places but it isn't that easy to find.

    http://trmb.ca/files/local/source/maxs_302.zip

    Ttyl :-),
    Al

    ... As a computer, I find your faith in technology amusing.
    --- GoldED+/LNX 1.1.5-b20070503
    * Origin: The Rusty MailBox - Penticton, B.C. Canada - trmb.ca (1:153/757)
  • From andrew clarke@3:633/267 to Nick Andre on Monday, November 24, 2008 05:41:56
    On Sun 2008-11-23 10:00, Nick Andre (1:229/426) wrote to All:

    I'm trying to add Squish support to my application, written in both assembly language, BASIC and Pascal, and I can read a Squish
    database but writing to one appears to involve a lot of work with
    frames and the indexes.

    From memory, I don't think Squish bases are all that complicated to write to until you start reusing free frames. But I think you can ignore the free frame list and still have a conforming implementation. It would just mean that if your software wrote to the database, it would not be self-packing.

    Probably the only truly complicated bit of code is when you delete a message and have to connect the previous and next messages, so not to break the chain.
    If you've ever done any work with linked lists that might start to make some sense.

    I'm tempted to write some very basic code in Python to read & write to/from a Squish base...

    I cannot work with TPU's, API's or any of that, for a variety of
    reasons.

    Is the source code to Maximus publically available or some sort of code example for writing to a Squish database?

    My XMSGAPI project is based on the original Squish MSGAPI (which is what Maximus uses) and is probably the most portable & easy to read:

    http://blizzard.dnsalias.org/cvsweb/xmsgapi/src/

    Most of the meat is in the sq_*.c sources. Personally I think the code is unnecessarily complicated (but I didn't write it, I just helped to port it!)

    AFAIK GoldED+ uses its own Squish library which you might also get some clues from.

    http://golded-plus.sourceforge.net/

    --- timEd/FreeBSD 1.11.b2
    * Origin: Blizzard of Ozz, Melbourne, Victoria, Australia (3:633/267)
  • From Russell Tiedt@5:7105/1 to Nick Andre on Monday, November 24, 2008 06:03:35
    Hello Nick.

    23 Nov 08 10:00, you wrote to all:

    I'm trying to add Squish support to my application, written in both assembly language, BASIC and Pascal, and I can read a Squish database
    but writing to one appears to involve a lot of work with frames and
    the indexes.

    I cannot work with TPU's, API's or any of that, for a variety of
    reasons.

    Is the source code to Maximus publically available or some sort of
    code example for writing to a Squish database?

    Maximus'es source is on sourceforge ....

    Russell

    --- GoldED+/LNX 1.1.5
    * Origin: Rusty's BBS - Bloemfontein, Free State, South Africa (5:7105/1)