Commits

illume committed a9bcb71

from marcus: fixes a scrap pointer issue for X11

slightly better mask docs.

Comments (0)

Files changed (3)

 #                       "-Wcast-align -Wconversion -Wstrict-prototypes " + \
 #                       "-Wmissing-prototypes -Wmissing-declarations " + \
 #                       "-Wnested-externs -Wshadow -Wredundant-decls"
-if "-bigw" in sys.argv:
+if "-warnings" in sys.argv:
     os.environ["CFLAGS"] = "-W -Wimplicit-int " + \
                        "-Wimplicit-function-declaration " + \
                        "-Wimplicit -Wmain -Wreturn-type -Wunused -Wswitch " + \
                        "-Wconversion -Wstrict-prototypes " + \
                        "-Wmissing-prototypes -Wmissing-declarations " + \
                        "-Wnested-externs -Wshadow -Wredundant-decls"
+    sys.argv.remove ("-warnings")
 
 import os.path, glob
 import distutils.sysconfig
 overlap_area
 Mask.overlap_area(othermask, offset) -> numpixels
 
+Returns the number of overlapping 'pixels'.
 <END>
 
 
                 retval = NULL;
                 for (i = 0; i < count; i++)
                 {
-                    length = strlen (list[i]);
+                    *length = strlen (list[i]);
                     tmp = retval;
                     retval = realloc (retval, (*length) + 1);
                     if (!retval)