NO

Author Topic: Line Counter Add-IN  (Read 11680 times)

Grincheux

  • Guest
Re: Line Counter Add-IN
« Reply #60 on: June 16, 2021, 05:55:07 pm »
Quote
File name:C:\Users\51966\Documents\Pelles C Projects\ImgView\ImgView.asm
Start Line:1, End Line:5609
  Total Lines   : 5609
  Empty Lines   : 982
  .Const       : 206
  .Data       : 32
  Lone Labels     : 163
  Comment Lines   : 637
  Code Lines   : 3580
  Functions   : 39
---------
323   Error
339   Delete_Error
361   Delete_Warning
383   MyBrowseCallbackProc
403   BrowseForFolder
452   Profile_Read
588   Profile_Write
751   WmSize
871   DeleteFiles_Common
1104   DeleteFiles
1432   CreateTheToolBar
1514   WriteToDataBase
1569   GetCurrentFileEx
1677   GetCurrentFile
1839   SearchFiles
2269   DeleteDuplicatedFiles
2402   DlgSortProc
2928   SortImages
3297   PaintFullScreen
3342   FullScreenProc
3418   LivstViewDoubleClick
3497   LivstViewDoubleClickEx
3566   PhotoFiltre
3693   EditFile
3820   RedChannel
3901   GreenChannel
3982   BlueChannel
4063   ChannelRedProc
4139   ShowChannelRed
4247   ChannelGreenProc
4323   ShowChannelGreen
4431   ChannelBlueProc
4507   ShowChannelBlue
4614   TabControlSubClassProc
4655   WmCommand
4816   WmCreate
5036   WndProc
5255   WinMain
5427   Start
----------

FlowTrace
File name:C:\Users\51966\Documents\Pelles C Projects\ImgView\ImgView.asm
  Calls under Procedure Error
  Calls under Procedure Delete_Error
Function [Error] on line 339
  Calls under Procedure Delete_Warning
  Calls under Procedure MyBrowseCallbackProc
  Calls under Procedure BrowseForFolder
Function [MyBrowseCallbackProc] on line 418
  Calls under Procedure Profile_Read
  Calls under Procedure Profile_Write
  Calls under Procedure WmSize
  Calls under Procedure DeleteFiles_Common
Function [Delete_Error] on line 905
Function [Delete_Error] on line 927
Function [Delete_Error] on line 941
Function [Delete_Error] on line 979
Function [Delete_Error] on line 1007
Function [Delete_Error] on line 1026
Function [Delete_Error] on line 1059
  Calls under Procedure DeleteFiles
Function [DeleteFiles] on line 1196
Function [DeleteFiles] on line 1329
Function [Delete_Warning] on line 1380
Function [Delete_Warning] on line 1393
Function [Delete_Warning] on line 1406
Function [Delete_Error] on line 1413
Function [Delete_Error] on line 1420
  Calls under Procedure CreateTheToolBar
  Calls under Procedure WriteToDataBase
  Calls under Procedure GetCurrentFileEx
Function [Error] on line 1617
Function [Error] on line 1630
Function [Error] on line 1664
  Calls under Procedure GetCurrentFile
Function [Error] on line 1780
Function [Error] on line 1793
Function [Error] on line 1827
  Calls under Procedure SearchFiles
Function [WriteToDataBase] on line 2166
  Calls under Procedure DeleteDuplicatedFiles
Function [Error] on line 2313
Function [Error] on line 2381
  Calls under Procedure DlgSortProc
  Calls under Procedure SortImages
Function [Error] on line 3195
Function [Error] on line 3217
  Calls under Procedure PaintFullScreen
Function [GetCurrentFileEx] on line 3317
  Calls under Procedure FullScreenProc
Function [PaintFullScreen] on line 3377
  Calls under Procedure LivstViewDoubleClick
  Calls under Procedure LivstViewDoubleClickEx
Function [GetCurrentFile] on line 3502
  Calls under Procedure PhotoFiltre
Function [Error] on line 3616
Function [Error] on line 3630
  Calls under Procedure EditFile
Function [PhotoFiltre] on line 3759
Function [PhotoFiltre] on line 3807
  Calls under Procedure RedChannel
  Calls under Procedure GreenChannel
  Calls under Procedure BlueChannel
  Calls under Procedure ChannelRedProc
  Calls under Procedure ShowChannelRed
