Commits

Anonymous committed 46da631

- sync to 2.0.29

Comments (0)

Files changed (3)

+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #ifndef GDFX_H
 #define GDFX_H 1
 
 
 #endif /* GDFX_H */
 
+
+#ifdef __cplusplus
+}
+#endif
 gd_strtok_r (char *s, char *sep, char **state)
 {
   char separators[256];
-  char *start;
   char *result = 0;
   memset (separators, 0, sizeof (separators));
   while (*sep)
       /* Pick up where we left off */
       s = *state;
     }
-  start = s;
   /* 1. EOS */
   if (!(*s))
     {
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #ifndef GDHELPERS_H
 #define GDHELPERS_H 1
 
 void *gdMalloc (size_t size);
 void *gdRealloc (void *ptr, size_t size);
 
+/* Returns nonzero if multiplying the two quantities will
+	result in integer overflow. Also returns nonzero if 
+	either quantity is negative. By Phil Knirsch based on
+	netpbm fixes by Alan Cox. */
+
+int overflow2(int a, int b);
+
 /* 2.0.16: portable mutex support for thread safety. */
 
 #ifdef WIN32
 #endif /* WIN32 */
 
 #endif /* GDHELPERS_H */
+
+#ifdef __cplusplus
+}
+#endif
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.