[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
including file-type.h first
From: |
Paul Eggert |
Subject: |
including file-type.h first |
Date: |
Thu, 28 Apr 2005 09:50:04 -0700 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux) |
I installed this minor cleanup to allow programs to include file-type.h first:
2005-04-28 Paul Eggert <address@hidden>
* file-type.c: Include file-type.h first.
* filetype.h: Don't assume <sys/stat.h> was included first.
Index: lib/file-type.c
===================================================================
RCS file: /fetish/cu/lib/file-type.c,v
retrieving revision 1.6
diff -p -u -r1.6 file-type.c
--- lib/file-type.c 9 Apr 2004 12:15:23 -0000 1.6
+++ lib/file-type.c 28 Apr 2005 16:46:35 -0000
@@ -1,6 +1,7 @@
/* Return a string describing the type of a file.
- Copyright (C) 1993, 1994, 2001, 2002, 2004 Free Software Foundation, Inc.
+ Copyright (C) 1993, 1994, 2001, 2002, 2004, 2005 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
@@ -22,9 +23,8 @@
# include <config.h>
#endif
-#include <sys/types.h>
-#include <sys/stat.h>
#include "file-type.h"
+
#include "stat-macros.h"
#include <gettext.h>
Index: lib/file-type.h
===================================================================
RCS file: /fetish/cu/lib/file-type.h,v
retrieving revision 1.7
diff -p -u -r1.7 file-type.h
--- lib/file-type.h 9 Apr 2004 12:15:15 -0000 1.7
+++ lib/file-type.h 28 Apr 2005 16:46:35 -0000
@@ -1,6 +1,7 @@
/* Return a string describing the type of a file.
- Copyright (C) 1993, 1994, 2001, 2002, 2004 Free Software Foundation, Inc.
+ Copyright (C) 1993, 1994, 2001, 2002, 2004, 2005 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
@@ -21,6 +22,9 @@
#ifndef FILE_TYPE_H
# define FILE_TYPE_H 1
+# include <sys/types.h>
+# include <sys/stat.h>
+
char const *file_type (struct stat const *);
#endif /* FILE_TYPE_H */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- including file-type.h first,
Paul Eggert <=