Re: [AD] Fix to makesci.c |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On 2005-06-28, Bobby Ferris <baf@xxxxxxxxxx> wrote:
> Looking at one of the betas I noticed the scite api file that is spit
> out from the makesci.c that I made includes defines and structs, due to
> a buggy string comparison. I added a modified version of mystricmp from
> makemisc.c to makesci.c, to compare x characters. Please add this patch
> to the CVS. Thanks, BAF
I committed this revised patch instead, which uses an existing function
in makemisc.c. Please tell me if it doesn't do the right thing.
Peter
Index: docs/src/makedoc/makesci.c
===================================================================
RCS file: /cvsroot/alleg/allegro/docs/src/makedoc/makesci.c,v
retrieving revision 1.5
diff -u -r1.5 makesci.c
--- docs/src/makedoc/makesci.c 3 Apr 2005 19:03:12 -0000 1.5
+++ docs/src/makedoc/makesci.c 17 Jul 2005 14:33:38 -0000
@@ -48,11 +48,12 @@
*/
static int _ignore_line(char *x)
{
- return mystricmp(x, "typedef") == 0 ||
- mystricmp(x, "extern") == 0 ||
- mystricmp(x, "struct") == 0 ||
- mystricmp(x, "example") == 0 ||
- mystricmp(x, "drivers") == 0;
+ return strincmp(x, "typedef") == 0 ||
+ strincmp(x, "extern") == 0 ||
+ strincmp(x, "struct") == 0 ||
+ strincmp(x, "example") == 0 ||
+ strincmp(x, "drivers") == 0 ||
+ strincmp(x, "#define") == 0;
}