void FreeCodeLabel (CodeLabel* L);
/* Free the given code label */
-void AddLabelRef (CodeLabel* L, struct CodeEntry* E);
+#if defined(HAVE_INLINE)
+INLINE unsigned CL_GetRefCount (const CodeLabel* L)
+/* Get the number of references for this label */
+{
+ return CollCount (&L->JumpFrom);
+}
+#else
+# define CL_GetRefCount(L) CollCount (&(L)->JumpFrom)
+#endif
+
+#if defined(HAVE_INLINE)
+INLINE struct CodeEntry* CL_GetRef (CodeLabel* L, unsigned Index)
+/* Get a code entry referencing this label */
+{
+ return CollAt (&L->JumpFrom, Index);
+}
+#else
+# define CL_GetRef(L, Index) CollAt (&(L)->JumpFrom, (Index))
+#endif
+
+void CL_AddRef (CodeLabel* L, struct CodeEntry* E);
/* Let the CodeEntry E reference the label L */
-void MoveLabelRefs (CodeLabel* OldLabel, CodeLabel* NewLabel);
+void CL_MoveRefs (CodeLabel* OldLabel, CodeLabel* NewLabel);
/* Move all references to OldLabel to point to NewLabel. OldLabel will have no
* more references on return.
*/
-void OutputCodeLabel (const CodeLabel* L, FILE* F);
+void CL_Output (const CodeLabel* L, FILE* F);
/* Output the code label to a file */