Function [GetCurrentFile] on line 4147
Function [WmSize] on line 4236
  Calls under Procedure ChannelGreenProc
  Calls under Procedure ShowChannelGreen
Function [GetCurrentFile] on line 4331
Function [WmSize] on line 4420
  Calls under Procedure ChannelBlueProc
  Calls under Procedure ShowChannelBlue
Function [GetCurrentFile] on line 4515
Function [WmSize] on line 4603
  Calls under Procedure TabControlSubClassProc
  Calls under Procedure WmCommand
Function [LivstViewDoubleClickEx] on line 4704
Function [ShowChannelRed] on line 4710
Function [ShowChannelGreen] on line 4716
Function [ShowChannelBlue] on line 4722
Function [EditFile] on line 4728
Function [BrowseForFolder] on line 4732
Function [SortImages] on line 4759
Function [DeleteFiles] on line 4767
Function [DeleteDuplicatedFiles] on line 4775
  Calls under Procedure WmCreate
Function [CreateTheToolBar] on line 4846
  Calls under Procedure WndProc
Function [LivstViewDoubleClick] on line 5156
Function [WmSize] on line 5215
Function [WmCommand] on line 5221
Function [WmCreate] on line 5227
  Calls under Procedure WinMain
  Calls under Procedure Start
Function [Profile_Read] on line 5496
Function [Error] on line 5530
Function [Error] on line 5544
Function [WinMain] on line 5565
Function [Profile_Write] on line 5567
----- done -----
LineCount Results in file:
C:\Users\51966\Documents\Pelles C Projects\ImgView\LC_output.html


Like this I like

Offline John Z

  • Member
  • *
  • Posts: 531
Re: Line Counter Add-IN
« Reply #61 on: June 16, 2021, 06:02:25 pm »
Here is the html and seems I've got some more work to do with the filename/output location too.


John Z

removed old attachments to free upload space
« Last Edit: August 17, 2022, 04:30:57 pm by John Z »

Grincheux

  • Guest
Re: Line Counter Add-IN
« Reply #62 on: June 16, 2021, 06:28:31 pm »
You can have a function in *.c module which is referenced only once but called many times in a *.asm file.
This is the case for extern functions.

Offline John Z

  • Member
  • *
  • Posts: 531
