Pelles C > Add-ins

Line Counter Add-IN

(1/17) > >>

John Z:
Here is version 1.7.6.1 of an Add-In for PellesC (of course).
This Add-In is a Line counter. I saw a forum member ask for one.
The Add-In will be a menu item under the main menu 'Source.' It
will show as "Line Counts +".

It will do more than just line counting. You can get the line number for each user procedure.  You can also get list of all user procedures called from within each user procedure.  BTW the user procedure determination is independent and not using the treeview information from the project window.

John Z

Update 6/24 - The attachment here is the latest version 1.7.5 to make it easy  :)
Update 7/6/2023 - The attachment here is the Pelles C V12.002 build to version 1.7.6
Update 8/14/2023 - The attachment here is the Pelles C V12.002 build to version 1.7.6.1
Update 11/01/2023 - The attachment here is the Pelles C V12.002 build to version 1.7.7

Grincheux:
I have loaded your addin but I can't see any line. :-[

John Z:
perhaps a step wise instruction
1) Close PellesC
2) Copy the dll into the "Bin" folder subfolder "Addins64"
3) Open PellesC
4) Click 'Tools'
5) Click 'Customize'
6) Click 'Add-Ins' tab
7) Check box next to "PellesC Line Counte Add-In"  (I see typo)
8) Click OK

Steps 1-8 only need to be done the first time

9) Open a PellesC project file
10) Select a source .C file
11) Click Menu 'Source'
12) Click 'Line Counts'   - Should be there ;) like attached screen shot

13) See results in Output tab

John Z

Grincheux:

--- Quote ---File name:C:\Users\51966\OneDrive\Documents\Pelles C Projects\Essai\Start.asm
startLine:90, endLine:93
Total Lines: 4
 Empty Lines: 1
 Code Lines: 3
--- End quote ---


With my current ASM Project

Grincheux:
Tested on CFE project



--- Quote ---File name:C:\Users\51966\OneDrive\Documents\Pelles C Projects\Cfe\Cfe.c
startLine:0, endLine:5946
Total Lines: 5946
 Empty Lines: 1076
 Lone {: 350
 Lone {: 348
 Comment Lines: 8
 Continuations: 139
 Code Lines: 4025

--- End quote ---

Navigation

[0] Message Index

[#] Next page

Go to full version