Something went wrong. Try again.
A Zig library that reads git repositories without running git, with log, show and diff output byte-identical to git's.
Something went wrong. Try again.
4.3 kB · 271 lines
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273- (void)foo- (void)foo:(int)x bar:(int)y+ (id)alloc-(void)foo+(id)alloc- (void) foo- foo+ foo- (void)foo;- (void)foo { - (void)foo - (void)foo@implementation Foo@implementation Foo (Cat)@interface Foo : NSObject@protocol P;@end@property int x;@class Foo; @implementation Foo@implementationFoo@Implementation Fooint main(void)int main(int argc, char **argv) {static void f()void f();class Foostruct S {label:if (x)return x;x = f(y);foo- x-x+-- (- (void)-(@@implementation@ implementation Foo@implementation Foo@implementation Foo- (void) - (void);- (void)9- (void)(x)- (void)_x- ()foo- (a)(b)- (a(b))c- (a)b // comment- (a)b; // c- (void)foo- (void)foo- (void)foo -(id)x-(id) x-(id) x-(id) -(id)x(-(id):x* (id)xx- (id)xmain()int mainint x();int x(); // cint x() // cint x(int a);xvoid felse if (x)int (*fp)(int)int *f(int) int f(void)Int f(void)9f()f ()int f(a,struct s *f(x)-(void)foo- (void)foo- ( )foo- (id;)foointx(y)int x(y)int x ()int x(int x(int x9()int 9x()_a _b(int x() {;}int x;y()else foo(x)elsewhere foo(x)xif foo(x)if a b(c)while a b(c)for a b(c)switch a b(c)do a b(c)return a b(c)int if(x)case a b(c)goto a b(c)IF a b(c)a b c d e(f)a::b c(d)a<b> c(d)a* b(c)a b[2](c)a $b(c)iffy a(b)double f(x)doc a(b)format a(b)returned a(b)els a(b)d a(b)fo a(b) double f(x)iF a(b)Double f(x)_if a(b)@implementation if- (id)if-(do)x@implementation a;b@implementation 9@interface_x y@protocolx y @implementation x@implementation @implementationx- (x9)foo- (9x)foo- (int **)foo- (x y z)foo- ( x)foo- (*)foo- (NSString *)foo- (id<P>)foo- (x,y)foo- (x.y)foo- (x$)foo- (é)foo- (3)foo- (* x)foo- (x *9)foo- ( *x)foo- (x**y**)fooplementationx0vIW (Cati_Z_ALZct)K L 7Pr_a hyhPQF_z*(x,switchIdNZd3_xs ;GjRsTQFu5 <x>ը T)k4jLCk(Dv) while e6(QtmsFd3S) LUQOnc2 , OEysB(b) zC ::amJAf(XSADwcGNk) ;stAtIC int LerUP5UgV(my) const - (id)lFylt:(id)Eh0 c4MQCjT:(int)y IL(lD$Ogv0Y)eoY _82nZ f4(int x)r;b9ٓ) rYXKpTL ::JN2PUajk(_CreturnQ93g)/* eTbM5N ylF|0eU ovh(x, do Nb9v7(kyoS5saRb) AbyNKs_A d2A=ehV ZowQfFkw_(x, @implementation L5TB (e8) const
@classVO (Cat)@interfacevVuCCWu t4 J)(id) ʞhyhyKC (Rei9 (2(nY2): - (NjBO6wE)BIaX:(int)x rYnESgZutReYb) + (E6Qmjea) NS6:(id)E6Qmjea LMuMNHXO:(int)yS6M J51H(_)::oOi(GswCM4) classK : NSObject while TYctVMRx (vFI);> Wzx0_B(QDHUpBA)-U5 EM43EuPQT 5(KS$ZRibY4) p(mpjia) xrIIQ &ysu1ofxZ(vWE)pgcNCP &l7kd(d1vS1) @int erface OPm0g4 { @interfaceL4n341;ap(yCjha)>ݰ qX SQb8WzF cu(x,}Zb0oh do O_QN_aM (xVV9) const returnj11 ZHw(H31gKH)@end MeHMEzZzg : NSObject @protocol RQ__dBZ (t) {@interface i; - (Uj76) IVXUkMso:(id)Uj76 MusAZyZc:(int)y do Ra(A0) (id) iX14bDBN@implementationd(nxMvl JnTI kPqk qVxH1mjw( Qai GUiG9LDkK (S_Yijn);//nFDG *B9sF(NeRHB38oN)@end D6hHwtBp(JhewjoXR) { xy(tgE) int oj (Iqjp03I) // x@interface A (Cat)DODp2M Iwd1PwhilevSAwʌK O7 Igeq LuB66 ron(:whiifle j (f89);sWAd: f70_ fTMY(6eXnxP;)R5: ( - () PcZRZt {ƼKvkJ <x> LPJVnn(KnZVk0p) - (void) ww:(id)R9d3W IwvCc:(int)y[ while Du(pRyy_96x) /* c */ iAd756H(_j2SiAYZ) unsigned ũCe2RpfGUY (e_sbW) @interf ace BIc; ;eAO C e6z8f6 NSYsrITE(int x)< for KFcgI(WmMj5) for S (LPi) {@interface R : NSObjectintXN UNJd@/* swITch ZEpHux (IunSigneD1 AmPvXT) { for vDDQsQbK(XO)
@iMpleMentAtIonUw-?uwbD 1returnt1M WJhGs *VR_m41(bgEhQWBYl) ni GiQl <x> OaTDiRX1d(lDUJA) @implementation B0 (m2C) \{ SWFiysTazpfYD9T(DxVQ) 3_ZIzn9(Js8PYc8yZ) QF qkTYKJvF XSI(x, @pr-otocol TfCXj6A (Cat)oW1gcolbMEN;*cU iSj+% () iN,Bg2T:(id)_FS5 h2M_s7E:(int)yhgtXhTV = VDdvwW(N); PqukN VyZUqt3t9(P1VV) cOnst double kVTxW (g) constif eYoqsHZok(ZnvFKXmX) ft XBhBU0switchzuo Ma( if BmHTg(n)<)ܚ - (void) EɤfgRpQ { HRmCnDtoJ(ajucfg7Jk) - (&) DNRff_Xkk4fb2:(int)x[ e(v ieAuQMJ(Ou) @implѱementation HKq5U6 (Kg4yM); CDDoFpOb PUFkd jWkL(staticzhn3ouq1 BWwcLjXC AqXiaelseqpZL(ךx, k@implementationPv8md3wv SrX + (void) h4yuT:(int)x m7nL rpAHLcv EC2TF2teq( - (void) mw2bIe:(id)f Z8TDeGrle:(int)y GH҄8(U)tsIafLq4V *Jxp3Qo(sGssj) /* c */switchdWE u5BvX(n_ke9OXPb) /* c */ - of (vqwFWn_);