Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/xlint/lint1 Provide a placebo default for ALIGN() fo...
details: https://anonhg.NetBSD.org/src/rev/fe7a5a7c22ed
branches: trunk
changeset: 521512:fe7a5a7c22ed
user: tv <tv%NetBSD.org@localhost>
date: Thu Jan 31 19:33:27 2002 +0000
description:
Provide a placebo default for ALIGN() for hosts which don't have this.
diffstat:
usr.bin/xlint/lint1/lint1.h | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r 65772ade5500 -r fe7a5a7c22ed usr.bin/xlint/lint1/lint1.h
--- a/usr.bin/xlint/lint1/lint1.h Thu Jan 31 19:32:11 2002 +0000
+++ b/usr.bin/xlint/lint1/lint1.h Thu Jan 31 19:33:27 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lint1.h,v 1.11 2001/12/13 23:56:00 augustss Exp $ */
+/* $NetBSD: lint1.h,v 1.12 2002/01/31 19:33:27 tv Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved.
@@ -35,6 +35,11 @@
#include "lint.h"
#include "op.h"
+/* XXX - works for most systems, but the whole ALIGN thing needs to go away */
+#ifndef ALIGN
+#define ALIGN(x) (((x) + 7) & ~7)
+#endif
+
/*
* Describes the position of a declaration or anything else.
*/
Home |
Main Index |
Thread Index |
Old Index