aboutsummaryrefslogtreecommitdiff
path: root/ddb/db_macro.c
diff options
context:
space:
mode:
authorLuca Dariz <luca@orpolo.org>2023-01-16 14:04:23 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-01-16 21:29:03 +0100
commitcf8ef945796fd6c0edb50dac1876fcaf6160ee68 (patch)
tree8a62036baf0dfec74cfb6bd59a938a4975eb8650 /ddb/db_macro.c
parent3dacf02edbe8266cde9c9618350541cd8dee1993 (diff)
downloadgnumach-cf8ef945796fd6c0edb50dac1876fcaf6160ee68.tar.gz
gnumach-cf8ef945796fd6c0edb50dac1876fcaf6160ee68.tar.bz2
gnumach-cf8ef945796fd6c0edb50dac1876fcaf6160ee68.zip
add missing argument names
* ddb/db_break.c: add argument name, compilation fails on Debian/Linux stable with gcc 10.2 otherwise. For some reason on Debian/Hurd a simple test program without argname succeeds, unless I force -std=c11 or similar; I suppose because newer gcc have different defaults. Gnumach seem to still require c89 for some older code, otherwise we could explicitely use gnu99/c99 or gnu11/c11. * ddb/db_cond.c: Likewise * ddb/db_examine.c: Likewise * ddb/db_macro.c: Likewise * ddb/db_watch.c: Likewise * device/dev_name.c: Likewise Message-Id: <20230116130426.246584-1-luca@orpolo.org>
Diffstat (limited to 'ddb/db_macro.c')
-rw-r--r--ddb/db_macro.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/ddb/db_macro.c b/ddb/db_macro.c
index d417abe1..63159d72 100644
--- a/ddb/db_macro.c
+++ b/ddb/db_macro.c
@@ -73,10 +73,10 @@ db_lookup_macro(const char *name)
void
db_def_macro_cmd(
- db_expr_t,
- boolean_t,
- db_expr_t,
- const char *)
+ db_expr_t addr,
+ int have_addr,
+ db_expr_t count,
+ const char * modif)
{
char *p;
int c;
@@ -108,10 +108,10 @@ db_def_macro_cmd(
void
db_del_macro_cmd(
- db_expr_t,
- boolean_t,
- db_expr_t,
- const char *)
+ db_expr_t addr,
+ int have_addr,
+ db_expr_t count,
+ const char * modif)
{
struct db_user_macro *mp;
@@ -128,10 +128,10 @@ db_del_macro_cmd(
void
db_show_macro(
- db_expr_t,
- boolean_t,
- db_expr_t,
- const char *)
+ db_expr_t addr,
+ int have_addr,
+ db_expr_t count,
+ const char * modif)
{
struct db_user_macro *mp;
int t;