---
arg.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arg.h b/arg.h
index 5444aad..d983ebf 100644
--- a/arg.h
+++ b/arg.h
@@ -22,7 +22,7 @@
extern char *argv0;
/* int main(int argc, char *argv[]) */
-#define ARGBEGIN for (argv0 = *argv, *argv ? (argc--, argv++) :
---
arg.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arg.h b/arg.h
index 1c2757f..47d4afb 100644
--- a/arg.h
+++ b/arg.h
@@ -45,9 +45,9 @@ extern char *argv0;
}
\
}
---
arg.h | 7 ++-
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/arg.h b/arg.h
index 47d4afb..d565126 100644
--- a/arg.h
+++ b/arg.h
@@ -35,12 +35,9 @@ extern char *argv0;
switch((*argv)[i_])
#define ARGEND if (argused_) {
In Sun, 4 Jul 2021 12:34:54 +0200
Laslo Hunhold wrote:
> the arg.h in st has some "low-hanging" fruits regarding improvements,
> and I modified it accordingly in quark and farbfeld back in 2017 (see
> [0]) to fix some issues.
>
> One example is that in my modified form, you can actually access
- multiline declaration needs clear separation from body
- ARGBEGIN & ARGEND are slightly like contiguous without empty line
---
arg.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/arg.h b/arg.h
index 35cc7cc..5444aad 100644
--- a/arg.h
+++ b/arg.h
@@ -23,7 +23,8 @@
---
arg.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arg.h b/arg.h
index ba3e34a..1c2757f 100644
--- a/arg.h
+++ b/arg.h
@@ -46,7 +46,7 @@ extern char *argv0;
}
#define ARGC() ((*argv)[i_])
#define ARGF_(x) (((*argv)[i_ + 1]) ? (argused_ = 1,
---
arg.h | 15 ---
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/arg.h b/arg.h
index d565126..5e9de7c 100644
--- a/arg.h
+++ b/arg.h
@@ -26,24 +26,25 @@ extern char *argv0;
*argv && (*argv)[0] == '-' && (*argv)[1];
\
---
arg.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arg.h b/arg.h
index d983ebf..ba3e34a 100644
--- a/arg.h
+++ b/arg.h
@@ -23,7 +23,8 @@ extern char *argv0;
/* int main(int argc, char *argv[]) */
#define ARGBEGIN for (argv0 = *argv, *argv ? (argc--, argv++) :
In Sun, 4 Jul 2021 11:55:53 +0200
Hiltjo Posthuma wrote:
> Hi,
>
> Thanks, but I prefer the current style one.
>
> I'm not confident this patch doesn't modify any behaviour.
> For example I see the `i` variable was removed, but it is actually
> important to not modify argv as this causes
On Sun, 4 Jul 2021 11:55:53 +0200
Hiltjo Posthuma wrote:
Dear Hiltjo,
> Thanks, but I prefer the current style one.
>
> I'm not confident this patch doesn't modify any behaviour.
> For example I see the `i` variable was removed, but it is actually
> important to not modify argv as this causes
В Sun, 4 Jul 2021 11:55:53 +0200
Hiltjo Posthuma пишет:
> On Sun, Jul 04, 2021 at 12:30:27PM +0500, Nikita Zlobin wrote:
> > - improved code readability
> > - cleaned redundant variables and checks
> > - isolated reusable part for (E)ARGF
> > ---
> > arg.h | 65
> >
In Sun, 4 Jul 2021 11:55:53 +0200
Hiltjo Posthuma wrote:
> On Sun, Jul 04, 2021 at 12:30:27PM +0500, Nikita Zlobin wrote:
> > - improved code readability
> > - cleaned redundant variables and checks
> > - isolated reusable part for (E)ARGF
> > ---
> > arg.h | 65
> >
On Sun, Jul 04, 2021 at 12:30:27PM +0500, Nikita Zlobin wrote:
> - improved code readability
> - cleaned redundant variables and checks
> - isolated reusable part for (E)ARGF
> ---
> arg.h | 65 +--
> 1 file changed, 32 insertions(+), 33
- improved code readability
- cleaned redundant variables and checks
- isolated reusable part for (E)ARGF
---
arg.h | 65 +--
1 file changed, 32 insertions(+), 33 deletions(-)
diff --git a/arg.h b/arg.h
index a22e019..ee0bbc6 100644
---
14 matches
Mail list logo