NO

Author Topic: Function proto & library  (Read 4374 times)

l1ng0

  • Guest
Function proto & library
« on: July 12, 2005, 07:44:34 am »
I have written a program which not only creates function prototypes of a file (or all files in a dir), but can also list all the functions, allow you to copy the source, proto, or call to 1 or many functions and also to compare different functions.  This isn't exactly an add-in, but it integrates well with PellesC.  It also has a text-only mode (command line parm: /x, use /? to see all), which can allow you to list functions within the Pelles output tab.

There's no help as yet.. If people are keen, I'll write some.

To get it (and other freeware), see my site at:

http://lingo.atspace.com/pro2.html

To integrate into PellesC - textmode was a little difficult, it took a little hack.
Specifically, in the customize tool dlg - edit tool.

You specify path and name of tool (p2.exe)
  Arguments: -x ${FilePath}
  Initial dir: whatever

Then, you need to click "Use Output Tab", however this is greyed out, because PellesC sees P2.exe as a GUI app, and thinks it can't use text output.  You need to use a program such as WinSpy (freeware) to un-grey the checkbox, then you can select it and click ok.  This worked ok for me.

To use it non-text mode, do as above except omit the -x and don't worry about the "Use Output Tab stuff"

Cheers,
 - Luke

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2029
    • http://www.smorgasbordet.com
Re: Function proto & library
« Reply #1 on: July 12, 2005, 01:55:08 pm »
Quote from: "l1ng0"
Then, you need to click "Use Output Tab", however this is greyed out, because PellesC sees P2.exe as a GUI app, and thinks it can't use text output.

OK - I will look at this test again.

Pelle
/Pelle

l1ng0

  • Guest
Function proto & library
« Reply #2 on: July 13, 2005, 11:17:57 am »
No problem.  The program is compiled (in lccwin32, before I switched to pelles :) using subsystem:windows, but it opens the console using _open_osfhandle, in order to integrate with editors' output windows.
So it IS a gui app, but it also can output text :)

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2029
    • http://www.smorgasbordet.com
Function proto & library
« Reply #3 on: July 13, 2005, 12:30:44 pm »
Yes, I know it can be done - but I have mostly seen this approach in "debug builds".

I added the IDE check to be helpful - but if it prevents some programs from being used, it's not very helpful...

Pelle
/Pelle

l1ng0

  • Guest
Function proto & library
« Reply #4 on: July 14, 2005, 01:10:59 am »
Now that I look at my previous post, all those smilies look a little bit manic.  They look so much more subdued in plain text :)