From cfbbebdd6b3085f4094c073e4ebd139ac1d37737 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 2 Feb 2010 22:18:10 -0800 Subject: [PATCH] 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. --- src/data/make-file.c | 23 +++++++++++++---------- src/data/make-file.h | 9 ++++++--- 2 files changed, 19 insertions(+), 13 deletions(-) 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 -- 2.30.2