Author Topic: C indenting bug  (Read 3384 times)

FullyArticulate

  • Community Member
  • Posts: 21
  • Hero Points: 4
C indenting bug
« on: December 11, 2007, 07:58:56 PM »
Maybe there's a way to fix this on my with the proper options, if so, please let me know!

The C/C++ auto beautifying/indenting code has a problem with goto tags. The code segment should look like this:

...
        if (errorcondition)
                goto out;
        returnval = 0;
out:
        free(local_malloc);
        return(returnval);

SlickEdit indents it like this:

...
        if (errorcondition)
                goto out;
        returnval = 0;
        out:
                free(local_malloc);
        return(returnval);

Thanks for listening!