Skip to content

Commit

Permalink
Added macro FP that jumps to the PROCEDURE DIVISION of the current CO…
Browse files Browse the repository at this point in the history
…BOL file.
  • Loading branch information
Michael Knigge committed Oct 20, 2022
1 parent dd842d1 commit 4154b9d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions macros/fp.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
void fp(void)
{
SpfService("cmd", "FIND 'PROCEDURE DIVISION' 8 FIRST QUIET");

if(SpfService("query", "find_string_count", NULL) == 0)
return;

SpfService("cmd", "DOWN");
SpfService("cmd", "RESET FIND");
SpfService("cmd", "RECOLOR");
SpfService("cmd", "CURSOR");
}

0 comments on commit 4154b9d

Please sign in to comment.