home *** CD-ROM | disk | FTP | other *** search
- #include "jam.h"
- #include "def.h"
-
- /* Work function to compute indent of an existing line
- */
- int indentofline(n, lp)
- int n;
- LINE *lp;
- {
- register int nicol, i;
- int c;
-
- nicol = 0;
- while (n--)
- {
- nicol = 0;
- for (i = 0; i < llength(lp); ++i)
- {
- c = lgetc(lp, i);
- if ((c != ' ') && (c != '\t'))
- break;
- if (c == '\t')
- nicol |= TABROUND;
- ++nicol;
- }
- }
- return(nicol);
- }
-
- /* Sigh, as yet unimplemented code
- */
- int indentthisline(lp)
- LINE *lp;
- {
- int foo;
- #ifdef INDENTING
- foo = indentofline(1, curwp->w_dotp);
- #else
- foo = 4;
- #endif
- return (foo);
- }
-