X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdfm.c;h=9905b6b3e25f8cc8c688a1bde3b268dbf2b61457;hb=ccf2f45c091ce1555b4e2a36186c501675c18a59;hp=21b2b5acd340f695161495a69d49f8347861874f;hpb=cb4033020c8a24d573814e6ac9192046bffdccac;p=pspp-builds.git diff --git a/src/dfm.c b/src/dfm.c index 21b2b5ac..9905b6b3 100644 --- a/src/dfm.c +++ b/src/dfm.c @@ -17,25 +17,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* AIX requires this to be the first thing in the file. */ #include -#if __GNUC__ -#define alloca __builtin_alloca -#else -#if HAVE_ALLOCA_H -#include -#else -#ifdef _AIX -#pragma alloca -#else -#ifndef alloca /* predefined by HP cc +Olibcalls */ -char *alloca (); -#endif -#endif -#endif -#endif - #include +#include "dfm.h" #include #include #include @@ -50,8 +34,6 @@ char *alloca (); #include "str.h" #include "vfm.h" -#undef DEBUGGING -/*#define DEBUGGING 1*/ #include "debug-print.h" /* file_handle extension structure. */ @@ -487,6 +469,8 @@ eof: char * dfm_get_record (struct file_handle *h, int *len) { + assert (h != NULL); + if (h->class == NULL) { if (!open_file_r (h)) @@ -685,7 +669,7 @@ cmd_begin_data (void) /* We don't actually read from the inline file. The input procedure is what reads from it. */ getl_prompt = GETL_PRPT_DATA; - procedure (NULL, NULL, NULL); + procedure (NULL, NULL, NULL, NULL); ext = inline_file->ext;