I decided that Pocket C Architect could use a VFS editor. As usual when something interesting showed up, I dropped everything and moved on to it. A minor glitch showed up, however. The Architect compiler reports errors with the GoTo launch command, and programs compiled in architect don't respond to that launch command, yet. So I used cygwin with PRC-tools to compile Archer, a go-between for the compiler and editors writen in Pocket C Architect, for those who wanted to write Architect editors in Architect but didn't have access to a Palm OS development system. The editor calls Archer just like in the Architect Basics for Palm OS documentation, except it uses the creatorID 'Arer' for Archer instead of 'PCAr' for the compiler. The user selects 'Archer; as his editor option instead of the editor itself. When Archer calls the compiler and the compiler returns to Archer, Archer calls the editor with launchArgs containing useful information. If the user taps the GoTo button and he was compiling a memo the launch argument is '0,dbname,rec,offset'. If he was compiling was a doc file the launch argument is '0,dbname,0,0,offset'. For those who want to use a database interface, the information is stored in the database 'archer-data'.
typedef struct {
  Int16 searchStrLen;
  UInt16 dbCardNo;
  LocalID dbID;  // 4 bytes
  UInt16 recordNum;
  UInt16 matchPos;
  UInt16 matchFieldNum;
  UInt32 matchCustom;
} GoToParamsType;

Char name[32];  // null terminated
UInt32 creatorID;  // of your editor
Here is archer-01.zip

When I got my VFS editor to the place that it could use Archer, I discovered that I had posted the wrong creatorID for Archer here :oops: I fixed it just now. However, another minor glitch showed up. Architect programs compiled on Palms don't seem to respond to launchArgs :( so I'm rewrote Archer to use Palm OS's version of launch() to return to the editor. This version puts the old launchArgs in a string at the end of the linkage database 'archer-data'.

Here is archer-02.zip

While working with John Wilund as he fixed his SrcEdit to handle PocketC Architect's goto source command, I updated ECedit, my linkage demo, to include all of the database 'archer-data'.

here is archer-021.zip

When I tried out Archer on the Palm OS Simulator, I noticed a couple of minor flaws which I promptly fixed.

here is archer-022.zip

Version 1.0.0 is being used as ECedit, and entrance to ECedit-PCA the Pocket C Architect portion of ECedit. It can be found in the Source folder of ECedit-110.zip

If you find any bugs please leave a comment on my blog: nuts4cocos.org