User guide
E-62
PLI Access Routines
if ((plocation = acc_mod_lcb_fetch2(handleModule)) != NULL) {
int i;
io_printf("%s:\n", acc_fetch_fullname(handleModule));
for (i = 0; plocation[i].filename; i++) {
io_printf(" file %s, line %d, tag %d\n",
plocation[i].filename,
plocation[i].line_no,
plocation[i].tag);
}
acc_free(plocation);
}
}
acc_mod_sfi_fetch
Syntax
vcs_srcfile_info_p acc_mod_sfi_fetch(handle handleModule)
Synopsis
Returns the source file composition for a module. This composition
is a file name with line numbers, or, if a module definition is in more
than one file, it is an array of vcs_srcfile_info_s struct entries
specifying all the file names and line numbers for the module
definition.
Returns
The returned array is terminated by a NULL SourceFileName field.
The calling routine is responsible for freeing the returned array.
typedef struct vcs_srcfile_info_t {
char *SourceFileName;
int SourceFileTag;
int StartLineNum;
int EndLineNum;
} vcs_srcfile_info_s, *vcs_srcfile_info_p;