Re: Line Counter Add-IN
« Reply #63 on: June 18, 2021, 02:07:32 pm »
Improved parsing especially for sqlite3.h, and fixed filename bug referenced above.
Still have a few false functions, for example this line
__asm__ __volatile__ (
is identified as function __volatile__, more work to do.....

John Z
« Last Edit: June 20, 2021, 02:30:44 pm by John Z »

Grincheux

  • Guest
Re: Line Counter Add-IN
« Reply #64 on: June 18, 2021, 03:37:18 pm »
Quote
File name:C:\Users\51966\Documents\Pelles C Projects\ImgView\Images.c
 Start Line:1, End Line:855
  Total Lines   : 855
  Empty Lines   : 185
  Lone {      : 79
  Lone }      : 77
  All {      : 79
  All }      : 79
  Comment Lines   : 18
  Code Lines   : 486
  Functions   : 10
---------
90   Dec2Hex
127   Sph_Keccak_256
139   ImageResize
182   GetBitsFromBitmapHandle
227   ImageGetBitmap
315   ImageGetThumbNails
439   LoadImageFromFile
534   LoadImageFromFileEx
668   GetBitsOfBitmap
769   PaintChannel
----------
File name:C:\Users\51966\Documents\Pelles C Projects\ImgView\ImgView.asm
 Start Line:1, End Line:5934
  Total Lines   : 5934
  Empty Lines   : 1022
  .Const       : 216
  .Data       : 31
  Lone Labels     : 174
  Comment Lines   : 682
  Code Lines   : 3800
  Functions   : 41
---------
335   Error
351   Delete_Error
373   Delete_Warning
395   MyBrowseCallbackProc
415   BrowseForFolder
464   Profile_Read
609   Profile_Write
784   WmSize
904   DeleteFiles_Common
1137   DeleteFiles
1465   CreateTheToolBar
1547   WriteToDataBase
1602   GetCurrentFileEx2
1746   GetCurrentFileEx
1854   GetCurrentFile
2016   SearchFiles
2470   DeleteDuplicatedFiles
2606   DlgSortProc
3132   SortImages
3501   PaintFullScreen
3546   FullScreenProc
3622   LivstViewDoubleClick
3701   LivstViewDoubleClickEx
3783   ListViewOneClick
3839   PhotoFiltre
3966   EditFile
4093   RedChannel
4174   GreenChannel
4255   BlueChannel
4336   ChannelRedProc
4412   ShowChannelRed
4520   ChannelGreenProc
4596   ShowChannelGreen
4704   ChannelBlueProc
4780   ShowChannelBlue
4887   TabControlSubClassProc
4928   WmCommand
5092   WmCreate
5316   WndProc
5566   WinMain
5738   Start
----------
File name:C:\Users\51966\Documents\Pelles C Projects\ImgView\ImgView.inc
 Start Line:1, End Line:130
  Total Lines   : 130
  Empty Lines   : 34
  Comment Lines   : 1
335   Error
351   Delete_Error
373   Delete_Warning
395   MyBrowseCallbackProc
415   BrowseForFolder
464   Profile_Read
609   Profile_Write
784   WmSize
904   DeleteFiles_Common
1137   DeleteFiles
1465   CreateTheToolBar
1547   WriteToDataBase
1602   GetCurrentFileEx2
1746   GetCurrentFileEx
1854   GetCurrentFile
2016   SearchFiles
2470   DeleteDuplicatedFiles
2606   DlgSortProc
3132   SortImages
3501   PaintFullScreen
3546   FullScreenProc
3622   LivstViewDoubleClick
3701   LivstViewDoubleClickEx
3783   ListViewOneClick
3839   PhotoFiltre
3966   EditFile
4093   RedChannel
4174   GreenChannel
4255   BlueChannel
4336   ChannelRedProc
4412   ShowChannelRed
4520   ChannelGreenProc
4596   ShowChannelGreen
4704   ChannelBlueProc
4780   ShowChannelBlue
4887   TabControlSubClassProc
4928   WmCommand
5092   WmCreate
5316   WndProc
5566   WinMain
5738   Start
----------

*Summary results*
  Total Lines   : 6919
  Empty Lines   : 1241
  Lone {      : 79
  Lone }      : 77
  All {      : 79
  All }      : 79
  .Data       : 31
  Lone Labels     : 174
  Comment Lines   : 701
  Code Lines   : 4286
  Functions   : 51
---------

FlowTrace
File name:C:\Users\51966\Documents\Pelles C Projects\ImgView\Images.c
Function [RedChannel] on line 83
Function [GreenChannel] on line 84
Function [BlueChannel] on line 85
Function [GetCurrentFile] on line 86
Function [GetCurrentFileEx] on line 87
  Calls under Procedure Dec2Hex
  Calls under Procedure Sph_Keccak_256
Function [Dec2Hex] on line 134
  Calls under Procedure ImageResize
  Calls under Procedure GetBitsFromBitmapHandle
  Calls under Procedure ImageGetBitmap
Function [ImageResize] on line 284
  Calls under Procedure ImageGetThumbNails
Function [ImageResize] on line 384
Function [GetBitsFromBitmapHandle] on line 402
Function [Sph_Keccak_256] on line 405
  Calls under Procedure LoadImageFromFile
Function [ImageResize] on line 494
  Calls under Procedure LoadImageFromFileEx
Function [ImageResize] on line 612
Function [Sph_Keccak_256] on line 616
  Calls under Procedure GetBitsOfBitmap
Function [ImageResize] on line 738
  Calls under Procedure PaintChannel
Function [GetBitsOfBitmap] on line 796
Function [ImageResize] on line 811
Function [RedChannel] on line 815
Function [GreenChannel] on line 816
Function [BlueChannel] on line 817

FlowTrace
File name:C:\Users\51966\Documents\Pelles C Projects\ImgView\ImgView.asm
  Calls under Procedure Error
  Calls under Procedure Delete_Error
Function [Error] on line 351
  Calls under Procedure Delete_Warning
  Calls under Procedure MyBrowseCallbackProc
  Calls under Procedure BrowseForFolder
Function [MyBrowseCallbackProc] on line 430
  Calls under Procedure Profile_Read
  Calls under Procedure Profile_Write
  Calls under Procedure WmSize
  Calls under Procedure DeleteFiles_Common
Function [Delete_Error] on line 938
Function [Delete_Error] on line 960
Function [Delete_Error] on line 974
Function [Delete_Error] on line 1012
Function [Delete_Error] on line 1040
Function [Delete_Error] on line 1059
Function [Delete_Error] on line 1092
  Calls under Procedure DeleteFiles
Function [DeleteFiles] on line 1229
Function [DeleteFiles] on line 1362
Function [Delete_Warning] on line 1413
Function [Delete_Warning] on line 1426
Function [Delete_Warning] on line 1439
Function [Delete_Error] on line 1446
Function [Delete_Error] on line 1453
  Calls under Procedure CreateTheToolBar
  Calls under Procedure WriteToDataBase
  Calls under Procedure GetCurrentFileEx2
Function [Error] on line 1668
Function [Error] on line 1681
  Calls under Procedure GetCurrentFileEx
Function [Error] on line 1794
Function [Error] on line 1807
Function [Error] on line 1841
  Calls under Procedure GetCurrentFile
Function [Error] on line 1957
Function [Error] on line 1970
Function [Error] on line 2004
  Calls under Procedure SearchFiles
Function [Error] on line 2107
Function [ImageGetThumbNails] on line 2340
Function [WriteToDataBase] on line 2370
  Calls under Procedure DeleteDuplicatedFiles
Function [Error] on line 2517
Function [Error] on line 2585
  Calls under Procedure DlgSortProc
  Calls under Procedure SortImages
Function [Error] on line 3399
Function [Error] on line 3421
  Calls under Procedure PaintFullScreen
Function [GetCurrentFileEx] on line 3521
Function [ImageGetBitmap] on line 3529
  Calls under Procedure FullScreenProc
Function [PaintFullScreen] on line 3581
  Calls under Procedure LivstViewDoubleClick
  Calls under Procedure LivstViewDoubleClickEx
Function [GetCurrentFile] on line 3706
  Calls under Procedure ListViewOneClick
Function [GetCurrentFileEx2] on line 3790
  Calls under Procedure PhotoFiltre
Function [Error] on line 3889
Function [Error] on line 3903
  Calls under Procedure EditFile
Function [PhotoFiltre] on line 4032
Function [PhotoFiltre] on line 4080
  Calls under Procedure RedChannel
  Calls under Procedure GreenChannel
  Calls under Procedure BlueChannel
  Calls under Procedure ChannelRedProc
Function [PaintChannel] on line 4371
  Calls under Procedure ShowChannelRed
Function [GetCurrentFile] on line 4420
Function [WmSize] on line 4509
  Calls under Procedure ChannelGreenProc
Function [PaintChannel] on line 4555
  Calls under Procedure ShowChannelGreen
Function [GetCurrentFile] on line 4604
Function [WmSize] on line 4693
  Calls under Procedure ChannelBlueProc
Function [PaintChannel] on line 4739
  Calls under Procedure ShowChannelBlue
Function [GetCurrentFile] on line 4788
Function [WmSize] on line 4876
  Calls under Procedure TabControlSubClassProc
  Calls under Procedure WmCommand
Function [LivstViewDoubleClickEx] on line 4992
Function [ShowChannelRed] on line 4998
Function [ShowChannelGreen] on line 5004
Function [ShowChannelBlue] on line 5010
Function [EditFile] on line 5016
Function [BrowseForFolder] on line 5020
Function [SortImages] on line 5046
Function [DeleteFiles] on line 5052
Function [DeleteDuplicatedFiles] on line 5058
  Calls under Procedure WmCreate
Function [CreateTheToolBar] on line 5122
  Calls under Procedure WndProc
Function [LivstViewDoubleClick] on line 5460
Function [ListViewOneClick] on line 5471
Function [WmSize] on line 5526
Function [WmCommand] on line 5532
Function [WmCreate] on line 5538
  Calls under Procedure WinMain
  Calls under Procedure Start
Function [Profile_Read] on line 5823
Function [Error] on line 5857
Function [Error] on line 5871
Function [WinMain] on line 5892
Function [Profile_Write] on line 5894

FlowTrace
File name:C:\Users\51966\Documents\Pelles C Projects\ImgView\ImgView.inc
----- done -----
LineCount Results in file:
C:\Users\51966\Documents\Pelles C Projects\ImgView\LC_output.html

PERFECT
« Last Edit: June 18, 2021, 03:39:17 pm by Grincheux »

Grincheux

  • Guest
Re: Line Counter Add-IN
« Reply #65 on: June 18, 2021, 03:44:01 pm »
By curiosity I asked the linker to make a map file.
In many cases you addin more useful.
Quote
ImgView.exe

 Timestamp is 60cca229 (Fri Jun 18 15:39:53 2021)

 Preferred load address is 0000000140000000

 Start         Length     Name                   Class
 0001:00000000 0000ab2dH .text                   CODE
 0002:00000000 000018e0H .rdata                  DATA
 0002:000018e0 00000110H .xdata                  DATA
 0003:00000000 000000b4H .pdata                  DATA
 0004:00000000 000000b4H .idata$2                DATA
 0004:000000b4 00000014H .idata$3                DATA
 0004:000000c8 000003b0H .idata$4                DATA
 0004:00000478 000003b0H .idata$5                DATA
 0004:00000828 0000081aH .idata$6                DATA
 0004:00001050 00000b58H .bss                    DATA
 0005:00000000 0003e278H .rsrc                   DATA
 0006:00000000 000003c8H .reloc                  DATA

  Address         Publics by Value              Rva+Base             Lib:Object

 0001:00000000       ClearMem                   0000000140001000 f   ClearMem.obj
 0001:00000041       CompareQSortProc           0000000140001041 f   ClearMem.obj
 0001:00003eb0       sph_keccak224_init         0000000140004eb0 f   Fns_Keccak.obj
 0001:00003ec0       sph_keccak224              0000000140004ec0 f   Fns_Keccak.obj
 0001:00003ed0       sph_keccak224_close        0000000140004ed0 f   Fns_Keccak.obj
 0001:00003ee0       sph_keccak224_addbits_and_close 0000000140004ee0 f   Fns_Keccak.obj
 0001:00003ef0       sph_keccak256_init         0000000140004ef0 f   Fns_Keccak.obj
 0001:00003f00       sph_keccak256              0000000140004f00 f   Fns_Keccak.obj
 0001:00003f10       sph_keccak256_close        0000000140004f10 f   Fns_Keccak.obj
 0001:00003f20       sph_keccak256_addbits_and_close 0000000140004f20 f   Fns_Keccak.obj
 0001:00003f30       sph_keccak384_init         0000000140004f30 f   Fns_Keccak.obj
 0001:00003f40       sph_keccak384              0000000140004f40 f   Fns_Keccak.obj
 0001:00003f50       sph_keccak384_close        0000000140004f50 f   Fns_Keccak.obj
 0001:00003f60       sph_keccak384_addbits_and_close 0000000140004f60 f   Fns_Keccak.obj
 0001:00003f70       sph_keccak512_init         0000000140004f70 f   Fns_Keccak.obj
 0001:00003f80       sph_keccak512              0000000140004f80 f   Fns_Keccak.obj
 0001:00003f90       sph_keccak512_close        0000000140004f90 f   Fns_Keccak.obj
 0001:00003fa0       sph_keccak512_addbits_and_close 0000000140004fa0 f   Fns_Keccak.obj
 0001:00003fb0       Dec2Hex                    0000000140004fb0 f   Images.obj
 0001:00004040       Sph_Keccak_256             0000000140005040 f   Images.obj
 0001:000040a0       ImageResize                00000001400050a0 f   Images.obj
 0001:00004130       GetBitsFromBitmapHandle    0000000140005130 f   Images.obj
 0001:00004260       ImageGetBitmap             0000000140005260 f   Images.obj
 0001:00004540       ImageGetThumbNails         0000000140005540 f   Images.obj
 0001:00004980       LoadImageFromFile          0000000140005980 f   Images.obj
 0001:00004c50       LoadImageFromFileEx        0000000140005c50 f   Images.obj
 0001:000050c0       GetBitsOfBitmap            00000001400060c0 f   Images.obj
 0001:000053d0       PaintChannel               00000001400063d0 f   Images.obj
 0001:00005780       Error                      0000000140006780 f   ImgView.obj
 0001:000057b0       Delete_Error               00000001400067b0 f   ImgView.obj
 0001:000057f0       Delete_Warning             00000001400067f0 f   ImgView.obj
 0001:00005830       MyBrowseCallbackProc       0000000140006830 f   ImgView.obj
 0001:00005870       BrowseForFolder            0000000140006870 f   ImgView.obj
 0001:00005930       Profile_Read               0000000140006930 f   ImgView.obj
 0001:00005c20       Profile_Write              0000000140006c20 f   ImgView.obj
 0001:00006030       WmSize                     0000000140007030 f   ImgView.obj
 0001:000061f0       DeleteFiles_Common         00000001400071f0 f   ImgView.obj
 0001:00006500       DeleteFiles                0000000140007500 f   ImgView.obj
 0001:000069a0       CreateTheToolBar           00000001400079a0 f   ImgView.obj
 0001:00006b00       WriteToDataBase            0000000140007b00 f   ImgView.obj
 0001:00006bd6       GetCurrentFileEx2          0000000140007bd6 f   ImgView.obj
 0001:00006dc9       GetCurrentFileEx           0000000140007dc9 f   ImgView.obj
 0001:00006f30       GetCurrentFile             0000000140007f30 f   ImgView.obj
 0001:00007140       SearchFiles                0000000140008140 f   ImgView.obj
 0001:00007880       DeleteDuplicatedFiles      0000000140008880 f   ImgView.obj
 0001:00007ab0       DlgSortProc                0000000140008ab0 f   ImgView.obj
 0001:000081f0       SortImages                 00000001400091f0 f   ImgView.obj
 0001:00008730       PaintFullScreen            0000000140009730 f   ImgView.obj
 0001:000087b0       FullScreenProc             00000001400097b0 f   ImgView.obj
 0001:00008890       LivstViewDoubleClick       0000000140009890 f   ImgView.obj
 0001:00008990       LivstViewDoubleClickEx     0000000140009990 f   ImgView.obj
 0001:00008a90       ListViewOneClick           0000000140009a90 f   ImgView.obj
 0001:00008b90       PhotoFiltre                0000000140009b90 f   ImgView.obj
 0001:00008d40       EditFile                   0000000140009d40 f   ImgView.obj
 0001:00008ee0       RedChannel                 0000000140009ee0 f   ImgView.obj
 0001:00008f80       GreenChannel               0000000140009f80 f   ImgView.obj
 0001:00009020       BlueChannel                000000014000a020 f   ImgView.obj
 0001:000090c0       ChannelRedProc             000000014000a0c0 f   ImgView.obj
 0001:000091b0       ShowChannelRed             000000014000a1b0 f   ImgView.obj
 0001:00009390       ChannelGreenProc           000000014000a390 f   ImgView.obj
 0001:00009480       ShowChannelGreen           000000014000a480 f   ImgView.obj
 0001:00009660       ChannelBlueProc            000000014000a660 f   ImgView.obj
 0001:00009750       ShowChannelBlue            000000014000a750 f   ImgView.obj
 0001:00009920       TabControlSubClassProc     000000014000a920 f   ImgView.obj
 0001:000099a0       WmCommand                  000000014000a9a0 f   ImgView.obj
 0001:00009bd0       WmCreate                   000000014000abd0 f   ImgView.obj
 0001:0000a030       WndProc                    000000014000b030 f   ImgView.obj
 0001:0000a3a0       WinMain                    000000014000b3a0 f   ImgView.obj
 0001:0000a620       Start                      000000014000b620 f   ImgView.obj

 entry point at        0001:0000a620

 Static symbols

 0001:000000d0       keccak_core                00000001400010d0 f   Fns_Keccak.obj
 0001:000039f0       keccak_close28             00000001400049f0 f   Fns_Keccak.obj
 0001:00003b20       keccak_close32             0000000140004b20 f   Fns_Keccak.obj
 0001:00003c50       keccak_close48             0000000140004c50 f   Fns_Keccak.obj
 0001:00003d80       keccak_close64             0000000140004d80 f   Fns_Keccak.obj
 0001:00000050       keccak_init                0000000140001050 f   Fns_Keccak.obj

Offline John Z

  • Member
  • *
  • Posts: 531
Re: Line Counter Add-IN
« Reply #66 on: June 20, 2021, 02:45:28 pm »
Improvements  :)
Thought I had a big problem as in Pelles C project window it shows no procs for FNS_Keccak.c in your ImgView.ppj project, but turns out there are, and LineCount is right, mostly.  However LineCount shows four false functions because they are defines 'DEFCLOSE' which 'appear' as functions to it.  I can improve more.  attached output files in text and HTML for the entire ImgView project, 34,002 lines worth.  :)

