summaryrefslogtreecommitdiffstats
path: root/math/gcalctool3/files
diff options
context:
space:
mode:
authorkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2010-12-01 06:00:17 +0800
committerkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2010-12-01 06:00:17 +0800
commit2e4d2e942a99fbc51adebabc4cd543a91491ba37 (patch)
tree5fb7c33c9eb700d394e22ec7c7faf4258b91ea3b /math/gcalctool3/files
parent2d95636f2e1c4896bca367221f0b972b5903e72a (diff)
downloadmarcuscom-ports-2e4d2e942a99fbc51adebabc4cd543a91491ba37.tar
marcuscom-ports-2e4d2e942a99fbc51adebabc4cd543a91491ba37.tar.gz
marcuscom-ports-2e4d2e942a99fbc51adebabc4cd543a91491ba37.tar.bz2
marcuscom-ports-2e4d2e942a99fbc51adebabc4cd543a91491ba37.tar.lz
marcuscom-ports-2e4d2e942a99fbc51adebabc4cd543a91491ba37.tar.xz
marcuscom-ports-2e4d2e942a99fbc51adebabc4cd543a91491ba37.tar.zst
marcuscom-ports-2e4d2e942a99fbc51adebabc4cd543a91491ba37.zip
Clean up after 2.32 got committed. Only gdm 2.32 isn't committed because of
focus issues. And it doesn't seem it getting any traction upstream. Next stop GNOME 3.0. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@14916 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'math/gcalctool3/files')
-rw-r--r--math/gcalctool3/files/patch-src_gcalccmd.c92
1 files changed, 0 insertions, 92 deletions
diff --git a/math/gcalctool3/files/patch-src_gcalccmd.c b/math/gcalctool3/files/patch-src_gcalccmd.c
deleted file mode 100644
index 8766e797d..000000000
--- a/math/gcalctool3/files/patch-src_gcalccmd.c
+++ /dev/null
@@ -1,92 +0,0 @@
---- src/gcalccmd.c.orig 2009-12-08 21:27:37.000000000 -0500
-+++ src/gcalccmd.c 2010-01-24 13:38:19.000000000 -0500
-@@ -18,16 +18,89 @@
- * 02111-1307, USA.
- */
-
-+#include <errno.h>
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- #include <sys/types.h>
-+#include <sys/param.h>
- #include <time.h>
-
- #include "mp-equation.h"
-
- #define MAXLINE 1024
-
-+#if __FreeBSD_version < 800067
-+static ssize_t
-+getline (char **lineptr, size_t *n, FILE *stream)
-+{
-+ char *line, *p;
-+ long size, copy;
-+
-+ if (lineptr == NULL || n == NULL) {
-+ errno = EINVAL;
-+ return (ssize_t) -1;
-+ }
-+
-+ if (ferror (stream))
-+ return (ssize_t) -1;
-+
-+ /* Make sure we have a line buffer to start with. */
-+ if (*lineptr == NULL || *n < 2) /* !seen and no buf yet need 2 chars. */ {
-+#ifndef MAX_CANON
-+#define MAX_CANON 256
-+#endif
-+ if (!*lineptr)
-+ line = (char *) malloc (MAX_CANON);
-+ else
-+ line = (char *) realloc (*lineptr, MAX_CANON);
-+ if (line == NULL)
-+ return (ssize_t) -1;
-+ *lineptr = line;
-+ *n = MAX_CANON;
-+ }
-+
-+ line = *lineptr;
-+ size = *n;
-+
-+ copy = size;
-+ p = line;
-+
-+ while (1) {
-+ long len;
-+
-+ while (--copy > 0) {
-+ int c = getc (stream);
-+
-+ if (c == EOF)
-+ goto lose;
-+ else if ((*p++ = c) == '\n')
-+ goto win;
-+ }
-+
-+ /* Need to enlarge the line buffer. */
-+ len = p - line;
-+ size *= 2;
-+ line = (char *) realloc (line, size);
-+ if (line == NULL)
-+ goto lose;
-+ *lineptr = line;
-+ *n = size;
-+ p = line + len;
-+ copy = size - len;
-+ }
-+
-+lose:
-+ if (p == *lineptr)
-+ return (ssize_t) -1;
-+
-+ /* Return a partial line since we got an error in the middle. */
-+win:
-+ *p = '\0';
-+ return p - *lineptr;
-+}
-+#endif
-+
- static void
- solve(const char *equation)
- {