100
100
Delattr(n, "sym:overloaded");
104
/* -----------------------------------------------------------------------------
105
* Swig_set_max_hash_expand()
107
* Controls how many Hash objects are displayed when displaying nested Hash objects.
108
* Makes DohSetMaxHashExpand an externally callable function (for debugger).
109
* ----------------------------------------------------------------------------- */
111
void Swig_set_max_hash_expand(int count) {
112
SetMaxHashExpand(count);
117
/* -----------------------------------------------------------------------------
118
* Swig_get_max_hash_expand()
120
* Returns how many Hash objects are displayed when displaying nested Hash objects.
121
* Makes DohGetMaxHashExpand an externally callable function (for debugger).
122
* ----------------------------------------------------------------------------- */
124
int Swig_get_max_hash_expand() {
125
return GetMaxHashExpand();
128
/* -----------------------------------------------------------------------------
129
* Swig_to_doh_string()
131
* DOH version of Swig_to_string()
132
* ----------------------------------------------------------------------------- */
134
static String *Swig_to_doh_string(DOH *object, int count) {
135
int old_count = Swig_get_max_hash_expand();
137
Swig_set_max_hash_expand(count);
139
String *debug_string = object ? NewStringf("%s", object) : NewString("NULL");
141
Swig_set_max_hash_expand(old_count);
145
/* -----------------------------------------------------------------------------
146
* Swig_to_doh_string_with_location()
148
* DOH version of Swig_to_string_with_location()
149
* ----------------------------------------------------------------------------- */
151
static String *Swig_to_doh_string_with_location(DOH *object, int count) {
152
int old_count = Swig_get_max_hash_expand();
154
Swig_set_max_hash_expand(count);
156
String *debug_string = Swig_stringify_with_location(object);
158
Swig_set_max_hash_expand(old_count);
162
/* -----------------------------------------------------------------------------
165
* Swig debug - return C string representation of any DOH type.
166
* Nested Hash types expand count is value of Swig_get_max_hash_expand when count<0
167
* Note: leaks memory.
168
* ----------------------------------------------------------------------------- */
170
const char *Swig_to_string(DOH *object, int count) {
171
return Char(Swig_to_doh_string(object, count));
174
/* -----------------------------------------------------------------------------
175
* Swig_to_string_with_location()
177
* Swig debug - return C string representation of any DOH type, within [] brackets
178
* for Hash and List types, prefixed by line and file information.
179
* Nested Hash types expand count is value of Swig_get_max_hash_expand when count<0
180
* Note: leaks memory.
181
* ----------------------------------------------------------------------------- */
183
const char *Swig_to_string_with_location(DOH *object, int count) {
184
return Char(Swig_to_doh_string_with_location(object, count));
187
/* -----------------------------------------------------------------------------
190
* Swig debug - display string representation of any DOH type.
191
* Nested Hash types expand count is value of Swig_get_max_hash_expand when count<0
192
* ----------------------------------------------------------------------------- */
194
void Swig_print(DOH *object, int count) {
195
String *output = Swig_to_doh_string(object, count);
196
Printf(stdout, "%s\n", output);
200
/* -----------------------------------------------------------------------------
201
* Swig_to_string_with_location()
203
* Swig debug - display string representation of any DOH type, within [] brackets
204
* for Hash and List types, prefixed by line and file information.
205
* Nested Hash types expand count is value of Swig_get_max_hash_expand when count<0
206
* ----------------------------------------------------------------------------- */
208
void Swig_print_with_location(DOH *object, int count) {
209
String *output = Swig_to_doh_string_with_location(object, count);
210
Printf(stdout, "%s\n", output);