https://bfwiki.tellefsen.net//index.php?title=Development_-_Naming&feed=atom&action=historyDevelopment - Naming - Revision history2024-03-29T08:42:57ZRevision history for this page on the wikiMediaWiki 1.38.2https://bfwiki.tellefsen.net//index.php?title=Development_-_Naming&diff=1811&oldid=prevBill Valaski: moved Man 2 ch12s02 to Development - Naming: Title updates (BV)2010-07-09T10:13:57Z<p>moved <a href="/index.php/Man_2_ch12s02" class="mw-redirect" title="Man 2 ch12s02">Man 2 ch12s02</a> to <a href="/index.php/Development_-_Naming" title="Development - Naming">Development - Naming</a>: Title updates (BV)</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<tr class="diff-title" lang="en">
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 11:13, 9 July 2010</td>
</tr><tr><td colspan="2" class="diff-notice" lang="en"><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>Bill Valaskihttps://bfwiki.tellefsen.net//index.php?title=Development_-_Naming&diff=1001&oldid=prevFal7i: Created page with '__NOTOC__ __NOEDITSECTION__ {{Man2top |lang=en |rev=2.0.0 |st=d |Title=2. Naming |prev=Man 2 ch12 |Subtitle=Chapter XII. Development guidelines |next=Man 2 ch12s03…'2009-12-30T09:02:41Z<p>Created page with '__NOTOC__ __NOEDITSECTION__ {{Man2top |lang=en |rev=2.0.0 |st=d |Title=2. Naming |prev=Man 2 ch12 |Subtitle=Chapter XII. Development guidelines |next=Man 2 ch12s03…'</p>
<p><b>New page</b></p><div>__NOTOC__<br />
__NOEDITSECTION__<br />
{{Man2top<br />
|lang=en<br />
|rev=2.0.0<br />
|st=d<br />
|Title=2.&nbsp;Naming<br />
|prev=Man 2 ch12<br />
|Subtitle=Chapter&nbsp;XII.&nbsp;Development guidelines<br />
|next=Man 2 ch12s03<br />
}}<br />
== 2. Naming ==<br />
For non-local functions, the name should preferably include a prefix that shows the part of bluefish it is used for. There are, furthermore, many often used abbreviations in the bluefish code, such as:<br />
<br />
'''Abbreviations used in the Bluefish code'''<br />
<br />
doc <br />
<br />
A function for handling a specific document<br />
<br />
bfwin <br />
<br />
A function for handling a specific Bluefish window<br />
<br />
cb <br />
<br />
Callback, a function called after a button click or some other event<br />
<br />
lcb <br />
<br />
Local callback, a function called after an event, only used in this .c file<br />
<br />
Here are such function names that show where they are from, what they handle, and/or what they do<br />
<br />
'''Examples of function names in Bluefish'''<br />
<br />
bmark_set_for_doc <br />
<br />
Bookmark code, sets bookmarks for a document<br />
<br />
spell_check_cb <br />
<br />
Spell check code, this is a callback function (for a button)<br />
<br />
project_open_from_file <br />
<br />
Project code, opens a new project from a given file name<br />
<br />
<br />
<br />
{{Man2bottom<br />
|prev=Man 2 ch12<br />
|up=Man 2 ch12<br />
|next=Man 2 ch12s03<br />
|prevname= Chapter&nbsp;XII.&nbsp;Development guidelines<br />
|nextname=3.&nbsp;Declaring procedures<br />
}}</div>Fal7i