Originally Posted by
laserlight
So far, with the exception of the MK27 style, I find all these indent styles to be reasonable
I am sure there is a whole pack of cowards here who totally empathize with the obvious (and elegant) logic of my indentation style and have even done similar things themselves, when allowed, but are afraid to speak up because it is too late -- history has spoken*.
Code:
/* command line arguments */
if (argc>1) { if (strlen(argv[1])>MPTH-1) { puts("Filename is too long!"); return 0; }
if (argv[1][0]!='-') tmp=argv[1]; /* filenames starting with a dash will need ./ */
while ((opt=getopt(argc, argv, options))>0) switch (opt) {
case ('?'): usage(argv[0]); return 0;
This is like a thousand line project with 2 header files in allman.
* but that doesn't make it right you fascists