

            svmake (2) --- create a shell variable at the current lexic level  05/27/82


          | _C_a_l_l_i_n_g _I_n_f_o_r_m_a_t_i_o_n

          |      integer function svmake (name, value)
          |      character name (ARB), value (ARB)

          |      Library:  vshlib (shell routine library)


          | _F_u_n_c_t_i_o_n

          |      'Svmake'  creates  a  shell  variable  'name' at the current
          |      lexic level of the shell with the value 'value'.  The  func-
          |      tion  returns the lexic level at which the variable has been
          |      created.  If the variable controls a value kept in  the  SWT
          |      common  block,  the  value in the common block is updated to
          |      reflect the new value of the variable.


          | _I_m_p_l_e_m_e_n_t_a_t_i_o_n

          |      First, 'svmake' checks the existence of the variable at  the
          |      current  lexic  level.   If  it  exists,  then  the function
          |      returns immediately; otherwise it  allocates  space  in  the
          |      variable  area  for  the  name  and  value.  If the variable
          |      controls a location in the SWT common block, 'svmake'  saves
          |      the current value in the SWT common and copies the new value
          |      in its place.


          | _A_r_g_u_m_e_n_t_s _M_o_d_i_f_i_e_d

          |      none


          | _C_a_l_l_s

          |      length, ctoc


          | _S_e_e _A_l_s_o

          |      other sv?* routines (2)
















            svmake (2)                    - 1 -                    svmake (2)


