![]() |
| | #16 | |
| Frequently Quite Prolix Join Date: Apr 2005 Location: Canada
Posts: 7,698
| Quote:
The HTML output format does indeed use <pre></pre> tags. (See the files rules/_html.) If you wanted to have tabs converted to spaces or vice versa you could either do it yourself with a separate program -- it's quite easy; I think I have at least five programs that do it -- or create rules that look like this: Code: =keyword <tab>::<space><space><space><space>:# converts tabs to spaces <space><space><space><space>:<tab>:# converts spaces to tabs Comments are much appreciated.
__________________ dwk Seek and ye shall find. quaere et invenies. "Simplicity does not precede complexity, but follows it." -- Alan Perlis "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra "The only real mistake is the one from which we learn nothing." -- John Powell Other boards: DaniWeb, TPS Unofficial Wiki FAQ: cpwiki.sf.net My website: http://dwks.theprogrammingsite.com/ Projects: codeform, xuni, atlantis, nort, etc. | |
| dwks is offline | |
| | #18 |
| Frequently Quite Prolix Join Date: Apr 2005 Location: Canada
Posts: 7,698
| Guess what? I was doing just that. If you'd signed up before the board crashed, I could link you to the thread, but alas it is gone. I wrote a Perl script which ran codeform on the remote server. It worked perfectly, but codeform was running as a priviledged user, opening up tons of security holes. Unfortunately there doesn't seem to be a user called nobody on that server. So I guess I could host codeform version 1.2.0 online, as it is called, but would it be a good idea? . . . . My only idea was to restrict the input file to, say, 32KB, to reduce the risk of buffer overruns. Codeform, as I mentioned, does not have any memory leaks when run through Valgrind, but it does have lots of "Invalid read"s. I don't know what those are but I'm guessing they're related to buffer overruns. Once I fix those I think I will host codeform online. We'll see. If you have a server that will run Perl scripts that can execute other programs which may or may not have buffer overruns, let me know.
__________________ dwk Seek and ye shall find. quaere et invenies. "Simplicity does not precede complexity, but follows it." -- Alan Perlis "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra "The only real mistake is the one from which we learn nothing." -- John Powell Other boards: DaniWeb, TPS Unofficial Wiki FAQ: cpwiki.sf.net My website: http://dwks.theprogrammingsite.com/ Projects: codeform, xuni, atlantis, nort, etc. |
| dwks is offline | |
| | #19 |
| Woof, woof! Join Date: Mar 2007 Location: Australia
Posts: 3,295
| I did sign-up before the board crashed I lost my account...Anywho, as you mentioned in the other thread perhaps link to standard-c functions ? And maybe something for the future: use anchors for user declared functions so you can 'skip' to their declarations, eg Code: <pre>
void Foo(void);
int main(void)
{
<a href="#foo">Foo</a>();
return 0;
}
<a name="foo"></a>
void Foo(void)
{
return;
}
</pre>
, specially not one with, DuN-DUN-DUN PERL!:P Last edited by zacs7; 03-31-2007 at 06:18 PM. |
| zacs7 is offline | |
| | #20 | ||||
| Frequently Quite Prolix Join Date: Apr 2005 Location: Canada
Posts: 7,698
| Quote:
Quote:
Code: linkfuncbb=[url= linkfuncba=] linkfunca=[/url] linkfuncurl=http://www.opengroup.org/pubs/online/7908799/xsh/ =keyword atoi:$(linkfuncbb)$(linkfuncurl)atoi$(linkfuncba):$(linkfunca) printf:$(linkfuncbb)$(linkfuncurl)printf$(linkfuncba):$(linkfunca) ) I still need to find a list of C functions, though. (Feel free to find one. :P) It's used like so:Code: $ codeform -f rules/c_1_vbb -f rules/clinkfunc Quote:
Quote:
__________________ dwk Seek and ye shall find. quaere et invenies. "Simplicity does not precede complexity, but follows it." -- Alan Perlis "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra "The only real mistake is the one from which we learn nothing." -- John Powell Other boards: DaniWeb, TPS Unofficial Wiki FAQ: cpwiki.sf.net My website: http://dwks.theprogrammingsite.com/ Projects: codeform, xuni, atlantis, nort, etc. | ||||
| dwks is offline | |
| | #21 |
| Woof, woof! Join Date: Mar 2007 Location: Australia
Posts: 3,295
| I created a IRC bot a while ago, in the process I made a list of most of the standard C functions.... See the attachment, I know it doesn't contain URLS, but its a start - and it does explain what each does. Perhaps you could add tooltips for the standard funcs instead (so it doesn't rely on the internet) |
| zacs7 is offline | |
| | #22 |
| Frequently Quite Prolix Join Date: Apr 2005 Location: Canada
Posts: 7,698
| Thanks for the list. I'll transform it into some codeform files as soon as I can (probably by tomorrow night). One to turn "printf" into Code: $(clinkfuncbb)$(clinkfuncurl)printf$(clinkfuncba)printf$(clinkfunca) Code: [url=http://www.opengroup.org/pubs/online/7908799/xsh/printf]printf[/url] Code: <a alt="printf(f, ...) is equivalent to fprintf(stdout, f, ...)">printf</a>
__________________ dwk Seek and ye shall find. quaere et invenies. "Simplicity does not precede complexity, but follows it." -- Alan Perlis "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra "The only real mistake is the one from which we learn nothing." -- John Powell Other boards: DaniWeb, TPS Unofficial Wiki FAQ: cpwiki.sf.net My website: http://dwks.theprogrammingsite.com/ Projects: codeform, xuni, atlantis, nort, etc. |
| dwks is offline | |
| | #24 |
| Frequently Quite Prolix Join Date: Apr 2005 Location: Canada
Posts: 7,698
| Sorry, I haven't finished the clinkfunc rules (as they are to be called) yet. My estimates are always off . . . six months before I first released codeform I said "codeform should be finished within two weeks or maybe three." I have implemented doubling-the-allocated-memory-size. It hasn't been uploaded yet though. (It's a simple two line change to get_string().) I have attached the latest version of codeform online's Perl script in case anyone's interested. [edit] I attached the wrong file. I'm also attaching the Perl script now. [/edit]
__________________ dwk Seek and ye shall find. quaere et invenies. "Simplicity does not precede complexity, but follows it." -- Alan Perlis "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra "The only real mistake is the one from which we learn nothing." -- John Powell Other boards: DaniWeb, TPS Unofficial Wiki FAQ: cpwiki.sf.net My website: http://dwks.theprogrammingsite.com/ Projects: codeform, xuni, atlantis, nort, etc. Last edited by dwks; 04-02-2007 at 02:56 PM. |
| dwks is offline | |
| | #25 |
| Crazy Fool Join Date: Jan 2003 Location: Canada
Posts: 2,596
| how about linking standard (or common lib) functions to online definitions (like online man pages or something).
__________________ jeff.bagu.org - Terrain rendering and other random stuff |
| Perspective is offline | |
| | #26 |
| Registered User Join Date: Dec 2002
Posts: 487
| note. i did put math.h functions names in winapi list. they are included just the names. note 2. if anyone wants dx9 list. i may start on it sometime. |
| kryptkat is offline | |
| | #27 | ||
| Frequently Quite Prolix Join Date: Apr 2005 Location: Canada
Posts: 7,698
| Quote:
Quote:
__________________ dwk Seek and ye shall find. quaere et invenies. "Simplicity does not precede complexity, but follows it." -- Alan Perlis "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra "The only real mistake is the one from which we learn nothing." -- John Powell Other boards: DaniWeb, TPS Unofficial Wiki FAQ: cpwiki.sf.net My website: http://dwks.theprogrammingsite.com/ Projects: codeform, xuni, atlantis, nort, etc. | ||
| dwks is offline | |
| | #28 |
| Frequently Quite Prolix Join Date: Apr 2005 Location: Canada
Posts: 7,698
| I've decided to risk it and host codeform version 1.2.0 online. Perhaps it should have a new thread -- but too late now. ![]() Codeform version 1.2.0 online: http://dwks.theprogrammingsite.com/m...e/cfonline.htm Tell me how you like it. If you find any bugs please let me know. Just as before, input files are limited to 32KB in size. The Windows API rules are also supported (only for style 1). I may not keep codeform online up and running forever, but if I stop hosting it I'll let everyone know here. [edit] The Perl script is attached, with .txt added. [/edit]
__________________ dwk Seek and ye shall find. quaere et invenies. "Simplicity does not precede complexity, but follows it." -- Alan Perlis "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra "The only real mistake is the one from which we learn nothing." -- John Powell Other boards: DaniWeb, TPS Unofficial Wiki FAQ: cpwiki.sf.net My website: http://dwks.theprogrammingsite.com/ Projects: codeform, xuni, atlantis, nort, etc. |
| dwks is offline | |
| | #29 |
| MENTAL DETECTOR Join Date: Apr 2006 Location: United States
Posts: 3,295
| > If you find any bugs please let me know. The browser will parse #include <header> as #include, and template stuff will also act up, which is wrong. At least let your users knw this is the case to avoid a surprise. Other than that, you've done a nifty job so far. |
| whiteflags is offline | |
| | #30 | |
| Frequently Quite Prolix Join Date: Apr 2005 Location: Canada
Posts: 7,698
| What do you mean? Code: #include <stdio.h> template <typename t> Code: #include <stdio.h> Code: =keyword #include:[color=green]:[/color] #define:...etc... Quote:
__________________ dwk Seek and ye shall find. quaere et invenies. "Simplicity does not precede complexity, but follows it." -- Alan Perlis "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra "The only real mistake is the one from which we learn nothing." -- John Powell Other boards: DaniWeb, TPS Unofficial Wiki FAQ: cpwiki.sf.net My website: http://dwks.theprogrammingsite.com/ Projects: codeform, xuni, atlantis, nort, etc. Last edited by dwks; 04-03-2007 at 12:16 PM. | |
| dwks is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| No Version info tab in file properties? | cpjust | Windows Programming | 2 | 06-03-2008 03:42 PM |
| How to set File Version of VC++ 6 dll | mercury529 | Windows Programming | 3 | 12-08-2006 02:49 PM |
| Finding the windows version... | The_Muffin_Man | Windows Programming | 1 | 06-10-2004 11:39 PM |
| Dev C++ Version 5 | Zoalord | C++ Programming | 3 | 08-30-2003 01:56 PM |
| Problem building Quake source | Silvercord | Game Programming | 14 | 01-25-2003 10:01 PM |