/*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/*
* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include "e.h"
extern int max();
void brack(int, char *, char *, char *);
void
{
#ifndef NEQN
#else /* NEQN */
#endif /* NEQN */
if (n < 2) n = 1;
m = n-2;
if ((n % 2) == 0) {
n++;
}
if (n < 3) n = 3;
m = n-3;
}
#ifndef NEQN
#else /* NEQN */
if (n%2 == 0)
#endif /* NEQN */
switch (leftc) {
case 'n': /* nothing */
case '\0':
break;
case 'f': /* floor */
if (n <= 1)
printf("\\(lf");
else
break;
case 'c': /* ceiling */
if (n <= 1)
printf("\\(lc");
else
break;
case '{':
printf("\\b'\\(lt");
printf("\\(lk");
printf("\\(lb'");
break;
case '(':
break;
case '[':
break;
case '|':
break;
default:
(char *)&leftc);
break;
}
if (rightc) {
printf("\\|\\v'%du'", v);
switch (rightc) {
case 'f': /* floor */
if (n <= 1)
printf("\\(rf");
else
break;
case 'c': /* ceiling */
if (n <= 1)
printf("\\(rc");
else
break;
case '}':
printf("\\b'\\(rt");
printf("\\(rk");
printf("\\(rb'");
break;
case ']':
break;
case ')':
break;
case '|':
break;
default:
(char *)&rightc);
break;
}
printf("\\v'%du'", -v);
}
printf("\n");
if (dbg)
printf(".\tcurly: h=%d b=%d n=%d v=%d l=%c, r=%c\n",
}
void
brack(int m, char *t, char *c, char *b)
{
int j;
printf("\\b'%s", t);
for (j = 0; j < m; j++)
printf("%s", c);
printf("%s'", b);
}