I ran your ImgView program too, screen shot attached.  I do wish it would delete into the Recycle bin though.  Very nice display, nice icons on the toolbar even though most inactivated.  Would be great to show a tooltip when hovering over a button.  Kibitzing . . . . kibitiser


John Z

removed jpg attachment to free upload space
« Last Edit: August 17, 2022, 04:32:48 pm by John Z »

Grincheux

  • Guest
Re: Line Counter Add-IN
« Reply #67 on: June 20, 2021, 03:43:51 pm »

Stop John You Add-In is PERFECT. and VERY USEFUL.

I have added more options in ImgView and here is a link to it https://www.mediafire.com/file/r67hlalofxr360n/ImgView.7z/file
You can sort the files
Delete one or more files
Delete duplicated files (Just modify the imgwiew.ini)
Red, Green and Blue Channels
Grey Conversions (not standard, I don't like the standards...)
Added fullscreen view (F11 or Double-Click)
Possibility to edit the file (F3) with an external editor
You can now change of folder.
You can refresh the folder (F5)
When you open a tab, double-click on it to close it
I am working on mirrors, you will laugth
I don't want to do what other programmers did before me and better than I.
To exit the fullscreen press ESCape
I advance very slowly because I very often come back to my code, add messages where there is none...
The IDE does not help me very much.
And when I solve a problem, if It could help someone I make a tuto.
There is no save option, it will become but in the last part of the project
When saving I will let the user to set a name (GetSaveFilename)
The idea is that I open the file, read it, close it and draw.
If you want to save the result give a new name or not, but it is your choice.
You will never write into the original one.
« Last Edit: June 20, 2021, 03:46:21 pm by Grincheux »

Grincheux

  • Guest
Re: Line Counter Add-IN
« Reply #68 on: June 20, 2021, 03:56:17 pm »
My avatar is one of the mirrors. ;D

Offline John Z

  • Member
  • *
  • Posts: 531
Re: Line Counter Add-IN
« Reply #69 on: June 20, 2021, 05:24:53 pm »
 :) Looks more like your blog page :)

