]> git.pld-linux.org Git - packages/allegro.git/blob - allegro-info.patch
- new URLs, updated to 4.4.3.1
[packages/allegro.git] / allegro-info.patch
1 --- allegro-4.4.1.1/docs/src/allegro._tx~       2010-03-03 11:07:40.000000000 +0100
2 +++ allegro-4.4.1.1/docs/src/allegro._tx        2010-03-15 15:43:49.924691978 +0100
3 @@ -31,9 +31,9 @@
4  @# This should remain commented at the moment (dvi output) @$@finalout
5  @$
6  @$@ifinfo
7 -@$@dircategory Libraries
8 +@$@dircategory Libraries:
9  @$@direntry
10 -@$* Allegro: (allegro).                        The Allegro game programming library.
11 +@$* Allegro: (allegro).                        The Allegro game programming library
12  @$@end direntry
13  @$This is the Info version of the Allegro manual
14  @$
15 @@ -12197,7 +12197,7 @@
16        0, 0, 0,  /* Viewer position, in this case, 0/0/0. */
17        0, 0, -1, /* Viewer direction, in this case along negative z. */
18        0, 1, 0,  /* Up vector, in this case positive y. */
19 -      32,       /* The FOV, here 45°. */
20 +      32,       /* The FOV, here 45°. */
21        (float)SCREEN_W / (float)SCREEN_H)); /* Aspect ratio. */
22    
23     /* Applying the matrix transforms the point 100/200/-300
24 @@ -12384,7 +12384,7 @@
25     The fov parameter specifies the field of view (ie. width of the camera
26     focus) in binary, 256 degrees to the circle format. For typical
27     projections, a field of view in the region 32-48 will work well. 64
28 -   (90°) applies no extra scaling - so something which is one unit away
29 +   (90°) applies no extra scaling - so something which is one unit away
30     from the viewer will be directly scaled to the viewport. A bigger FOV
31     moves you closer to the viewing plane, so more objects will appear. A
32     smaller FOV moves you away from the viewing plane, which means you see a
33 --- allegro-4.4.3.1/docs/src/makedoc/makedoc.c.orig     2019-03-04 02:30:11.000000000 +0100
34 +++ allegro-4.4.3.1/docs/src/makedoc/makedoc.c  2019-12-03 16:16:18.533920627 +0100
35 @@ -29,6 +29,7 @@
36   */
37  
38  
39 +#include <stdbool.h>
40  #include <stdio.h>
41  #include <stdlib.h>
42  #include <stddef.h>
43 @@ -70,7 +71,7 @@
44  static void _add_line(char *buf, int flags);
45  static void _add_toc_line(const char *buf, const char *alt, int root, int num, int texinfoable, int htmlable, int otherfile);
46  static void _add_external_file(const char *buf, int line_number);
47 -static char *_my_fgets(char *p, int max, FILE *f);
48 +static char *_my_fgets(char *p, int max, FILE *f, bool expand);
49  static void _add_toc(char *buf, int root, int num, int texinfoable, int htmlable);
50  static void _activate_email_mangling(const char *txt);
51  static void _mangle_email_links(char *buf);
52 @@ -314,6 +316,7 @@
53     char buf[1024];
54     FILE *f;
55     int line = 0;
56 +   bool expand = true;
57  
58     /*printf("reading %s\n", filename);*/
59  
60 @@ -321,7 +324,7 @@
61     if (!f)
62        return 1;
63        
64 -   while (_my_fgets(buf, 1023, f)) {
65 +   while (_my_fgets(buf, 1023, f, expand)) {
66        char *end = strpbrk(buf, "\r\n");
67        line++;
68  
69 @@ -503,7 +506,13 @@
70          else if (strincmp(buf+1, "external-css=") == 0)
71             html_css_filename = m_strdup(buf+14);
72          else if (buf[1] == '$')
73 +        {
74 +            if (strincmp(buf+2, "@direntry") == 0)
75 +              expand = false;
76 +            else if (strincmp(buf+2, "@end direntry") == 0)
77 +              expand = true;
78             _add_line(buf+2, TEXINFO_FLAG | TEXINFO_CMD_FLAG);
79 +        }
80          else if (buf[1] == '@') {
81             char *found_struct_definition = strstr(buf+2, "struct @");
82             if(!found_struct_definition)
83 @@ -761,7 +770,7 @@
84   * on the character buffer being modifiable, so cleaning this would
85   * practically mean having to rewrite the other functions too.
86   */
87 -static char *_my_fgets(char *p, int max, FILE *f)
88 +static char *_my_fgets(char *p, int max, FILE *f, bool expand)
89  {
90     int c, ch;
91  
92 @@ -779,7 +788,7 @@
93          c--;
94        else if (p[c] == '\n')
95          break;
96 -      else if (p[c] == '\t') {
97 +      else if (expand && (p[c] == '\t')) {
98          p[c] = ' ';
99          while ((c+1) & 7) {
100             c++;
This page took 0.091852 seconds and 4 git commands to generate.