Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/games/hack Include system headers before private headers. Av...



details:   https://anonhg.NetBSD.org/src/rev/72b55fdfc2dc
branches:  trunk
changeset: 767499:72b55fdfc2dc
user:      dholland <dholland%NetBSD.org@localhost>
date:      Wed Jul 20 07:04:30 2011 +0000

description:
Include system headers before private headers. Avoids various possible
symbol conflicts.

diffstat:

 games/hack/hack.bones.c |  8 ++++----
 games/hack/hack.do.c    |  8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)

diffs (55 lines):

diff -r 5febcf11931c -r 72b55fdfc2dc games/hack/hack.bones.c
--- a/games/hack/hack.bones.c   Wed Jul 20 05:20:54 2011 +0000
+++ b/games/hack/hack.bones.c   Wed Jul 20 07:04:30 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hack.bones.c,v 1.8 2009/08/12 07:28:40 dholland Exp $  */
+/*     $NetBSD: hack.bones.c,v 1.9 2011/07/20 07:04:30 dholland Exp $  */
 
 /*
  * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -63,13 +63,13 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: hack.bones.c,v 1.8 2009/08/12 07:28:40 dholland Exp $");
+__RCSID("$NetBSD: hack.bones.c,v 1.9 2011/07/20 07:04:30 dholland Exp $");
 #endif                         /* not lint */
 
+#include <fcntl.h>
+#include <unistd.h>
 #include "hack.h"
 #include "extern.h"
-#include <fcntl.h>
-#include <unistd.h>
 
 static char bones[] = "bones_xx";
 
diff -r 5febcf11931c -r 72b55fdfc2dc games/hack/hack.do.c
--- a/games/hack/hack.do.c      Wed Jul 20 05:20:54 2011 +0000
+++ b/games/hack/hack.do.c      Wed Jul 20 07:04:30 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hack.do.c,v 1.9 2009/08/12 07:28:40 dholland Exp $     */
+/*     $NetBSD: hack.do.c,v 1.10 2011/07/20 07:04:30 dholland Exp $    */
 
 /*
  * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -63,16 +63,16 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: hack.do.c,v 1.9 2009/08/12 07:28:40 dholland Exp $");
+__RCSID("$NetBSD: hack.do.c,v 1.10 2011/07/20 07:04:30 dholland Exp $");
 #endif                         /* not lint */
 
 /* Contains code for 'd', 'D' (drop), '>', '<' (up, down) and 't' (throw) */
 
-#include "hack.h"
-#include "extern.h"
 #include <fcntl.h>
 #include <unistd.h>
 #include <stdlib.h>
+#include "hack.h"
+#include "extern.h"
 
 
 static int drop(struct obj *);



Home | Main Index | Thread Index | Old Index