mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

110 lines
4.2 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/public/xfig/gcc40.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. diff -dur xfig.3.2.4/u_fonts.c xfig.3.2.4-p/u_fonts.c
  20. --- xfig.3.2.4/u_fonts.c 2002-09-09 19:36:58.000000000 +0200
  21. +++ xfig.3.2.4-p/u_fonts.c 2005-10-21 00:52:34.000000000 +0200
  22. @@ -21,7 +21,7 @@
  23. /* X11 font names */
  24. -struct _xfstruct x_fontinfo[NUM_FONTS] = {
  25. +struct _xfstruct _x_fontinfo[NUM_FONTS] = {
  26. {"-*-times-medium-r-normal--", (struct xfont*) NULL},
  27. {"-*-times-medium-i-normal--", (struct xfont*) NULL},
  28. {"-*-times-bold-r-normal--", (struct xfont*) NULL},
  29. @@ -58,6 +58,7 @@
  30. {"-*-itc zapf chancery-medium-i-normal--", (struct xfont*) NULL},
  31. {"-*-itc zapf dingbats-*-*-*--", (struct xfont*) NULL},
  32. };
  33. +struct _xfstruct *x_fontinfo = _x_fontinfo;
  34. /* Use the following font names for any font that doesn't exist in the table above.
  35. * These come with the Open Group X distribution so they should be a common set.
  36. @@ -66,7 +67,7 @@
  37. * structure when needed by draw_text() to scale text down below MIN_FONT_SIZE points.
  38. */
  39. -struct _xfstruct x_backup_fontinfo[NUM_FONTS] = {
  40. +struct _xfstruct _x_backup_fontinfo[NUM_FONTS] = {
  41. {"-*-times-medium-r-normal--", (struct xfont*) NULL},
  42. {"-*-times-medium-i-normal--", (struct xfont*) NULL},
  43. {"-*-times-bold-r-normal--", (struct xfont*) NULL},
  44. @@ -103,10 +104,11 @@
  45. {"-*-zapf chancery-medium-i-normal--", (struct xfont*) NULL},
  46. {"-*-zapf dingbats-*-*-*--", (struct xfont*) NULL},
  47. };
  48. +struct _xfstruct *x_backup_fontinfo = _x_backup_fontinfo;
  49. /* PostScript font names matched with X11 font names in x_fontinfo */
  50. -struct _fstruct ps_fontinfo[NUM_FONTS + 1] = {
  51. +struct _fstruct _ps_fontinfo[NUM_FONTS + 1] = {
  52. {"Default", -1},
  53. {"Times-Roman", 0},
  54. {"Times-Italic", 1},
  55. @@ -144,10 +146,11 @@
  56. {"ZapfChancery-MediumItalic", 33},
  57. {"ZapfDingbats", 34},
  58. };
  59. +struct _fstruct *ps_fontinfo = _ps_fontinfo;
  60. /* LaTeX font names and the corresponding PostScript font index into ps_fontinfo */
  61. -struct _fstruct latex_fontinfo[NUM_LATEX_FONTS] = {
  62. +struct _fstruct _latex_fontinfo[NUM_LATEX_FONTS] = {
  63. {"Default", 0},
  64. {"Roman", 0},
  65. {"Bold", 2},
  66. @@ -155,6 +158,7 @@
  67. {"Sans Serif", 16},
  68. {"Typewriter", 12},
  69. };
  70. +struct _fstruct *latex_fontinfo = _latex_fontinfo;
  71. x_fontnum(psflag, fnum)
  72. int psflag, fnum;
  73. diff -dur xfig.3.2.4/u_fonts.h xfig.3.2.4-p/u_fonts.h
  74. --- xfig.3.2.4/u_fonts.h 2002-03-27 01:18:23.000000000 +0100
  75. +++ xfig.3.2.4-p/u_fonts.h 2005-10-21 00:49:24.000000000 +0200
  76. @@ -32,9 +32,9 @@
  77. extern int psfontnum();
  78. extern int latexfontnum();
  79. -extern struct _xfstruct x_fontinfo[], x_backup_fontinfo[];
  80. -extern struct _fstruct ps_fontinfo[];
  81. -extern struct _fstruct latex_fontinfo[];
  82. +extern struct _xfstruct *x_fontinfo, *x_backup_fontinfo;
  83. +extern struct _fstruct *ps_fontinfo;
  84. +extern struct _fstruct *latex_fontinfo;
  85. /* element of linked list for each font
  86. The head of list is for the different font NAMES,
  87. diff -dur xfig.3.2.4/w_i18n.c xfig.3.2.4-p/w_i18n.c
  88. --- xfig.3.2.4/w_i18n.c 2002-11-08 23:18:16.000000000 +0100
  89. +++ xfig.3.2.4-p/w_i18n.c 2005-10-21 00:55:57.000000000 +0200
  90. @@ -402,7 +402,7 @@
  91. XFontSet *fontset;
  92. int *size_ret;
  93. {
  94. - extern struct _xfstruct x_fontinfo[]; /* X11 fontnames */
  95. + extern struct _xfstruct *x_fontinfo; /* X11 fontnames */
  96. static int font_types[] = { 0, 2 }; /* 0 = Times-Roman, 2 = Times-Bold */
  97. struct xfont *nf;
  98. int i;