Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.
This commit is contained in:
parent
226d80b821
commit
cbeb0b26e4
492 changed files with 3218 additions and 3167 deletions
|
|
@ -53,7 +53,7 @@ wininit(Window *w, Window *clone, Rectangle r)
|
|||
filereset(w->tag.file);
|
||||
textsetselect(&w->tag, nc, nc);
|
||||
}
|
||||
//assert(w->body.w == w);
|
||||
/*assert(w->body.w == w); */
|
||||
r1 = r;
|
||||
r1.min.y += w->taglines*font->height + 1;
|
||||
if(r1.max.y < r1.min.y)
|
||||
|
|
@ -66,7 +66,7 @@ wininit(Window *w, Window *clone, Rectangle r)
|
|||
rf = rfget(FALSE, FALSE, FALSE, clone->body.reffont->f->name);
|
||||
}else
|
||||
rf = rfget(FALSE, FALSE, FALSE, nil);
|
||||
//assert(w->body.w == w);
|
||||
/*assert(w->body.w == w); */
|
||||
f = fileaddtext(f, &w->body);
|
||||
w->body.what = Body;
|
||||
textinit(&w->body, f, r1, rf, textcols);
|
||||
|
|
@ -82,7 +82,7 @@ wininit(Window *w, Window *clone, Rectangle r)
|
|||
w->filemenu = TRUE;
|
||||
w->maxlines = w->body.fr.maxlines;
|
||||
w->autoindent = globalautoindent;
|
||||
//assert(w->body.w == w);
|
||||
/*assert(w->body.w == w); */
|
||||
if(clone){
|
||||
w->dirty = clone->dirty;
|
||||
w->autoindent = clone->autoindent;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue