| 2134 | } |
| 2135 | |
| 2136 | static void make_jam_arguments_from_python(FRAME* inner, PyObject *args) |
| 2137 | { |
| 2138 | int i; |
| 2139 | int size; |
| 2140 | |
| 2141 | /* Build up the list of arg lists. */ |
| 2142 | frame_init( inner ); |
| 2143 | inner->prev = 0; |
| 2144 | inner->prev_user = 0; |
| 2145 | inner->module = bindmodule( constant_python_interface ); |
| 2146 | |
| 2147 | size = PyTuple_Size( args ); |
| 2148 | for (i = 0 ; i < size; ++i) |
| 2149 | { |
| 2150 | PyObject * a = PyTuple_GetItem( args, i ); |
| 2151 | if ( PyString_Check( a ) ) |
| 2152 | { |
| 2153 | lol_add( inner->args, jam_list_from_string(a) ); |
| 2154 | } |
| 2155 | else if ( PySequence_Check( a ) ) |
| 2156 | { |
| 2157 | lol_add( inner->args, jam_list_from_sequence(a) ); |
| 2158 | } |
| 2159 | } |
| 2160 | } |
| 2161 | |
| 2162 | |
| 2163 | /* |
no test coverage detected