Lines Matching refs:t

74     tOverlay *t = Alloc(sizeof(tOverlay));  in NewOverlay()  local
77 list->tail->next = t; in NewOverlay()
79 list->head = t; in NewOverlay()
80 list->tail = t; in NewOverlay()
82 return t; in NewOverlay()
87 tOverlay *t = list->head; in GetOverlay() local
89 while (t) in GetOverlay()
91 if (isSame(t->name, overlayName)) in GetOverlay()
93 return t; in GetOverlay()
95 t = t->next; in GetOverlay()
113 tOverlay *t = NewOverlay(list); in s_AddOverlay() local
115 t->id = GetNextOverlayID(); in s_AddOverlay()
117 t->name = overlayName; in s_AddOverlay()
149 tOverlay *t = CurrentOverlay->tail; in OverlaySetId() local
151 if (t->id) in OverlaySetId()
157 t->id = id; in OverlaySetId()
169 tOverlay *t = CurrentOverlay->tail; in OverlaySetGroup() local
171 if (t->group) in OverlaySetGroup()
177 t->group = group; in OverlaySetGroup()
189 tOverlay *t = CurrentOverlay->tail; in OverlaySetAddress() local
191 if (t->afters.tail || t->address) in OverlaySetAddress()
197 t->address = address; in OverlaySetAddress()
209 tAfter *t = Alloc(sizeof(tAfter)); in NewAfter() local
212 list->tail->next = t; in NewAfter()
214 list->head = t; in NewAfter()
215 list->tail = t; in NewAfter()
217 return t; in NewAfter()
223 tAfter *t = list->head; in GetAfter() local
225 while (t) in GetAfter()
227 if (isSame(t->name, name)) in GetAfter()
229 return t; in GetAfter()
231 t = t->next; in GetAfter()
245 tAfter *t = NewAfter(list); in AddAfter() local
246 t->name = name; in AddAfter()
269 tObject *t = Alloc(sizeof(tObject)); in NewObject() local
272 list->tail->next = t; in NewObject()
274 list->head = t; in NewObject()
275 list->tail = t; in NewObject()
277 return t; in NewObject()
283 tObject *t = list->head; in GetObject() local
285 while (t) in GetObject()
287 if (isSame(t->objectName, objectName) && isSame(t->sectionName, sectionName)) in GetObject()
289 return t; in GetObject()
291 t = t->next; in GetObject()
299 tObject *t = NewObject(list); in AddObject() local
300 t->objectName = objectName; in AddObject()
301 t->sectionName = NULL; in AddObject()
302 t->objectType = objectType; in AddObject()
309 tObject *t = list->head; in SetObjectSection() local
313 while (t) in SetObjectSection()
315 if (!t->sectionName) in SetObjectSection()
319 if (!isNeedSection(t) && sectionName[0] == '*') in SetObjectSection()
325 debug_printf("t->objectName=[%s]\n", t->objectName); in SetObjectSection()
327 if (GetObject(list, t->objectName, sectionName)) in SetObjectSection()
329 char *s = Alloc(strlen(t->objectName) + strlen(sectionName) + 80); in SetObjectSection()
330 sprintf(s, "OBJECT '%s (%s)' already existed. Ignored.", t->objectName, in SetObjectSection()
336 t->sectionName = strdup(sectionName); in SetObjectSection()
338 t = t->next; in SetObjectSection()
392 tStatic *t = &Static; in StaticSetName() local
394 if (t->name) in StaticSetName()
407 t->name = staticName; in StaticSetName()
419 tStatic *t = &Static; in StaticSetAddress() local
421 if (t->address) in StaticSetAddress()
427 t->address = address; in StaticSetAddress()
481 tStatic *t = &Static; in StaticSetStackSize() local
483 if (t->stacksize) in StaticSetStackSize()
489 t->stacksize = stacksize; in StaticSetStackSize()
497 tStatic *t = &Static; in StaticSetStackSizeIrq() local
499 if (t->stacksize_irq) in StaticSetStackSizeIrq()
505 t->stacksize_irq = stacksize_irq; in StaticSetStackSizeIrq()
520 tProperty* t = &Property; \
522 if ( t->member ) \
528 t->member = val; \
545 tAfter *t = list->head; in SET_PROPERTY() local
547 while (t) in SET_PROPERTY()
549 if (!isSame(t->name, Static.name) && !GetOverlay(&OverlayList, t->name) in SET_PROPERTY()
550 && !GetOverlay(&AutoloadList, t->name) in SET_PROPERTY()
551 && !GetOverlay(&LtdoverlayList, t->name) in SET_PROPERTY()
552 && !GetOverlay(&LtdautoloadList, t->name)) in SET_PROPERTY()
554 …tderr, "No such static/autoload/overlay/ltdautoload/ltdoverlay %s referred in overlay %s", t->name, in SET_PROPERTY()
558 t = t->next; in SET_PROPERTY()
566 tOverlay *t = list->head; in s_CheckOverlay() local
568 while (t) in s_CheckOverlay()
570 if (t->address) in s_CheckOverlay()
572 if (t->afters.tail) in s_CheckOverlay()
574 fprintf(stderr, "Set both of 'Address' and 'After' in overlay %s", t->name); in s_CheckOverlay()
580 if (t->afters.tail) in s_CheckOverlay()
582 if (!CheckAfters(t->name, &t->afters)) in s_CheckOverlay()
589 fprintf(stderr, "No addressing commands 'Address'/ 'After' in overlay %s", t->name); in s_CheckOverlay()
593 t = t->next; in s_CheckOverlay()
605 tStatic *t = &Static; in CheckStatic() local
607 if (!t->address) in CheckStatic()
609 fprintf(stderr, "No addressing commands 'After' in static %s", t->name); in CheckStatic()
613 if (!t->stacksize_irq) in CheckStatic()
615 t->stacksize_irq = DEFAULT_IRQSTACKSIZE; in CheckStatic()
624 tProperty *t = &Property; in CheckProperty() local
627 if (!t->overlaydefs) in CheckProperty()
629 t->overlaydefs = strdup(DEFAULT_OVERLAYDEFS); in CheckProperty()
631 if (t->overlaydefs[0] == '%') in CheckProperty()
633 char *name = Alloc(strlen(Static.name) + strlen(t->overlaydefs + 1) + 1); in CheckProperty()
635 strcat(name, t->overlaydefs + 1); in CheckProperty()
636 Free(&t->overlaydefs); in CheckProperty()
637 t->overlaydefs = name; in CheckProperty()
640 if (!t->overlaytable) in CheckProperty()
642 t->overlaytable = strdup(DEFAULT_OVERLAYTABLE); in CheckProperty()
644 if (t->overlaytable[0] == '%') in CheckProperty()
646 char *name = Alloc(strlen(Static.name) + strlen(t->overlaytable + 1) + 1); in CheckProperty()
648 strcat(name, t->overlaytable + 1); in CheckProperty()
649 Free(&t->overlaytable); in CheckProperty()
650 t->overlaytable = name; in CheckProperty()
653 if (!t->ltdoverlaydefs) in CheckProperty()
655 t->ltdoverlaydefs = strdup(DEFAULT_LTDOVERLAYDEFS); in CheckProperty()
657 if (t->ltdoverlaydefs[0] == '%') in CheckProperty()
659 char *name = Alloc(strlen(Static.name) + strlen(t->ltdoverlaydefs + 1) + 1); in CheckProperty()
661 strcat(name, t->ltdoverlaydefs + 1); in CheckProperty()
662 Free(&t->ltdoverlaydefs); in CheckProperty()
663 t->ltdoverlaydefs = name; in CheckProperty()
666 if (!t->ltdoverlaytable) in CheckProperty()
668 t->ltdoverlaytable = strdup(DEFAULT_LTDOVERLAYTABLE); in CheckProperty()
670 if (t->ltdoverlaytable[0] == '%') in CheckProperty()
672 char *name = Alloc(strlen(Static.name) + strlen(t->ltdoverlaytable + 1) + 1); in CheckProperty()
674 strcat(name, t->ltdoverlaytable + 1); in CheckProperty()
675 Free(&t->ltdoverlaytable); in CheckProperty()
676 t->ltdoverlaytable = name; in CheckProperty()
679 if (!t->suffix) in CheckProperty()
681 t->suffix = strdup(DEFAULT_SUFFIX); in CheckProperty()
684 if (!t->flxsuffix) in CheckProperty()
686 t->flxsuffix = strdup(DEFAULT_FLXSUFFIX); in CheckProperty()
689 if (!t->ltdsuffix) in CheckProperty()
691 t->ltdsuffix = strdup(DEFAULT_LTDSUFFIX); in CheckProperty()
709 tAfter *t = list->head; in DumpAfters() local
711 while (t) in DumpAfters()
713 printf(" After : %s\n", t->name); in DumpAfters()
714 t = t->next; in DumpAfters()
721 tObject *t = list->head; in DumpObjects() local
723 while (t) in DumpObjects()
725 printf(" Object : %s %s\n", t->objectName, t->sectionName); in DumpObjects()
726 t = t->next; in DumpObjects()
733 tOverlay *t = AutoloadList.head; in DumpAutoload() local
735 while (t) in DumpAutoload()
737 printf("Autoload : %s\n", t->name); in DumpAutoload()
738 printf(" Address : %08lx\n", t->address); in DumpAutoload()
739 DumpAfters(&t->afters); in DumpAutoload()
740 DumpObjects(&t->objects); in DumpAutoload()
742 t = t->next; in DumpAutoload()
749 tOverlay *t = OverlayList.head; in DumpOverlay() local
751 while (t) in DumpOverlay()
753 printf("Overlay : %s\n", t->name); in DumpOverlay()
754 printf(" Address : %08lx\n", t->address); in DumpOverlay()
755 DumpAfters(&t->afters); in DumpOverlay()
756 DumpObjects(&t->objects); in DumpOverlay()
758 t = t->next; in DumpOverlay()
765 tOverlay *t = LtdautoloadList.head; in DumpLtdautoload() local
767 while (t) in DumpLtdautoload()
769 printf("Ltdautoload : %s\n", t->name); in DumpLtdautoload()
770 printf(" Address : %08lx\n", t->address); in DumpLtdautoload()
771 DumpAfters(&t->afters); in DumpLtdautoload()
772 DumpObjects(&t->objects); in DumpLtdautoload()
774 t = t->next; in DumpLtdautoload()
781 tOverlay *t = LtdoverlayList.head; in DumpLtdoverlay() local
783 while (t) in DumpLtdoverlay()
785 printf("Ltdoverlay : %s\n", t->name); in DumpLtdoverlay()
786 printf(" Address : %08lx\n", t->address); in DumpLtdoverlay()
787 DumpAfters(&t->afters); in DumpLtdoverlay()
788 DumpObjects(&t->objects); in DumpLtdoverlay()
790 t = t->next; in DumpLtdoverlay()
797 tStatic *t = &Static; in DumpStatic() local
799 printf("Static : %s\n", t->name); in DumpStatic()
800 printf(" Address : %08lx\n", t->address); in DumpStatic()
801 DumpObjects(&t->objects); in DumpStatic()
802 printf(" StackSize : %08lx\n", t->stacksize); in DumpStatic()
809 tProperty *t = &Property; in DumpProperty() local
812 printf(" OverlayDefs : %s\n", t->overlaydefs); in DumpProperty()
813 printf(" OverlayTable : %s\n", t->overlaytable); in DumpProperty()
814 printf(" LtdoverlayDefs : %s\n", t->ltdoverlaydefs); in DumpProperty()
815 printf(" LtdoverlayTable : %s\n", t->ltdoverlaytable); in DumpProperty()
816 printf(" Suffix : %s\n", t->suffix); in DumpProperty()
817 printf(" Flxsuffix : %s\n", t->flxsuffix); in DumpProperty()
818 printf(" Ltdsuffix : %s\n", t->ltdsuffix); in DumpProperty()