summaryrefslogtreecommitdiff
path: root/usr/src/cmd/sgs/include/sgs.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd/sgs/include/sgs.h')
-rw-r--r--usr/src/cmd/sgs/include/sgs.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/usr/src/cmd/sgs/include/sgs.h b/usr/src/cmd/sgs/include/sgs.h
index bee03e6819..a4d7d02c8e 100644
--- a/usr/src/cmd/sgs/include/sgs.h
+++ b/usr/src/cmd/sgs/include/sgs.h
@@ -24,7 +24,7 @@
* All Rights Reserved
*
*
- * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2010 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*
* Global include file for all sgs.
@@ -130,6 +130,14 @@ typedef enum {
ERR_NUM /* Must be last */
} Error;
+/*
+ * Type used to represent line numbers within files, and a corresponding
+ * printing macro for it.
+ */
+typedef ulong_t Lineno;
+#define EC_LINENO(_x) EC_XWORD(_x) /* "llu" */
+
+
#if defined(_LP64) && !defined(_ELF64)
#define S_ERROR (~(uint_t)0)
#else