From: Jarkko Hietaniemi Date: Sun, 2 Dec 2001 16:54:06 +0000 (+0000) Subject: Add a header for DJGPP with the function prototypes. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=af89d9af4fcb4773bc931a5c06f9c069c444462b;p=p5sagit%2Fp5-mst-13.2.git Add a header for DJGPP with the function prototypes. p4raw-id: //depot/perl@13425 --- diff --git a/djgpp/djgpp.c b/djgpp/djgpp.c index 73573c3..0e465b0 100644 --- a/djgpp/djgpp.c +++ b/djgpp/djgpp.c @@ -1,20 +1,5 @@ #define PERLIO_NOT_STDIO 0 -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include "EXTERN.h" -#include "perl.h" -#include "XSUB.h" +#include "djgpp.h" /* hold file pointer, command, mode, and the status of the command */ struct pipe_list { @@ -400,7 +385,8 @@ static char *perlprefix; #define PERL5 "/perl5" -char *djgpp_pathexp (const char *p) +char * +djgpp_pathexp (const char *p) { static char expp[PATH_MAX]; strcpy (expp,perlprefix); diff --git a/djgpp/djgpp.h b/djgpp/djgpp.h new file mode 100644 index 0000000..04aa4a2 --- /dev/null +++ b/djgpp/djgpp.h @@ -0,0 +1,55 @@ +#ifndef PERL_DJGPP_DJGPP_H +#define PERL_DJGPP_DJGPP_H + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "EXTERN.h" +#include "perl.h" +#include "XSUB.h" + +FILE * +djgpp_popen (const char *cm, const char *md); + +int +djgpp_pclose (FILE *pp); + +int +do_aspawn (pTHX_ SV *really,SV **mark,SV **sp); + +int +do_spawn2 (pTHX_ char *cmd,int execf) + +int +do_spawn (pTHX_ char *cmd); + +bool +Perl_do_exec (pTHX_ char *cmd); + +void +Perl_init_os_extras(pTHX); + +char +*djgpp_pathexp (const char *p); + +void +Perl_DJGPP_init (int *argcp,char ***argvp); + +int +djgpp_fflush (FILE *fp); + +/* DJGPP utility functions without prototypes? */ + +int _is_unixy_shell(char *s); + +#endif