home *** CD-ROM | disk | FTP | other *** search
- /* CHESS FUNCTION(S): CINDENT1.CHS
- /* DATE: 5/15/93
- /* AUTHOR: C. Schanck
- /*
- /* DESCRIPTION: This program file will convert from C mode
- /* indention #2 to C mode indention #1. It is very useful when
- /* used in conjunction with 'global' to change a whole set of files
- /* to a uniform indention style.
- {
- int i;
- set_display(0);
- while(Search("~[ ]*[{][ ]*$~ ~fr~ ")) /* find a line ending
- /* in a bracket...
- {
- if(ask("file_column")!=1) /* if it is not the beginning
- /* of a line, del_bol.
- Del_bol();
- Back_space(); /* join to prev line
- End_line(); /* go the the end
- i=i+1;
- if((i%25)==0) /* keep the user on top
- msg("%ld instances changed...",i);
- }
- update_display();
- set_display(1);
- }