Hi,

Some lines after indent -l79 have more than 79 chars:

$ indent -version
GNU indent: 2.2.11

$ cat bug.c
#include <stdio.h>
bug() {
  if((sid=(jbyte*)(*env)->GetByteArrayElements(env,jsid,NULL))==NULL){
    do_something();
  }
}

$ indent -st -gnu -nut -br -l79 bug.c
#include <stdio.h>
bug ()
{
if ((sid = (jbyte *) (*env)->GetByteArrayElements (env, jsid, NULL)) == NULL) {
    do_something ();
  }
}

$ indent -st -gnu -nut -br -l79 bug.c | cut -c-80
#include <stdio.h>
bug ()
{
if ((sid = (jbyte *) (*env)->GetByteArrayElements (env, jsid, NULL)) == NULL)
    do_something ();
  }
}

Maybe a conflict between -br and -l79 ?

Can I workaround this?

Thank you,
®om

_______________________________________________
bug-indent mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-indent

Reply via email to