[hackers] [sbase] _brk, _argc and _argv are reserved for the implementation || sin

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

commit 3b3dffd24f9e84f6bf24d6903366fb588be7480d
Author: sin <sin_AT_2f30.org>
Date: Thu Nov 14 10:41:38 2013 +0000

    _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 acae756..04b8514 100644
--- a/arg.h
+++ b/arg.h
_AT_@ -13,21 +13,21 @@ 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:45:07 CET

This archive was generated by hypermail 2.3.0 : Thu Nov 14 2013 - 11:48:17 CET