[PATCH 2/2] rename add_uniop() to add_unop()

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

 



Everywhere else in the code and comments 'unop' is used as short
for 'unary op'.

So, use 'unop' also for this function.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx>
---
 linearize.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/linearize.c b/linearize.c
index ce6b91b74..faec8c9d1 100644
--- a/linearize.c
+++ b/linearize.c
@@ -1086,7 +1086,7 @@ static pseudo_t linearize_inc_dec(struct entrypoint *ep, struct expression *expr
 	return postop ? old : new;
 }
 
-static pseudo_t add_uniop(struct entrypoint *ep, struct symbol *ctype, int op, pseudo_t src)
+static pseudo_t add_unop(struct entrypoint *ep, struct symbol *ctype, int op, pseudo_t src)
 {
 	struct instruction *insn = alloc_typed_instruction(op, ctype);
 	pseudo_t new = alloc_pseudo(insn);
@@ -1123,9 +1123,9 @@ static pseudo_t linearize_regular_preop(struct entrypoint *ep, struct expression
 		return add_binary_op(ep, ctype, OP_SET_EQ, pre, zero);
 	}
 	case '~':
-		return add_uniop(ep, ctype, OP_NOT, pre);
+		return add_unop(ep, ctype, OP_NOT, pre);
 	case '-':
-		return add_uniop(ep, ctype, opcode_float(OP_NEG, ctype), pre);
+		return add_unop(ep, ctype, opcode_float(OP_NEG, ctype), pre);
 	}
 	return VOID;
 }
-- 
2.17.1

--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux