[hackers] [ubase] Add support for obsolete -NUM arguments in arg.h || sin

From: <git_AT_suckless.org>
Date: Thu, 14 Nov 2013 11:48:45 +0100

commit 34ea6ae10a85943cce120b36df06b006f2d8d7fa
Author: sin <sin_AT_2f30.org>
Date: Thu Nov 14 10:47:07 2013 +0000

    Add support for obsolete -NUM arguments in arg.h
    
    Fix naming, _brk, _argc and _argv are reserved for the
    implementation.
    
    Thanks to nsz_AT_port70.net for reporting this, the mail excerpt below.
    
    "actually __.* and _[A-Z].* are reserved for any usage and _.* is
    reserved for file scope identifiers"
    
    We just rename them to brk_, argc_ and argv_.

diff --git a/arg.h b/arg.h
index 733a5d9..04b8514 100644
--- a/arg.h
+++ b/arg.h
_AT_@ -13,38 +13,51 @@ extern char *argv0;
                                         argv[0] && argv[0][1]\
                                         && argv[0][0] == '-';\
                                         argc--, argv++) {\
- char _argc;\
- char **_argv;\
- int _brk;\
+ char argc_;\
+ char **argv_;\
+ int brk_;\
                                 if (argv[0][1] == '-' && argv[0][2] == '
Received on Thu Nov 14 2013 - 11:48:45 CET

This archive was generated by hypermail 2.3.0 : Thu Nov 14 2013 - 12:00:22 CET