[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[COMMITTED] poked,pokefmt: fix GNU code style
From: |
Mohammad-Reza Nabipoor |
Subject: |
[COMMITTED] poked,pokefmt: fix GNU code style |
Date: |
Sun, 11 Feb 2024 12:49:20 +0100 |
2024-02-11 Mohammad-Reza Nabipoor <mnabipoor@gnu.org>
* poked/poked.c: Fix GNU code style.
* pokefmt/pokefmt.l: Likewise.
---
On Sun, Feb 11, 2024 at 12:38:14PM +0100, Jose E. Marchesi wrote:
>>
>> Do you think this is safe to be included in the maint/poke-4?
>
> Yes, but please mind the code style. (space before open parentheses).
Oops ... fixed.
ChangeLog | 5 +++++
poked/poked.c | 2 +-
pokefmt/pokefmt.l | 11 +++++------
3 files changed, 11 insertions(+), 7 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 1e3cf704..ced1e9be 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-02-11 Mohammad-Reza Nabipoor <mnabipoor@gnu.org>
+
+ * poked/poked.c: Fix GNU code style.
+ * pokefmt/pokefmt.l: Likewise.
+
2024-02-11 Mohammad-Reza Nabipoor <mnabipoor@gnu.org>
* poked/poked.c (#include <err.h>): Remove.
diff --git a/poked/poked.c b/poked/poked.c
index aa67d8ce..04120660 100644
--- a/poked/poked.c
+++ b/poked/poked.c
@@ -36,7 +36,7 @@
//--- err and errx implementation
static void
-errx(int eval, const char *fmt, ...)
+errx (int eval, const char *fmt, ...)
{
va_list ap;
diff --git a/pokefmt/pokefmt.l b/pokefmt/pokefmt.l
index ac69bef0..69c854ae 100644
--- a/pokefmt/pokefmt.l
+++ b/pokefmt/pokefmt.l
@@ -139,8 +139,8 @@ struct source_range
#include "libpoke.h"
#include "pk-utils.h"
-static void errx(int eval, const char *fmt, ...);
-static void err(int eval, const char *fmt, ...);
+static void errx (int eval, const char *fmt, ...);
+static void err (int eval, const char *fmt, ...);
struct poke
{
@@ -263,7 +263,7 @@ main (int argc, char *argv[])
//--- err and errx implementation
static void
-errx(int eval, const char *fmt, ...)
+errx (int eval, const char *fmt, ...)
{
va_list ap;
@@ -275,7 +275,7 @@ errx(int eval, const char *fmt, ...)
}
static void
-err(int eval, const char *fmt, ...)
+err (int eval, const char *fmt, ...)
{
va_list ap;
@@ -473,8 +473,7 @@ tif_bgcolor_set (pk_compiler pkc __attribute__ ((unused)),
struct pk_color c)
(void)c;
}
-static void
-default_exception_handler (struct poke *poke, pk_val exc);
+static void default_exception_handler (struct poke *poke, pk_val exc);
void
poke_init (struct poke *pk, const char *poke_src_file, FILE *output)
--
2.43.0