fix declaration order (gcc4)
This commit is contained in:
parent
38110e1be9
commit
95d1b9a183
@ -1,7 +1,7 @@
|
||||
$OpenBSD: patch-args_c,v 1.3 2002/11/13 17:15:49 naddy Exp $
|
||||
--- args.c.orig Thu Oct 17 07:22:48 2002
|
||||
+++ args.c Mon Nov 11 05:43:01 2002
|
||||
@@ -35,6 +35,7 @@ do_args(int argc, char **argv, int envfl
|
||||
$OpenBSD: patch-args_c,v 1.4 2010/05/19 14:55:00 espie Exp $
|
||||
--- args.c.orig Wed Oct 16 23:22:48 2002
|
||||
+++ args.c Wed May 19 14:52:00 2010
|
||||
@@ -35,6 +35,7 @@ do_args(int argc, char **argv, int envflag)
|
||||
int consumed;
|
||||
int currarg;
|
||||
int opterrors;
|
||||
@ -9,7 +9,7 @@ $OpenBSD: patch-args_c,v 1.3 2002/11/13 17:15:49 naddy Exp $
|
||||
|
||||
int i;
|
||||
|
||||
@@ -142,18 +143,17 @@ do_args(int argc, char **argv, int envfl
|
||||
@@ -142,18 +143,17 @@ do_args(int argc, char **argv, int envflag)
|
||||
break;
|
||||
case 'C': /* select character definitions */
|
||||
consumed = 1;
|
||||
|
36
print/mpage/patches/patch-mpage_h
Normal file
36
print/mpage/patches/patch-mpage_h
Normal file
@ -0,0 +1,36 @@
|
||||
$OpenBSD: patch-mpage_h,v 1.1 2010/05/19 14:55:00 espie Exp $
|
||||
--- mpage.h.orig Wed May 19 16:50:06 2010
|
||||
+++ mpage.h Wed May 19 16:53:54 2010
|
||||
@@ -172,6 +172,16 @@ extern int errno;
|
||||
extern int ps_width; /* number of points in the X direction (8.5 inches) */
|
||||
extern int ps_height; /* number of points in the Y direction (11 inches) */
|
||||
extern char * media; /* name of output page media */
|
||||
+
|
||||
+/*
|
||||
+ * Structure to describe a physical piece of paper, e.g. A4 or Letter
|
||||
+ */
|
||||
+struct page_desc {
|
||||
+ char *media;
|
||||
+ int width;
|
||||
+ int height;
|
||||
+};
|
||||
+
|
||||
extern struct page_desc paper[];
|
||||
|
||||
/*
|
||||
@@ -213,15 +223,6 @@ struct pagebox {
|
||||
};
|
||||
|
||||
|
||||
-/*
|
||||
- * Structure to describe a physical piece of paper, e.g. A4 or Letter
|
||||
- */
|
||||
-struct page_desc {
|
||||
- char *media;
|
||||
- int width;
|
||||
- int height;
|
||||
-};
|
||||
-
|
||||
|
||||
/* array of sheets where pages are ordered for coli ??? */
|
||||
extern struct sheet coli[];
|
@ -1,6 +1,6 @@
|
||||
$OpenBSD: patch-post_c,v 1.2 2002/11/13 17:15:49 naddy Exp $
|
||||
$OpenBSD: patch-post_c,v 1.3 2010/05/19 14:55:00 espie Exp $
|
||||
--- post.c.orig Wed Oct 16 23:45:54 2002
|
||||
+++ post.c Wed Nov 13 18:04:56 2002
|
||||
+++ post.c Wed May 19 14:52:00 2010
|
||||
@@ -353,6 +353,7 @@ ps_copyprolog(fd, outfd)
|
||||
FILE *fd;
|
||||
FILE *outfd;
|
||||
@ -40,7 +40,7 @@ $OpenBSD: patch-post_c,v 1.2 2002/11/13 17:15:49 naddy Exp $
|
||||
}
|
||||
else if (strncmp(currline, "%%Page:", 7) == 0) {
|
||||
fprintf(outfd, "/p { } def\n");
|
||||
@@ -1013,6 +1016,8 @@ post_one_line(line, fd, outfd, indoc, fl
|
||||
@@ -1013,6 +1016,8 @@ post_one_line(line, fd, outfd, indoc, flush_page)
|
||||
int * indoc;
|
||||
int flush_page;
|
||||
{
|
||||
@ -49,7 +49,7 @@ $OpenBSD: patch-post_c,v 1.2 2002/11/13 17:15:49 naddy Exp $
|
||||
if (strncmp(line, "%%BeginDocument", 15) == 0) {
|
||||
(*indoc)++;
|
||||
}
|
||||
@@ -1063,15 +1068,17 @@ post_one_line(line, fd, outfd, indoc, fl
|
||||
@@ -1063,15 +1068,17 @@ post_one_line(line, fd, outfd, indoc, flush_page)
|
||||
*/
|
||||
if (tex1)
|
||||
free(tex1);
|
||||
|
Loading…
Reference in New Issue
Block a user