+const cc65_lineinfo* cc65_line_byid (cc65_dbginfo Handle, unsigned Id)
+/* Return information about a line with a specific id. The function
+ * returns NULL if the id is invalid (no such line) and otherwise a
+ * cc65_lineinfo structure with one entry that contains the requested
+ * module information.
+ */
+{
+ DbgInfo* Info;
+ cc65_lineinfo* D;
+
+ /* Check the parameter */
+ assert (Handle != 0);
+
+ /* The handle is actually a pointer to a debug info struct */
+ Info = (DbgInfo*) Handle;
+
+ /* Check if the id is valid */
+ if (Id >= CollCount (&Info->LineInfoById)) {
+ return 0;
+ }
+
+ /* Allocate memory for the data structure returned to the caller */
+ D = new_cc65_lineinfo (1);
+
+ /* Fill in the data */
+ CopyLineInfo (D->data, CollConstAt (&Info->LineInfoById, Id));
+
+ /* Return the result */
+ return D;
+}
+
+
+
const cc65_lineinfo* cc65_line_bynumber (cc65_dbginfo Handle, unsigned FileId,
cc65_line Line)
/* Return line information for a source file/line number combination. The
-
+
+const cc65_lineinfo* cc65_line_byid (cc65_dbginfo handle, unsigned id);
+/* Return information about a line with a specific id. The function
+ * returns NULL if the id is invalid (no such line) and otherwise a
+ * cc65_lineinfo structure with one entry that contains the requested
+ * module information.
+ */
+
const cc65_lineinfo* cc65_line_bynumber (cc65_dbginfo handle,
unsigned source_id,
cc65_line line);