/*****************************************************************************/
/* */
-/* codelab.c */
+/* codelab.c */
/* */
-/* Code label structure */
+/* Code label structure */
/* */
/* */
/* */
/*****************************************************************************/
-/* Code */
+/* Code */
/*****************************************************************************/
void CL_MoveRefs (CodeLabel* OldLabel, CodeLabel* NewLabel)
/* Move all references to OldLabel to point to NewLabel. OldLabel will have no
- * more references on return.
- */
+** more references on return.
+*/
{
/* Walk through all instructions referencing the old label */
unsigned Count = CL_GetRefCount (OldLabel);
while (Count--) {
- /* Get the instruction that references the old label */
- CodeEntry* E = CL_GetRef (OldLabel, Count);
+ /* Get the instruction that references the old label */
+ CodeEntry* E = CL_GetRef (OldLabel, Count);
- /* Change the reference to the new label */
- CHECK (E->JumpTo == OldLabel);
- CL_AddRef (NewLabel, E);
+ /* Change the reference to the new label */
+ CHECK (E->JumpTo == OldLabel);
+ CL_AddRef (NewLabel, E);
}
{
WriteOutput ("%s:", L->Name);
if (strlen (L->Name) > 6) {
- /* Label is too long, add a linefeed */
- WriteOutput ("\n");
+ /* Label is too long, add a linefeed */
+ WriteOutput ("\n");
}
}
-
-
-
-