[Git][ghc/ghc][master] hp2ps Utilities.c: include stdlib.h instead of extern malloc and realloc
Marge Bot (@marge-bot)
gitlab at gitlab.haskell.org
Tue Feb 18 13:53:35 UTC 2025
Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC
Commits:
7596675e by Jens Petersen at 2025-02-18T08:53:08-05:00
hp2ps Utilities.c: include stdlib.h instead of extern malloc and realloc
- - - - -
1 changed file:
- utils/hp2ps/Utilities.c
Changes:
=====================================
utils/hp2ps/Utilities.c
=====================================
@@ -1,10 +1,9 @@
#include "Main.h"
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include "Error.h"
-extern void* malloc(size_t);
-
char*
Basename(char *name)
{
@@ -89,7 +88,6 @@ void *
xrealloc(void *p, size_t n)
{
void *r;
- extern void *realloc(void *, size_t);
r = realloc(p, n);
if (!r) {
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/7596675e470699f6184e13c08b268972028bc868
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/7596675e470699f6184e13c08b268972028bc868
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20250218/66bbeb57/attachment-0001.html>
More information about the ghc-commits
mailing list