Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 271621
Collapse All | Expand All

(-)dvi2tty/dvistuff.c (-8 / +8 lines)
Lines 179-185 Link Here
179
void            ruleaux         (long, long, char);
179
void            ruleaux         (long, long, char);
180
long            horizontalmove  (long);
180
long            horizontalmove  (long);
181
int             skipnops        (void);
181
int             skipnops        (void);
182
linetype    *   getline         (void);
182
linetype    *   get_line         (void);
183
linetype    *   findline        (void);
183
linetype    *   findline        (void);
184
unsigned long   num             (int);
184
unsigned long   num             (int);
185
long            snum            (int);
185
long            snum            (int);
Lines 208-214 Link Here
208
void            ruleaux         (long rulewt, long ruleht, char ch);
208
void            ruleaux         (long rulewt, long ruleht, char ch);
209
long            horizontalmove  (long amount);
209
long            horizontalmove  (long amount);
210
int             skipnops        (void);
210
int             skipnops        (void);
211
linetype    *   getline         (void);
211
linetype    *   get_line         (void);
212
linetype    *   findline        (void);
212
linetype    *   findline        (void);
213
unsigned long   num             (int size);
213
unsigned long   num             (int size);
214
long            snum            (int size);
214
long            snum            (int size);
Lines 376-382 Link Here
376
    h = 0L;  v = 0L;                        /* initialize coordinates   */
376
    h = 0L;  v = 0L;                        /* initialize coordinates   */
377
    x = 0L;  w = 0L;  y = 0L;  z = 0L;      /* initialize amounts       */
377
    x = 0L;  w = 0L;  y = 0L;  z = 0L;      /* initialize amounts       */
378
    sptr = 0;                               /* initialize stack         */
378
    sptr = 0;                               /* initialize stack         */
379
    currentline = getline();                /* initialize list of lines */
379
    currentline = get_line();                /* initialize list of lines */
380
    currentline->vv = 0L;
380
    currentline->vv = 0L;
381
    firstline   = currentline;
381
    firstline   = currentline;
382
    lastline    = currentline;
382
    lastline    = currentline;
Lines 777-783 Link Here
777
 * GETLINE -- Returns an initialized line-object 
777
 * GETLINE -- Returns an initialized line-object 
778
 */
778
 */
779
779
780
linetype *getline(void)
780
linetype *get_line(void)
781
{
781
{
782
    register int  i;
782
    register int  i;
783
    register linetype *temp;
783
    register linetype *temp;
Lines 793-799 Link Here
793
793
794
    return temp;
794
    return temp;
795
795
796
} /* getline */
796
} /* get_line */
797
797
798
798
799
799
Lines 809-815 Link Here
809
809
810
    if (v <= firstline->vv) {                      /* above first line */
810
    if (v <= firstline->vv) {                      /* above first line */
811
        if (firstline->vv - v > lineheight) {
811
        if (firstline->vv - v > lineheight) {
812
            temp = getline();
812
            temp = get_line();
813
            temp->next = firstline;
813
            temp->next = firstline;
814
            firstline->prev = temp;
814
            firstline->prev = temp;
815
            temp->vv = v;
815
            temp->vv = v;
Lines 820-826 Link Here
820
820
821
    if (v >= lastline->vv) {                       /* below last line */
821
    if (v >= lastline->vv) {                       /* below last line */
822
        if (v - lastline->vv > lineheight) {
822
        if (v - lastline->vv > lineheight) {
823
            temp = getline();
823
            temp = get_line();
824
            temp->prev = lastline;
824
            temp->prev = lastline;
825
            lastline->next = temp;
825
            lastline->next = temp;
826
            temp->vv = v;
826
            temp->vv = v;
Lines 843-849 Link Here
843
            return temp->next;
843
            return temp->next;
844
844
845
    /* no line fits suitable, generate a new one */
845
    /* no line fits suitable, generate a new one */
846
    currentline = getline();
846
    currentline = get_line();
847
    currentline->next = temp->next;
847
    currentline->next = temp->next;
848
    currentline->prev = temp;
848
    currentline->prev = temp;
849
    temp->next->prev = currentline;
849
    temp->next->prev = currentline;

Return to bug 271621