VaKeR CYBER ARMY
Logo of a company Server : Apache/2.4.41 (Ubuntu)
System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Directory :  /proc/thread-self/root/usr/share/boost-build/src/util/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/thread-self/root/usr/share/boost-build/src/util/param.jam
# Copyright 2018 Steven Watanabe
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)

# Named parameters are represented as a list which has the
# argument name as the first element and the value as the
# remaining elements.  This function sorts the parameters
# into the correct variables and removes the parameter names.
#
# Example::
#
#   rule exe ( name : sources * : requirements * )
#   {
#     param.handle-named-params sources requirements ;
#     # At this point $(sources) is test.cpp
#   }
#   exe test : requirements <link>shared : sources test.cpp ;
#
rule handle-named-params ( parameter-names * )
{
    module [ CALLER_MODULE ]
    {
        # Uglify the variable names, because we're executing in an unknown module.
        local found-8bef5c096d06a1b0 ;
        local tmp-8bef5c096d06a1b0.$(1) ;
        for local v-8bef5c096d06a1b0 in $(1)
        {
            if $($(v-8bef5c096d06a1b0)[1]) && $($(v-8bef5c096d06a1b0)[1]) in $(1)
            {
                if $(tmp-8bef5c096d06a1b0.$($(v-8bef5c096d06a1b0)[1]))
                {
                    import errors ;
                    errors.error Parameter '$($(v-8bef5c096d06a1b0)[1])' passed more than once. ;
                }
                found-8bef5c096d06a1b0 = true ; 
                tmp-8bef5c096d06a1b0.$($(v-8bef5c096d06a1b0)[1]) = $($(v-8bef5c096d06a1b0)[2-]) ;
            }
            else if $($(v-8bef5c096d06a1b0))-is-defined
            {
                if $(found-8bef5c096d06a1b0)
                {
                    import errors ;
                    errors.error "Positional arguments must appear first." ;
                }
                tmp-8bef5c096d06a1b0.$(v-8bef5c096d06a1b0) = $($(v-8bef5c096d06a1b0)) ;
            }
        }
        for local v-8bef5c096d06a1b0 in $(1)
        {
            $(v-8bef5c096d06a1b0) = $(tmp-8bef5c096d06a1b0.$(v-8bef5c096d06a1b0)) ;
        }
    }
}

VaKeR 2022