66693afe964ba6c061f84edb5f85b5c52b9f6cbd
[deliverable/binutils-gdb.git] / gdb / tui / tui-data.c
1 /* TUI data manipulation routines.
2
3 Copyright (C) 1998-2018 Free Software Foundation, Inc.
4
5 Contributed by Hewlett-Packard Company.
6
7 This file is part of GDB.
8
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 3 of the License, or
12 (at your option) any later version.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with this program. If not, see <http://www.gnu.org/licenses/>. */
21
22 #include "defs.h"
23 #include "symtab.h"
24 #include "tui/tui.h"
25 #include "tui/tui-data.h"
26 #include "tui/tui-wingeneral.h"
27 #include "gdb_curses.h"
28
29 /****************************
30 ** GLOBAL DECLARATIONS
31 ****************************/
32 struct tui_win_info *tui_win_list[MAX_MAJOR_WINDOWS];
33
34 /***************************
35 ** Private data
36 ****************************/
37 static enum tui_layout_type current_layout = UNDEFINED_LAYOUT;
38 static int term_height, term_width;
39 static struct tui_gen_win_info _locator;
40 static struct tui_gen_win_info exec_info[2];
41 static struct tui_win_info *src_win_list[2];
42 static struct tui_list source_windows = {src_win_list, 0};
43 static int default_tab_len = DEFAULT_TAB_LEN;
44 static struct tui_win_info *win_with_focus = NULL;
45 static struct tui_layout_def layout_def = {
46 SRC_WIN, /* DISPLAY_MODE */
47 FALSE}; /* SPLIT */
48
49 static int win_resized = FALSE;
50
51
52 /*********************************
53 ** Static function forward decls
54 **********************************/
55 static void free_content (tui_win_content,
56 int,
57 enum tui_win_type);
58 static void free_content_elements (tui_win_content,
59 int,
60 enum tui_win_type);
61
62
63
64 /*********************************
65 ** PUBLIC FUNCTIONS
66 **********************************/
67
68 int
69 tui_win_is_source_type (enum tui_win_type win_type)
70 {
71 return (win_type == SRC_WIN || win_type == DISASSEM_WIN);
72 }
73
74 int
75 tui_win_is_auxillary (enum tui_win_type win_type)
76 {
77 return (win_type > MAX_MAJOR_WINDOWS);
78 }
79
80 int
81 tui_win_has_locator (struct tui_win_info *win_info)
82 {
83 return (win_info != NULL
84 && win_info->detail.source_info.has_locator);
85 }
86
87 void
88 tui_set_win_highlight (struct tui_win_info *win_info,
89 int highlight)
90 {
91 if (win_info != NULL)
92 win_info->is_highlighted = highlight;
93 }
94
95 /******************************************
96 ** ACCESSORS & MUTATORS FOR PRIVATE DATA
97 ******************************************/
98
99 /* Answer a whether the terminal window has been resized or not. */
100 int
101 tui_win_resized (void)
102 {
103 return win_resized;
104 }
105
106
107 /* Set a whether the terminal window has been resized or not. */
108 void
109 tui_set_win_resized_to (int resized)
110 {
111 win_resized = resized;
112 }
113
114
115 /* Answer a pointer to the current layout definition. */
116 struct tui_layout_def *
117 tui_layout_def (void)
118 {
119 return &layout_def;
120 }
121
122
123 /* Answer the window with the logical focus. */
124 struct tui_win_info *
125 tui_win_with_focus (void)
126 {
127 return win_with_focus;
128 }
129
130
131 /* Set the window that has the logical focus. */
132 void
133 tui_set_win_with_focus (struct tui_win_info *win_info)
134 {
135 win_with_focus = win_info;
136 }
137
138
139 /* Answer the length in chars, of tabs. */
140 int
141 tui_default_tab_len (void)
142 {
143 return default_tab_len;
144 }
145
146
147 /* Set the length in chars, of tabs. */
148 void
149 tui_set_default_tab_len (int len)
150 {
151 default_tab_len = len;
152 }
153
154
155 /* Accessor for the current source window. Usually there is only one
156 source window (either source or disassembly), but both can be
157 displayed at the same time. */
158 struct tui_list *
159 tui_source_windows (void)
160 {
161 return &source_windows;
162 }
163
164
165 /* Clear the list of source windows. Usually there is only one source
166 window (either source or disassembly), but both can be displayed at
167 the same time. */
168 void
169 tui_clear_source_windows (void)
170 {
171 source_windows.list[0] = NULL;
172 source_windows.list[1] = NULL;
173 source_windows.count = 0;
174 }
175
176
177 /* Clear the pertinant detail in the source windows. */
178 void
179 tui_clear_source_windows_detail (void)
180 {
181 int i;
182
183 for (i = 0; i < (tui_source_windows ())->count; i++)
184 tui_clear_win_detail ((tui_source_windows ())->list[i]);
185 }
186
187
188 /* Add a window to the list of source windows. Usually there is only
189 one source window (either source or disassembly), but both can be
190 displayed at the same time. */
191 void
192 tui_add_to_source_windows (struct tui_win_info *win_info)
193 {
194 if (source_windows.count < 2)
195 source_windows.list[source_windows.count++] = win_info;
196 }
197
198
199 /* Clear the pertinant detail in the windows. */
200 void
201 tui_clear_win_detail (struct tui_win_info *win_info)
202 {
203 if (win_info != NULL)
204 {
205 switch (win_info->generic.type)
206 {
207 case SRC_WIN:
208 case DISASSEM_WIN:
209 win_info->detail.source_info.gdbarch = NULL;
210 win_info->detail.source_info.start_line_or_addr.loa = LOA_ADDRESS;
211 win_info->detail.source_info.start_line_or_addr.u.addr = 0;
212 win_info->detail.source_info.horizontal_offset = 0;
213 break;
214 case CMD_WIN:
215 wmove (win_info->generic.handle, 0, 0);
216 break;
217 case DATA_WIN:
218 win_info->detail.data_display_info.data_content =
219 (tui_win_content) NULL;
220 win_info->detail.data_display_info.data_content_count = 0;
221 win_info->detail.data_display_info.regs_content =
222 (tui_win_content) NULL;
223 win_info->detail.data_display_info.regs_content_count = 0;
224 win_info->detail.data_display_info.regs_column_count = 1;
225 win_info->detail.data_display_info.display_regs = FALSE;
226 break;
227 default:
228 break;
229 }
230 }
231 }
232
233
234 /* Accessor for the source execution info ptr. */
235 struct tui_gen_win_info *
236 tui_source_exec_info_win_ptr (void)
237 {
238 return &exec_info[0];
239 }
240
241
242 /* Accessor for the disassem execution info ptr. */
243 struct tui_gen_win_info *
244 tui_disassem_exec_info_win_ptr (void)
245 {
246 return &exec_info[1];
247 }
248
249
250 /* Accessor for the locator win info. Answers a pointer to the static
251 locator win info struct. */
252 struct tui_gen_win_info *
253 tui_locator_win_info_ptr (void)
254 {
255 return &_locator;
256 }
257
258
259 /* Accessor for the term_height. */
260 int
261 tui_term_height (void)
262 {
263 return term_height;
264 }
265
266
267 /* Mutator for the term height. */
268 void
269 tui_set_term_height_to (int h)
270 {
271 term_height = h;
272 }
273
274
275 /* Accessor for the term_width. */
276 int
277 tui_term_width (void)
278 {
279 return term_width;
280 }
281
282
283 /* Mutator for the term_width. */
284 void
285 tui_set_term_width_to (int w)
286 {
287 term_width = w;
288 }
289
290
291 /* Accessor for the current layout. */
292 enum tui_layout_type
293 tui_current_layout (void)
294 {
295 return current_layout;
296 }
297
298
299 /* Mutator for the current layout. */
300 void
301 tui_set_current_layout_to (enum tui_layout_type new_layout)
302 {
303 current_layout = new_layout;
304 }
305
306
307 /*****************************
308 ** OTHER PUBLIC FUNCTIONS
309 *****************************/
310
311
312 /* Answer the next window in the list, cycling back to the top if
313 necessary. */
314 struct tui_win_info *
315 tui_next_win (struct tui_win_info *cur_win)
316 {
317 int type = cur_win->generic.type;
318 struct tui_win_info *next_win = NULL;
319
320 if (cur_win->generic.type == CMD_WIN)
321 type = SRC_WIN;
322 else
323 type = cur_win->generic.type + 1;
324 while (type != cur_win->generic.type && (next_win == NULL))
325 {
326 if (tui_win_list[type]
327 && tui_win_list[type]->generic.is_visible)
328 next_win = tui_win_list[type];
329 else
330 {
331 if (type == CMD_WIN)
332 type = SRC_WIN;
333 else
334 type++;
335 }
336 }
337
338 return next_win;
339 }
340
341
342 /* Answer the prev window in the list, cycling back to the bottom if
343 necessary. */
344 struct tui_win_info *
345 tui_prev_win (struct tui_win_info *cur_win)
346 {
347 int type = cur_win->generic.type;
348 struct tui_win_info *prev = NULL;
349
350 if (cur_win->generic.type == SRC_WIN)
351 type = CMD_WIN;
352 else
353 type = cur_win->generic.type - 1;
354 while (type != cur_win->generic.type && (prev == NULL))
355 {
356 if (tui_win_list[type]
357 && tui_win_list[type]->generic.is_visible)
358 prev = tui_win_list[type];
359 else
360 {
361 if (type == SRC_WIN)
362 type = CMD_WIN;
363 else
364 type--;
365 }
366 }
367
368 return prev;
369 }
370
371
372 /* Answer the window represented by name. */
373 struct tui_win_info *
374 tui_partial_win_by_name (const char *name)
375 {
376 struct tui_win_info *win_info = NULL;
377
378 if (name != NULL)
379 {
380 int i = 0;
381
382 while (i < MAX_MAJOR_WINDOWS && win_info == NULL)
383 {
384 if (tui_win_list[i] != 0)
385 {
386 const char *cur_name =
387 tui_win_name (&tui_win_list[i]->generic);
388
389 if (strlen (name) <= strlen (cur_name)
390 && startswith (cur_name, name))
391 win_info = tui_win_list[i];
392 }
393 i++;
394 }
395 }
396
397 return win_info;
398 }
399
400
401 /* Answer the name of the window. */
402 const char *
403 tui_win_name (const struct tui_gen_win_info *win_info)
404 {
405 const char *name = NULL;
406
407 switch (win_info->type)
408 {
409 case SRC_WIN:
410 name = SRC_NAME;
411 break;
412 case CMD_WIN:
413 name = CMD_NAME;
414 break;
415 case DISASSEM_WIN:
416 name = DISASSEM_NAME;
417 break;
418 case DATA_WIN:
419 name = DATA_NAME;
420 break;
421 default:
422 name = "";
423 break;
424 }
425
426 return name;
427 }
428
429
430 void
431 tui_initialize_static_data (void)
432 {
433 tui_init_generic_part (tui_source_exec_info_win_ptr ());
434 tui_init_generic_part (tui_disassem_exec_info_win_ptr ());
435 tui_init_generic_part (tui_locator_win_info_ptr ());
436 }
437
438
439 struct tui_gen_win_info *
440 tui_alloc_generic_win_info (void)
441 {
442 struct tui_gen_win_info *win = XNEW (struct tui_gen_win_info);
443
444 if (win != NULL)
445 tui_init_generic_part (win);
446
447 return win;
448 }
449
450
451 void
452 tui_init_generic_part (struct tui_gen_win_info *win)
453 {
454 win->width =
455 win->height =
456 win->origin.x =
457 win->origin.y =
458 win->viewport_height =
459 win->content_size =
460 win->last_visible_line = 0;
461 win->handle = NULL;
462 win->content = NULL;
463 win->content_in_use =
464 win->is_visible = FALSE;
465 win->title = 0;
466 }
467
468
469 /* init_content_element().
470 */
471 static void
472 init_content_element (struct tui_win_element *element,
473 enum tui_win_type type)
474 {
475 switch (type)
476 {
477 case SRC_WIN:
478 case DISASSEM_WIN:
479 element->which_element.source.line = NULL;
480 element->which_element.source.line_or_addr.loa = LOA_LINE;
481 element->which_element.source.line_or_addr.u.line_no = 0;
482 element->which_element.source.is_exec_point = FALSE;
483 element->which_element.source.has_break = FALSE;
484 break;
485 case DATA_WIN:
486 tui_init_generic_part (&element->which_element.data_window);
487 element->which_element.data_window.type = DATA_ITEM_WIN;
488 element->which_element.data_window.content =
489 tui_alloc_content (1, DATA_ITEM_WIN);
490 element->which_element.data_window.content_size = 1;
491 break;
492 case CMD_WIN:
493 element->which_element.command.line = NULL;
494 break;
495 case DATA_ITEM_WIN:
496 element->which_element.data.name = NULL;
497 element->which_element.data.type = TUI_REGISTER;
498 element->which_element.data.item_no = UNDEFINED_ITEM;
499 element->which_element.data.value = NULL;
500 element->which_element.data.highlight = FALSE;
501 element->which_element.data.content = NULL;
502 break;
503 case LOCATOR_WIN:
504 element->which_element.locator.full_name[0] =
505 element->which_element.locator.proc_name[0] = (char) 0;
506 element->which_element.locator.line_no = 0;
507 element->which_element.locator.addr = 0;
508 break;
509 case EXEC_INFO_WIN:
510 memset(element->which_element.simple_string, ' ',
511 sizeof(element->which_element.simple_string));
512 break;
513 default:
514 break;
515 }
516 }
517
518 static void
519 init_win_info (struct tui_win_info *win_info)
520 {
521 tui_init_generic_part (&win_info->generic);
522 win_info->can_highlight =
523 win_info->is_highlighted = FALSE;
524 switch (win_info->generic.type)
525 {
526 case SRC_WIN:
527 case DISASSEM_WIN:
528 win_info->detail.source_info.execution_info
529 = (struct tui_gen_win_info *) NULL;
530 win_info->detail.source_info.has_locator = FALSE;
531 win_info->detail.source_info.horizontal_offset = 0;
532 win_info->detail.source_info.gdbarch = NULL;
533 win_info->detail.source_info.start_line_or_addr.loa = LOA_ADDRESS;
534 win_info->detail.source_info.start_line_or_addr.u.addr = 0;
535 win_info->detail.source_info.fullname = NULL;
536 break;
537 case DATA_WIN:
538 win_info->detail.data_display_info.data_content = (tui_win_content) NULL;
539 win_info->detail.data_display_info.data_content_count = 0;
540 win_info->detail.data_display_info.regs_content = (tui_win_content) NULL;
541 win_info->detail.data_display_info.regs_content_count = 0;
542 win_info->detail.data_display_info.regs_column_count = 1;
543 win_info->detail.data_display_info.display_regs = FALSE;
544 win_info->detail.data_display_info.current_group = 0;
545 break;
546 case CMD_WIN:
547 break;
548 }
549 }
550
551
552 struct tui_win_info *
553 tui_alloc_win_info (enum tui_win_type type)
554 {
555 struct tui_win_info *win_info = XNEW (struct tui_win_info);
556
557 if (win_info != NULL)
558 {
559 win_info->generic.type = type;
560 init_win_info (win_info);
561 }
562
563 return win_info;
564 }
565
566
567 /* Allocates the content and elements in a block. */
568 tui_win_content
569 tui_alloc_content (int num_elements, enum tui_win_type type)
570 {
571 tui_win_content content;
572 struct tui_win_element *element_block_ptr;
573 int i;
574
575 content = XNEWVEC (struct tui_win_element *, num_elements);
576
577 /*
578 * All windows, except the data window, can allocate the
579 * elements in a chunk. The data window cannot because items
580 * can be added/removed from the data display by the user at any
581 * time.
582 */
583 if (type != DATA_WIN)
584 {
585 element_block_ptr = XNEWVEC (struct tui_win_element, num_elements);
586 for (i = 0; i < num_elements; i++)
587 {
588 content[i] = element_block_ptr;
589 init_content_element (content[i], type);
590 element_block_ptr++;
591 }
592 }
593
594 return content;
595 }
596
597
598 /* Adds the input number of elements to the windows's content. If no
599 content has been allocated yet, alloc_content() is called to do
600 this. The index of the first element added is returned, unless
601 there is a memory allocation error, in which case, (-1) is
602 returned. */
603 int
604 tui_add_content_elements (struct tui_gen_win_info *win_info,
605 int num_elements)
606 {
607 struct tui_win_element *element_ptr;
608 int i, index_start;
609
610 if (win_info->content == NULL)
611 {
612 win_info->content = tui_alloc_content (num_elements, win_info->type);
613 index_start = 0;
614 }
615 else
616 index_start = win_info->content_size;
617 if (win_info->content != NULL)
618 {
619 for (i = index_start; (i < num_elements + index_start); i++)
620 {
621 element_ptr = XNEW (struct tui_win_element);
622 if (element_ptr != NULL)
623 {
624 win_info->content[i] = element_ptr;
625 init_content_element (element_ptr, win_info->type);
626 win_info->content_size++;
627 }
628 else /* Things must be really hosed now! We ran out of
629 memory!? */
630 return (-1);
631 }
632 }
633
634 return index_start;
635 }
636
637
638 /* Delete all curses windows associated with win_info, leaving
639 everything else intact. */
640 void
641 tui_del_window (struct tui_win_info *win_info)
642 {
643 struct tui_gen_win_info *generic_win;
644
645 switch (win_info->generic.type)
646 {
647 case SRC_WIN:
648 case DISASSEM_WIN:
649 generic_win = tui_locator_win_info_ptr ();
650 if (generic_win != (struct tui_gen_win_info *) NULL)
651 {
652 tui_delete_win (generic_win->handle);
653 generic_win->handle = NULL;
654 generic_win->is_visible = FALSE;
655 }
656 if (win_info->detail.source_info.fullname)
657 {
658 xfree (win_info->detail.source_info.fullname);
659 win_info->detail.source_info.fullname = NULL;
660 }
661 generic_win = win_info->detail.source_info.execution_info;
662 if (generic_win != (struct tui_gen_win_info *) NULL)
663 {
664 tui_delete_win (generic_win->handle);
665 generic_win->handle = NULL;
666 generic_win->is_visible = FALSE;
667 }
668 break;
669 case DATA_WIN:
670 if (win_info->generic.content != NULL)
671 {
672 tui_del_data_windows (win_info->detail.data_display_info.regs_content,
673 win_info->detail.data_display_info.regs_content_count);
674 tui_del_data_windows (win_info->detail.data_display_info.data_content,
675 win_info->detail.data_display_info.data_content_count);
676 }
677 break;
678 default:
679 break;
680 }
681 if (win_info->generic.handle != (WINDOW *) NULL)
682 {
683 tui_delete_win (win_info->generic.handle);
684 win_info->generic.handle = NULL;
685 win_info->generic.is_visible = FALSE;
686 }
687 }
688
689
690 void
691 tui_free_window (struct tui_win_info *win_info)
692 {
693 struct tui_gen_win_info *generic_win;
694
695 switch (win_info->generic.type)
696 {
697 case SRC_WIN:
698 case DISASSEM_WIN:
699 if (win_info->detail.source_info.fullname)
700 {
701 xfree (win_info->detail.source_info.fullname);
702 win_info->detail.source_info.fullname = NULL;
703 }
704 generic_win = win_info->detail.source_info.execution_info;
705 if (generic_win != (struct tui_gen_win_info *) NULL)
706 {
707 tui_delete_win (generic_win->handle);
708 generic_win->handle = NULL;
709 tui_free_win_content (generic_win);
710 }
711 break;
712 case DATA_WIN:
713 if (win_info->generic.content != NULL)
714 {
715 tui_free_data_content (win_info->detail.data_display_info.regs_content,
716 win_info->detail.data_display_info.regs_content_count);
717 win_info->detail.data_display_info.regs_content =
718 (tui_win_content) NULL;
719 win_info->detail.data_display_info.regs_content_count = 0;
720 tui_free_data_content (win_info->detail.data_display_info.data_content,
721 win_info->detail.data_display_info.data_content_count);
722 win_info->detail.data_display_info.data_content =
723 (tui_win_content) NULL;
724 win_info->detail.data_display_info.data_content_count = 0;
725 win_info->detail.data_display_info.regs_column_count = 1;
726 win_info->detail.data_display_info.display_regs = FALSE;
727 win_info->generic.content = NULL;
728 win_info->generic.content_size = 0;
729 }
730 break;
731 default:
732 break;
733 }
734 if (win_info->generic.handle != (WINDOW *) NULL)
735 {
736 tui_delete_win (win_info->generic.handle);
737 win_info->generic.handle = NULL;
738 tui_free_win_content (&win_info->generic);
739 }
740 if (win_info->generic.title)
741 xfree (win_info->generic.title);
742 xfree (win_info);
743 }
744
745
746 void
747 tui_free_all_source_wins_content (void)
748 {
749 int i;
750
751 for (i = 0; i < (tui_source_windows ())->count; i++)
752 {
753 struct tui_win_info *win_info = (tui_source_windows ())->list[i];
754
755 if (win_info != NULL)
756 {
757 tui_free_win_content (&(win_info->generic));
758 tui_free_win_content (win_info->detail.source_info.execution_info);
759 }
760 }
761 }
762
763
764 void
765 tui_free_win_content (struct tui_gen_win_info *win_info)
766 {
767 if (win_info->content != NULL)
768 {
769 free_content (win_info->content,
770 win_info->content_size,
771 win_info->type);
772 win_info->content = NULL;
773 }
774 win_info->content_size = 0;
775 }
776
777
778 void
779 tui_del_data_windows (tui_win_content content,
780 int content_size)
781 {
782 int i;
783
784 /* Remember that data window content elements are of type struct
785 tui_gen_win_info *, each of which whose single element is a data
786 element. */
787 for (i = 0; i < content_size; i++)
788 {
789 struct tui_gen_win_info *generic_win
790 = &content[i]->which_element.data_window;
791
792 if (generic_win != (struct tui_gen_win_info *) NULL)
793 {
794 tui_delete_win (generic_win->handle);
795 generic_win->handle = NULL;
796 generic_win->is_visible = FALSE;
797 }
798 }
799 }
800
801
802 void
803 tui_free_data_content (tui_win_content content,
804 int content_size)
805 {
806 int i;
807
808 /* Remember that data window content elements are of type struct
809 tui_gen_win_info *, each of which whose single element is a data
810 element. */
811 for (i = 0; i < content_size; i++)
812 {
813 struct tui_gen_win_info *generic_win
814 = &content[i]->which_element.data_window;
815
816 if (generic_win != (struct tui_gen_win_info *) NULL)
817 {
818 tui_delete_win (generic_win->handle);
819 generic_win->handle = NULL;
820 tui_free_win_content (generic_win);
821 }
822 }
823 free_content (content,
824 content_size,
825 DATA_WIN);
826 }
827
828
829 /**********************************
830 ** LOCAL STATIC FUNCTIONS **
831 **********************************/
832
833
834 static void
835 free_content (tui_win_content content,
836 int content_size,
837 enum tui_win_type win_type)
838 {
839 if (content != (tui_win_content) NULL)
840 {
841 free_content_elements (content, content_size, win_type);
842 xfree (content);
843 }
844 }
845
846
847 /* free_content_elements().
848 */
849 static void
850 free_content_elements (tui_win_content content,
851 int content_size,
852 enum tui_win_type type)
853 {
854 if (content != (tui_win_content) NULL)
855 {
856 int i;
857
858 if (type == SRC_WIN || type == DISASSEM_WIN)
859 {
860 /* Free whole source block. */
861 xfree (content[0]->which_element.source.line);
862 }
863 else
864 {
865 for (i = 0; i < content_size; i++)
866 {
867 struct tui_win_element *element;
868
869 element = content[i];
870 if (element != (struct tui_win_element *) NULL)
871 {
872 switch (type)
873 {
874 case DATA_WIN:
875 xfree (element);
876 break;
877 case DATA_ITEM_WIN:
878 /* Note that data elements are not allocated in
879 a single block, but individually, as
880 needed. */
881 if (element->which_element.data.type != TUI_REGISTER)
882 xfree ((void *)element->which_element.data.name);
883 xfree (element->which_element.data.value);
884 xfree (element->which_element.data.content);
885 xfree (element);
886 break;
887 case CMD_WIN:
888 xfree (element->which_element.command.line);
889 break;
890 default:
891 break;
892 }
893 }
894 }
895 }
896 if (type != DATA_WIN && type != DATA_ITEM_WIN)
897 xfree (content[0]); /* Free the element block. */
898 }
899 }
This page took 0.046958 seconds and 3 git commands to generate.