From: Ben Pfaff Date: Wed, 3 Feb 2010 06:18:10 +0000 (-0800) Subject: make-file: Fix #includes. X-Git-Tag: v0.7.4~18 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pspp-builds.git;a=commitdiff_plain;h=cfbbebdd6b3085f4094c073e4ebd139ac1d37737 make-file: Fix #includes. In particular "gl/xvasprintf.h" is needed for xasprintf(), but I took the opportunity to update the header file style and ordering too. --- diff --git a/src/data/make-file.c b/src/data/make-file.c index bcb62906..f163d5e7 100644 --- a/src/data/make-file.c +++ b/src/data/make-file.c @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2004 Free Software Foundation, Inc. + Copyright (C) 2004, 2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -15,23 +15,26 @@ along with this program. If not, see . */ #include + +#include "data/make-file.h" + #include +#include #include +#include #include #include -#include -#include #include #include -#include -#include -#include -#include +#include "data/file-name.h" +#include "libpspp/ll.h" +#include "libpspp/message.h" -#include "fatal-signal.h" -#include "tempname.h" -#include "xalloc.h" +#include "gl/fatal-signal.h" +#include "gl/tempname.h" +#include "gl/xalloc.h" +#include "gl/xvasprintf.h" #include "gettext.h" #define _(msgid) gettext (msgid) diff --git a/src/data/make-file.h b/src/data/make-file.h index 19d33ebe..31795beb 100644 --- a/src/data/make-file.h +++ b/src/data/make-file.h @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2004 Free Software Foundation, Inc. + Copyright (C) 2004, 2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -14,9 +14,12 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#ifndef MKFILE_H -#define MKFILE_H +#ifndef MAKE_FILE_H +#define MAKE_FILE_H +#include +#include +#include /* Creates a temporary file and stores its name in *FILE_NAME and a file descriptor for it in *FD. Returns success. Caller is