Only in lout-3.12/include: gop
Only in lout/include: queries
Only in lout/locale: msgs.english.3.09
Only in lout/locale: msgs.english.3.10
diff -r lout-3.12/makefile lout/makefile
247,248c247,248
< OSUNIX  = 1
< OSDOS   = 0
---
> OSUNIX  = 0
> OSDOS   = 1
251a252
> DBFIX   = 1
256a258
> COLLATE	= 0
258,261c260,263
< BINDIR	= /usr/staff/jeff/bin
< LIBDIR	= /usr/staff/jeff/lout.lib
< DOCDIR	= /usr/staff/jeff/lout.doc
< MANDIR	= /usr/staff/jeff/lout.man
---
> BINDIR	= /lout/bin
> LIBDIR	= /lout/lib
> DOCDIR	= /lout/doc
> MANDIR	= /lout/man/man1
273c275
< USELOC	= 1
---
> USELOC	= 0
277,278c279,281
< PDF_COMPRESSION	= 0
< ZLIB		=
---
> # Patches from uwe were added to fix PDF support in 3.12.
> PDF_COMPRESSION	= 1
> ZLIB		= -lz
285a289
> COPTS	= -Wall -O -D_setmode=setmode -D_fileno=fileno 
305c309
< 	  -DDEBUG_ON=1  -g					\
---
> 	  -DDEBUG_ON=0  					\
316,318c320,324
< lout:	$(OBJS)
< 	$(CC) -o lout $(OBJS) $(ZLIB) -lm
< 	chmod a+x lout
---
> E=.exe
> 
> lout$E:	$(OBJS)
> 	$(CC) -o $@ $(OBJS) $(ZLIB)
> 	chmod a+x $@
324,326c330,332
< c2lout:	c2lout.c
< 	$(CC) $(COPTS) -o c2lout c2lout.c
< 	chmod a+x c2lout
---
> c2lout$E:	c2lout.c
> 	$(CC) $(COPTS) -o $@ c2lout.c
> 	chmod a+x $@
328c334
< install: lout c2lout
---
> install: lout$E c2lout$E
331,334c337,340
< 	cp lout $(BINDIR)/lout
< 	chmod 755 $(BINDIR)/lout
< 	cp c2lout $(BINDIR)/c2lout
< 	chmod 755 $(BINDIR)/c2lout
---
> 	cp lout$E $(BINDIR)/lout$E
> 	chmod 755 $(BINDIR)/lout$E
> 	cp c2lout$E $(BINDIR)/c2lout$E
> 	chmod 755 $(BINDIR)/c2lout$E
Only in lout: makefile.orig
Only in lout: makefile~
diff -r lout-3.12/man/lout.txt lout/man/lout.txt
43a44,48
>      -Z              Produce Adobe Portable Document Format (PDF)
>                      output.   This  includes links, but the more
>                      advanced graphics packages of Lout  are  not
>                      supported.
> 
106,107c111,112
<                      the  current  directory,  then the -D direc-
<                      tories  in  the  order  given,  and  finally
---
>                      the   current   directory,   then   the   -D
>                      directories in the order given, and  finally
132a138,147
> 
>      -w              Show the total  number  of  non-empty  words
>                      printed  in  the output file.  This includes
>                      words  and  numbers  in  page  headers   and
>                      footers;  section numbers and other numbers;
>                      every punctuation character in a  font  dif-
>                      ferent  from  its  adjacent  word; and every
>                      little fragment of  every  equation;  so  it
>                      will  always  somewhat overestimate the true
>                      number.
Only in lout-3.12/man: op
diff -r lout-3.12/z01.c lout/z01.c
32a33,37
> /* On DOS/Win32 we need to set binary mode on stdout */
> #if OS_DOS
> #include <io.h>
> #include <fcntl.h>
> #endif
617,618c622,631
<   if( StringEqual(outfile, STR_STDOUT) )  out_fp = stdout;
<   else if( (out_fp = StringFOpen(outfile, WRITE_TEXT)) == null )
---
>   if( StringEqual(outfile, STR_STDOUT) ) {
> #if OS_DOS
>     /* For DOS/Win32 we need to set binary mode on stdout to prevent
>        PDF compressed streams and xrefs from being corrupted */
>     if (_setmode(_fileno(stdout), _O_BINARY) == -1)
>       Error(1,27, "cannot set binary mode on stdout", FATAL, no_fpos);
> #endif
>     out_fp = stdout;
>   }
>   else if( (out_fp = StringFOpen(outfile, WRITE_BINARY)) == null )
diff -r lout-3.12/z29.c lout/z29.c
415a416,420
> 	  if( AltErrorFormat )
>           {
> 	    Error(29, -1, "%s previously defined here",
> 	      WARN, &fpos(q), str);
> 	  }
diff -r lout-3.12/z37.c lout/z37.c
1069a1070
> 	    fnt[*q].left = fnt[unacc[*q]].left;
1070a1072,1073
> 	    fnt[*q].last_adjust = fnt[unacc[*q]].last_adjust;
> 	    lig[*q] = 0;	/* is it safe? */
diff -r lout-3.12/z47.c lout/z47.c
205c205
<   debug3(DET, DD, "EnvWriteInsert(%s, %d, env %d)",
---
>   debug3(DET, DD, "EnvReadInsert(%s, %d, env %d)",
diff -r lout-3.12/z48.c lout/z48.c
3041,3044d3040
< 	g_graphics_vars[k_in]		=	IN;
< 	g_graphics_vars[k_cm]		=	CM;
< 	g_graphics_vars[k_pt]		=	PT;
< 	g_graphics_vars[k_em]		=	EM;
3049,3051c3045,3048
< 	g_graphics_vars[k_loutf]	=	0;	/*	undefined	*/
< 	g_graphics_vars[k_loutv]	=	0;	/*	undefined	*/
< 	g_graphics_vars[k_louts]	=	0;	/*	undefined	*/
---
> 
> 	g_units[k_loutf]	=	0;	/*	undefined	*/
> 	g_units[k_loutv]	=	0;	/*	undefined	*/
> 	g_units[k_louts]	=	0;	/*	undefined	*/
3638a3636
> /* uwe: comments can appear in the body only.
3640a3639,3646
>  */
> 	fputs("trailer\n<<\n", in_fp);
> 
> 	fprintf(in_fp, "/Size %u\n", g_next_objnum);
> 
> 	fputs("/Root ", in_fp);
> 	PDFObject_WriteRef(in_fp, catalog_obj_num);
> 	fputc('\n', in_fp);
3642,3646c3648,3650
< 	fputs("trailer\n"
< 		  "<< ", in_fp);
< 	fprintf(in_fp, "/Size %u ", g_next_objnum);
< 	fputs("/Root ", in_fp);		PDFObject_WriteRef(in_fp, catalog_obj_num);
< 	fputs(" /Info ", in_fp);	PDFObject_WriteRef(in_fp, info_obj_num);
---
> 	fputs("/Info ", in_fp);
> 	PDFObject_WriteRef(in_fp, info_obj_num);
> 	fputc('\n', in_fp);
3648,3649c3652,3654
< 	fprintf(in_fp, " >>\n"
< 				   "startxref %u\n", xref_start);
---
> 	fprintf(in_fp, ">>\n"
> 				   "startxref\n"
> 				   "%u\n", xref_start);
