]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Export strdup (parsermodule needs it)
authorJack Jansen <jack.jansen@cwi.nl>
Thu, 12 Oct 1995 10:22:57 +0000 (10:22 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Thu, 12 Oct 1995 10:22:57 +0000 (10:22 +0000)
Mac/Python/macgetargv.c

index 7c343601781011428fcaf59d2b1ab6d77cb3ce66..2fbb28e69b4c87bbe976e879aa595abaea444aa1 100644 (file)
@@ -62,9 +62,11 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 static int arg_count;
 static char *arg_vector[256];
 
-/* Duplicate a string to the heap */
+/* Duplicate a string to the heap. We also export this since it isn't standard
+** and others use it
+*/
 
-static char *
+char *
 strdup(char *src)
 {
        char *dst = malloc(strlen(src) + 1);