Skip to content

Commit

Permalink
Code Style: Ensure that each operation argument is separated by a comma
Browse files Browse the repository at this point in the history
Igor Pro does allow omitting the comma between the first and second
argument of an operation and also allows adding extranous commas before
the first argument.

This isn't considered as good coding style [1].

[1]: byte-physics/igor-pro-coding-conventions#33
  • Loading branch information
Garados007 committed Jul 28, 2023
1 parent 080690c commit 9161a28
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions procedures/igortest-tracing.ipf
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,7 @@ static Function AnalyzeTracingResult()
if(!(execC + nobranchC + branchC))
sprintf prefix, procLineFormat + "|________|________|________|", j
prefix += procLine + "\r"
Notebook NBTracedData selection={endOfFile, endOfFile}, text=prefix
Notebook NBTracedData, selection={endOfFile, endOfFile}, text=prefix
if(!marker[j][%INSTR])
colR = 0xc0
colG = 0xc0
Expand All @@ -1031,7 +1031,7 @@ static Function AnalyzeTracingResult()
colG = 0x40
colB = 0x40
endif
Notebook NBTracedData selection={startOfPrevParagraph, endOfPrevParagraph}, textRGB=(colR * 0xff, colG * 0xff, colB * 0xff)
Notebook NBTracedData, selection={startOfPrevParagraph, endOfPrevParagraph}, textRGB=(colR * 0xff, colG * 0xff, colB * 0xff)
continue
endif

Expand All @@ -1043,8 +1043,8 @@ static Function AnalyzeTracingResult()
sprintf prefix, procLineFormat + "|%.8#d|%.8#d|%.8#d|", j, execC, branchC, nobranchC
endif
prefix += procLine + "\r"
Notebook NBTracedData selection={endOfFile, endOfFile}, text=prefix
Notebook NBTracedData selection={startOfPrevParagraph, endOfPrevParagraph}, textRGB=(0 * 0xff, 32 * 0xff, 128 * 0xff)
Notebook NBTracedData, selection={endOfFile, endOfFile}, text=prefix
Notebook NBTracedData, selection={startOfPrevParagraph, endOfPrevParagraph}, textRGB=(0 * 0xff, 32 * 0xff, 128 * 0xff)
endfor
fName = procWin[0, strlen(procWin) - 5] + ".htm"
SaveNotebook/O/S=5/H={"UTF-8", 0xFFFF, 0xFFFF, 0, 0, 32} NBTracedData as (IUTF_Utils_Paths#AtHome(fName))
Expand Down

0 comments on commit 9161a28

Please sign in to comment.