One use for the Add-In is if you believe in code reuse.  It is good for building an inventory list of procedures and where they can be found. 

I downloaded your newest ImgView. Thanks.
I tried to close the RED tab with the X - my bad, file deleted.  I did not read your instructions carefully enough, you wrote clearly "When you open a tab, double-click on it to close it". Fortunately not irreplaceable picture file.  Recuva could not get it back either.....

John Z

Offline John Z

  • Member
  • *
  • Posts: 531
Re: Line Counter Add-IN 1.7.5
« Reply #70 on: June 24, 2021, 02:15:09 pm »
Bug fixes and improvements to processing and procedure detection. Maybe a bit faster.
Unless bugs found no more versions unless I decide to do a graphic using the FlowTrace data.  This would
show the program flow graphically.  Would be a lot of work not sure if time invested would be worthwhile.

John Z

Grincheux

  • Guest
Re: Line Counter Add-IN
« Reply #71 on: June 24, 2021, 04:27:54 pm »
I agree with you

Grincheux

  • Guest
Re: Line Counter Add-IN
« Reply #72 on: June 24, 2021, 04:36:26 pm »
Quote
3) API 'AddIn_GetSourceLine' throws a warning #2805: Possible violation
   of strict-aliasing rules when compile is set to Level 2. No other
   warnings or errors should be reported
#pragma warn(disable: 2805)
if(User is Pleased)
{
#pragma message("Merci JohnZ")
}
« Last Edit: June 24, 2021, 04:40:21 pm by Grincheux »

Offline John Z

  • Member
  • *
  • Posts: 531
Re: Line Counter Add-IN
« Reply #73 on: June 25, 2021, 06:18:04 pm »
 :)
I am pragmatic but I like to fix all errors and warnings IF possible, pounding pragma if not.

Starting add-in #2

Thanks Sir Grincheux.

John Z

Grincheux

  • Guest
Re: Line Counter Add-IN
« Reply #74 on: October 24, 2021, 05:56:02 pm »
Perhaps a problem