summaryrefslogtreecommitdiff
path: root/term/term.h
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@gnu.org>2009-06-23 00:27:28 +0200
committerThomas Schwinge <tschwinge@gnu.org>2009-06-23 14:54:09 +0200
commitc6c9d7a69dea26e04bba7010582e7bcd612e710c (patch)
tree99d5d3aa08af80e5a94213377fd26e7ddd5e53b3 /term/term.h
parent2772f5c6a6a51cf946fd95bf6ffe254273157a21 (diff)
Use static inline where appropriate.
* console-client/timer.h (fetch_jiffies): Use static inline instead of extern inline. * ext2fs/ext2fs.h (test_bit, set_bit, clear_bit, dino, global_block_modified) (record_global_poke, sync_global_ptr, record_indir_poke, sync_global) (alloc_sync): Likewise. * libftpconn/priv.h (unexpected_reply): Likewise. * term/term.h (qsize, qavail, clear_queue, dequeue_quote, dequeue) (enqueue_internal, enqueue, enqueue_quote, unquote_char, char_quoted_p) (queue_erase): Likewise. * ufs/ufs.h (dino, indir_block, cg_locate, sync_disk_blocks, sync_dinode) (swab_short, swab_long, swab_long_long): Likewise. * term/munge.c (poutput): Use static inline instead of inline.
Diffstat (limited to 'term/term.h')
-rw-r--r--term/term.h26
1 files changed, 14 insertions, 12 deletions
diff --git a/term/term.h b/term/term.h
index 8448d78e..1c85bf6c 100644
--- a/term/term.h
+++ b/term/term.h
@@ -1,5 +1,7 @@
/*
- Copyright (C) 1995,96,98,99, 2002 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996, 1998, 1999, 2002, 2009 Free Software Foundation,
+ Inc.
+
Written by Michael I. Bushnell, p/BSG.
This file is part of the GNU Hurd.
@@ -185,21 +187,21 @@ struct queue
struct queue *create_queue (int size, int lowat, int hiwat);
/* Return the number of characters in Q. */
-extern inline int
+static inline int
qsize (struct queue *q)
{
return q->ce - q->cs;
}
/* Return nonzero if characters can be added to Q. */
-extern inline int
+static inline int
qavail (struct queue *q)
{
return !q->susp;
}
/* Flush all the characters from Q. */
-extern inline void
+static inline void
clear_queue (struct queue *q)
{
q->susp = 0;
@@ -211,7 +213,7 @@ clear_queue (struct queue *q)
void call_asyncs (int dir);
/* Return the next character off Q; leave the quoting bit on. */
-extern inline quoted_char
+static inline quoted_char
dequeue_quote (struct queue *q)
{
int beep = 0;
@@ -234,7 +236,7 @@ dequeue_quote (struct queue *q)
}
/* Return the next character off Q. */
-extern inline char
+static inline char
dequeue (struct queue *q)
{
return dequeue_quote (q) & ~QUEUE_QUOTE_MARK;
@@ -243,7 +245,7 @@ dequeue (struct queue *q)
struct queue *reallocate_queue (struct queue *);
/* Add C to *QP. */
-extern inline void
+static inline void
enqueue_internal (struct queue **qp, quoted_char c)
{
struct queue *q = *qp;
@@ -265,28 +267,28 @@ enqueue_internal (struct queue **qp, quoted_char c)
}
/* Add C to *QP. */
-extern inline void
+static inline void
enqueue (struct queue **qp, char c)
{
enqueue_internal (qp, c);
}
/* Add C to *QP, marking it with a quote. */
-extern inline void
+static inline void
enqueue_quote (struct queue **qp, char c)
{
enqueue_internal (qp, c | QUEUE_QUOTE_MARK);
}
/* Return the unquoted version of a quoted_char. */
-extern inline char
+static inline char
unquote_char (quoted_char c)
{
return c & ~QUEUE_QUOTE_MARK;
}
/* Tell if a quoted_char is actually quoted. */
-extern inline int
+static inline int
char_quoted_p (quoted_char c)
{
return c & QUEUE_QUOTE_MARK;
@@ -294,7 +296,7 @@ char_quoted_p (quoted_char c)
/* Remove the most recently enqueue character from Q; leaving
the quote mark on. */
-extern inline short
+static inline short
queue_erase (struct queue *q)
{
short answer;