File: enscript-1.6.1-util.c.patch

package info (click to toggle)
tkchooser 2.0652-7
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 432 kB
  • ctags: 272
  • sloc: tcl: 3,344; makefile: 76; sh: 13
file content (118 lines) | stat: -rw-r--r-- 3,069 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
27a28,40
> /* Ethan */
> extern int user_body_font_defined;
> extern int pretty_print;
> extern char *pp_start_state;
> extern char *output_language;
> extern unsigned int nup;
> extern int special_escapes;
> extern int  escape_char;
> extern HeaderType header;
> extern char *fancy_header_name;
> char eg_newstate[25];
> char eg_newlang[25];
> /* End Ethan */
363,364c376,381
< 	  CHECK_TOKEN ();
< 	  parse_key_value_pair (statusdict, token2);
---
> 	  /* Ethan */
> 	  /*CHECK_TOKEN ();*/
> 	  if (token2 != NULL) {
> 	    /* End Ethan */
> 	    parse_key_value_pair (statusdict, token2);
> 	  }
375,377c392,398
< 	  CHECK_TOKEN ();
< 	  underlay = xmalloc (strlen (token2) + 1);
< 	  strcpy (underlay, token2);
---
> 	  /* Ethan */
> 	  /*CHECK_TOKEN ();*/
> 	  if (token2 != NULL) {
> 	    /* End Ethan */
> 	    underlay = xmalloc (strlen (token2) + 1);
> 	    strcpy (underlay, token2);
> 	  }
413a435,515
>       /* Ethan */
>       else if (MATCH (token, "BodyFont:"))
> 	{
> 	  token2 = GET_TOKEN (NULL);
> 	  if (token2 != NULL) {
> 	    if (!parse_font_spec (token2, &Fname, &Fpt))
> 	      FATAL ((stderr, _("malformed font spec: %s"), token2));
> 	    user_body_font_defined = 1;
> 	  }
> 	}
>       else if (MATCH (token, "Columns:"))
> 	{
> 	  token2 = GET_TOKEN (NULL);
> 	  CHECK_TOKEN ();
> 	  num_columns = atoi (token2);
> 	}
>       else if (MATCH (token, "Orientation:"))
> 	{
> 	  token2 = GET_TOKEN (NULL);
> 	  CHECK_TOKEN ();
> 	  if (strcmp (token2, "landscape") == 0)
> 	    landscape = 1;
> 	  else if (strcmp (token2, "portrait") == 0)
> 	    landscape = 0;
> 	  else
> 	    FATAL ((stderr, _("unknown orientation: %s"), token2));
> 	}
>       else if (MATCH (token, "PrettyPrint:"))
> 	{
> 	  token2 = GET_TOKEN (NULL);
> 	  CHECK_TOKEN ();
> 	  if (atoi(token2))
> 	      pretty_print = 1;
> 	  else
> 	    pretty_print = 0;
> 	}
>       else if (MATCH (token, "PrettyPrintLang:"))
> 	{
> 	  token2 = GET_TOKEN (NULL);
> 	  CHECK_TOKEN ();
> 	  strcpy (eg_newstate, token2);
> 	  pp_start_state = eg_newstate;
> 	  special_escapes = 1;
> 	  escape_char = '\0';
> 	}
>       else if (MATCH (token, "OutputLang:"))
> 	{
> 	  token2 = GET_TOKEN (NULL);
> 	  CHECK_TOKEN ();
> 	  if (strcmp (token2, "PostScript") != 0)
> 	    {
> 	      strcpy (eg_newlang, token2);
> 	      output_language = eg_newlang;
> 	      output_language_pass_through = 1;
> 	    }
> 	  else
> 	    output_language_pass_through = 0;
> 	}
>       else if (MATCH (token, "Tileing:"))
> 	{
> 	  token2 = GET_TOKEN (NULL);
> 	  CHECK_TOKEN ();
> 	  nup = atoi (token2);
> 	}
>       else if (MATCH (token, "PageHeaders:"))
> 	{
> 	  token2 = GET_TOKEN (NULL);
> 	  CHECK_TOKEN ();
> 	  if (strcmp (token2, "fancy") == 0 )
> 	    {
> 	      header = HDR_FANCY;
> 	      fancy_header_name = fancy_header_default;
> 	    }
> 	  else if (strcmp (token2, "simple") == 0 )
> 	    header = HDR_SIMPLE;
> 	  else if (strcmp (token2, "none") == 0 )
> 	    header = HDR_NONE;
> 	  else
> 	    FATAL ((stderr, _("unknown header type: %s"), token2));
> 	}
>       /* End Ethan */