Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

LOOK UPON MY WORKS, YE MIGHTY, AND DESPAIR: http://kx.com/q/c/c/k.h

Note: This is production code.



  // remove more clutter
  #define O printf
  #define R return
  #define Z static
  #define P(x,y) {if(x)R(y);}
  #define U(x) P(!(x),0)
  #define SW switch
  #define CS(n,x)	case n:x;break;
  #define CD default
Thanks for that. The comment makes it classic.


orz: the person maintaining this code

:)


Jesus, my research project once depended on this file. The day we deleted it from the repository was a very happy one.


That was a fun search and replace exercise I bet... ;-)

I imagine searching for Z, R and O in a large code repository.


Oo, where'd you get the C minimizer?


This is the way that APL programmers write C.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: