Closed Sebanisu closed 3 years ago
I sent in pull request as I figured I could do the other 10 macros at a later date on my day off. If you'd rather I wait till it's all done we can. Though I figured your stream would cause many conflicts.
I sent in pull request as I figured I could do the other 10 macros at a later date on my day off. If you'd rather I wait till it's all done we can. Though I figured your stream would cause many conflicts.
No this is awesome! I am just updating the description and reviewing each of the macros so I can recognize code that has been replaced by one in the future. Will merge either today/tmo.
https://github.com/codereport/jsource/issues/60 <- 20 of 30 done. I'm working 12 hour days next 3 days so I might not get the other 10 done till monday. Though that last few haven't had many instances of use. The F1 and F2 were like 1000+ instances combined. I rebased on the upstream/main so I don't think we should have any conflicts.
I basically used regex to replace the macro with the result of the macro. These macros were mostly just function argument lists.
Summary:
#define F1(f)
A f(J jt, A w)
j.h
#define F2(f)
A f(J jt,A a,A w)
j.h
#define DF1(f)
A f(J jt, A w,A self)
j.h
#define DF2(f)
A f(J jt,A a,A w,A self)
j.h
#define FPREF
j.h
#define FMTF(f,T)
void f(J jt,C*s,T*v)
f.c
#define KF1(f)
B f(J jt,A w,void*yv)
k.c
#define KF1F(f)
B f(J jt,A w,void*yv,D fuzz)
k.c
#define KF2(f)
B f(J jt,A w,void*yv,I mode)
k.c
#define TACT(f)
TA f(J jt,I b,I e,TA*stack,A locsyms,I tmonad,I tsubst ...)
p.h
#define F1X(f)
A f(J jt,A w,A *ltext)
rl.c
#define DF1X(f)
A f(J jt,A w,A self,A *ltext)
rl.c
#define F2X(f)
A f(J jt,A a,A w,A *ltext)
rl.c