[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Remove obsolete code in pkl_asm_insn
From: |
Tim Rühsen |
Subject: |
Re: [PATCH] Remove obsolete code in pkl_asm_insn |
Date: |
Sat, 4 Apr 2020 14:32:54 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 |
Pushed.
On 04.04.20 11:49, Jose E. Marchesi wrote:
>
> Hi Tim.
>
> 2020-04-03 Tim Rühsen <address@hidden>
>
> * src/pkl-asm.c (pkl_asm_insn):
> Remove obsolete code.
>
> Ok for master.
> Thanks! :)
>
> ---
> ChangeLog | 5 +++++
> src/pkl-asm.c | 20 --------------------
> 2 files changed, 5 insertions(+), 20 deletions(-)
>
> diff --git a/ChangeLog b/ChangeLog
> index aa0afab0..dee8aed1 100644
> --- a/ChangeLog
> +++ b/ChangeLog
> @@ -1,3 +1,8 @@
> +2020-04-03 Tim Rühsen <address@hidden>
> +
> + * src/pkl-asm.c (pkl_asm_insn):
> + Remove obsolete code.
> +
> 2020-04-03 Tim Rühsen <address@hidden>
>
> * src/pk-cmd.c (skip_blanks): Take const char *,
> diff --git a/src/pkl-asm.c b/src/pkl-asm.c
> index 8073c861..e08afe63 100644
> --- a/src/pkl-asm.c
> +++ b/src/pkl-asm.c
> @@ -18,7 +18,6 @@
>
> #include <config.h>
>
> -#include <xalloc.h>
> #include <stdarg.h>
> #include <assert.h>
> #include <jitter/jitter.h>
> @@ -1324,21 +1323,6 @@ pkl_asm_insn (pkl_asm pasm, enum pkl_asm_insn
> insn, ...)
> /* This is a macro-instruction. Dispatch to the corresponding
> macro-instruction handler. */
>
> - const char *note_begin_prefix = "#begin ";
> - const char *note_end_prefix = "#end ";
> - const char *macro_name = insn_names[insn];
> - char *note_begin = xmalloc (strlen (note_begin_prefix)
> - + strlen (macro_name) + 1);
> - char *note_end = xmalloc (strlen (note_end_prefix)
> - + strlen (macro_name) + 1);
> -
> - strcpy (note_begin, note_begin_prefix);
> - strcat (note_begin, macro_name);
> -
> - strcpy (note_end, note_end_prefix);
> - strcat (note_end, macro_name);
> -
> - /* pkl_asm_note (pasm, note_begin); */
> switch (insn)
> {
> case PKL_INSN_BCONC:
> @@ -1585,10 +1569,6 @@ pkl_asm_insn (pkl_asm pasm, enum pkl_asm_insn
> insn, ...)
> default:
> assert (0);
> }
> -
> - /* pkl_asm_note (pasm, note_end); */
> - free (note_begin);
> - free (note_end);
> }
> }
>
> --
> 2.26.0
>
signature.asc
Description: OpenPGP digital signature