• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/cxxfilt-11/cxxfilt/binutils/

Lines Matching +defs:indent +defs:stack

43   unsigned int indent;
44 /* Type stack. */
45 struct pr_stack *stack;
59 /* The type stack. */
63 /* Next element on the stack. */
80 static void indent (struct pr_handle *);
304 info.indent = 0;
305 info.stack = NULL;
328 indent (struct pr_handle *info)
332 for (i = 0; i < info->indent; i++)
336 /* Push a type on the type stack. */
352 n->next = info->stack;
353 info->stack = n;
358 /* Prepend a string onto the type on the top of the type stack. */
365 assert (info->stack != NULL);
367 n = (char *) xmalloc (strlen (s) + strlen (info->stack->type) + 1);
368 sprintf (n, "%s%s", s, info->stack->type);
369 free (info->stack->type);
370 info->stack->type = n;
375 /* Append a string to the type on the top of the type stack. */
385 assert (info->stack != NULL);
387 len = strlen (info->stack->type);
388 info->stack->type = (char *) xrealloc (info->stack->type,
390 strcpy (info->stack->type + len, s);
395 /* Append a string to the parents on the top of the type stack. */
405 assert (info->stack != NULL);
407 len = info->stack->parents ? strlen (info->stack->parents) : 0;
408 info->stack->parents = (char *) xrealloc (info->stack->parents,
410 strcpy (info->stack->parents + len, s);
424 assert (info->stack != NULL);
426 u = strchr (info->stack->type, '|');
431 n = (char *) xmalloc (strlen (info->stack->type) + strlen (s));
433 memcpy (n, info->stack->type, u - info->stack->type);
434 strcpy (n + (u - info->stack->type), s);
437 free (info->stack->type);
438 info->stack->type = n;
444 && (strchr (info->stack->type, '{') != NULL
445 || strchr (info->stack->type, '(') != NULL))
459 /* Indent the type at the top of the stack by appending spaces. */
466 for (i = 0; i < info->indent; i++)
475 /* Pop a type from the type stack. */
483 assert (info->stack != NULL);
485 o = info->stack;
486 info->stack = o->next;
523 assert (info->indent == 0);
537 assert (info->indent == 0);
544 /* Push an empty type onto the type stack. */
554 /* Push a void type onto the type stack. */
564 /* Push an integer type onto the type stack. */
576 /* Push a floating type onto the type stack. */
593 /* Push a complex type onto the type stack. */
606 /* Push a bfd_boolean type onto the type stack. */
619 /* Push an enum type onto the type stack. */
677 /* Turn the top type on the stack into a pointer. */
685 assert (info->stack != NULL);
687 s = strchr (info->stack->type, '|');
693 /* Turn the top type on the stack into a function returning that type. */
703 assert (info->stack != NULL);
730 /* Now the return type is on the top of the stack. */
767 /* Turn the top type on the stack into a reference to that type. */
774 assert (info->stack != NULL);
787 assert (info->stack != NULL);
951 /* Now the return type is on the top of the stack. */
1020 info->indent += 2;
1065 info->stack->visibility = DEBUG_VISIBILITY_PUBLIC;
1079 assert (info->stack != NULL);
1081 if (info->stack->visibility == visibility)
1106 t = info->stack->type;
1116 info->stack->visibility = visibility;
1171 assert (info->stack != NULL);
1172 assert (info->indent >= 2);
1174 info->indent -= 2;
1177 s = info->stack->type + strlen (info->stack->type) - 2;
1196 info->indent += 2;
1268 info->stack->visibility = DEBUG_VISIBILITY_PRIVATE;
1315 assert (info->stack != NULL && info->stack->next != NULL);
1366 /* Now the top of the stack is something like "public A / * bitpos
1367 10 * /". The next element on the stack is something like "class
1369 stack in before the {. */
1370 s = strchr (info->stack->next->type, '{');
1376 for (l = info->stack->next->type; l != s; l++)
1386 n = (char *) xmalloc (strlen (info->stack->type) + strlen (t) + 1);
1387 memcpy (n, info->stack->type, s - info->stack->type);
1388 strcpy (n + (s - info->stack->type), t);
1391 free (info->stack->type);
1392 info->stack->type = n;
1406 assert (info->stack != NULL);
1407 info->stack->method = name;
1423 assert (info->stack != NULL);
1424 assert (info->stack->next != NULL);
1441 ? info->stack->next->next->method
1442 : info->stack->next->method)))
1460 /* Now the top of the stack is the class. */
1501 assert (info->stack != NULL);
1502 assert (info->stack->next != NULL);
1503 assert (info->stack->next->method != NULL);
1522 if (! substitute_type (info, info->stack->next->method))
1530 /* Now the top of the stack is the class. */
1549 info->stack->method = NULL;
1561 /* Push a type on the stack using a typedef name. */
1571 /* Push a type on the stack using a tag name. */
1640 indent (info);
1649 stack, so all we have to do here is print it out. */
1661 indent (info);
1677 indent (info);
1690 indent (info);
1708 indent (info);
1734 indent (info);
1770 indent (info);
1834 indent (info);
1838 info->indent += 2;
1851 indent (info);
1866 info->indent -= 2;
1868 indent (info);
1964 /* Push an enum type onto the type stack. */
1982 info->filename, info->stack->type);
2020 info->stack->flavor = structp ? "struct" : "union";
2023 info->stack->flavor[0]);
2025 info->stack->visibility = DEBUG_VISIBILITY_PUBLIC;
2035 assert (info->stack != NULL);
2037 if (info->stack->visibility == visibility)
2040 assert (info->stack->visibility != DEBUG_VISIBILITY_IGNORE);
2042 info->stack->visibility = visibility;
2069 name, info->filename, t, info->stack->flavor, info->stack->type,
2081 assert (info->stack != NULL);
2097 info->indent += 2;
2119 info->stack->flavor = structp ? "class" : "union class";
2120 info->stack->parents = NULL;
2121 info->stack->num_parents = 0;
2143 info->stack->visibility = DEBUG_VISIBILITY_PRIVATE;
2161 len_class = strlen (info->stack->next->type);
2165 sprintf (full_name, "%s::%s", info->stack->next->type, name);
2181 name, info->filename, t, info->stack->type,
2199 assert (info->stack != NULL && info->stack->next != NULL);
2242 if (info->stack->num_parents && ! append_parent (info, ", "))
2247 info->stack->num_parents++;
2268 assert (info->stack != NULL);
2269 assert (info->stack->next != NULL);
2283 method_name = strdup (context ? info->stack->next->next->method
2284 : info->stack->next->method);
2305 /* Now the top of the stack is the class. */
2310 method_name, info->filename, method_type, info->stack->type);
2330 assert (info->stack != NULL);
2331 assert (info->stack->next != NULL);
2332 assert (info->stack->next->method != NULL);
2350 method_name = strdup (info->stack->next->method);
2352 if (! substitute_type (info, info->stack->next->method))
2360 /* Now the top of the stack is the class. */
2365 method_name, info->filename, method_type, info->stack->type,
2380 fprintf (info->f, "%s\t%s\t0;\"\tkind:c\ttype:%s", info->stack->type,
2381 info->filename, info->stack->flavor);
2382 if (info->stack->num_parents)
2384 fprintf (info->f, "\tinherits:%s", info->stack->parents);
2385 free (info->stack->parents);
2392 /* Push a type on the stack using a tag name. */
2461 stack, so all we have to do here is print it out. */
2485 indent (info);
2499 indent (info);
2518 indent (info);
2610 info->stack->flavor = "static";
2612 info->stack->flavor = NULL;
2634 info->stack->method = dname;
2640 info->stack->method = "";
2649 info->stack->method = NULL;
2651 info->stack->parents = strdup (name);
2653 if (! info->stack->method && ! append_type (info, "("))
2684 if (! info->stack->method)
2719 fprintf (info->f, "%s\t%s\t", info->stack->parents, info->filename);
2720 free (info->stack->parents);
2724 local = info->stack->flavor != NULL;
2725 if (info->stack->method && *info->stack->method)
2728 partof = (char *) info->stack->method;
2734 if (! info->stack->method && ! append_type (info, ")"))