User guide
E-57
PLI Access Routines
acc_mod_lcb_del
Syntax
void acc_mod_lcb_del(handle handleModule,
void (*consumer)(), char *user_data)
Synopsis
Unregisters a line callback routine previously registered with the
acc_mod_lcb_add() routine.
Returns
No return value.
Example D-22 Example of acc_mod_lcb_del
#include <stdio.h>
#include "acc_user.h"
#include "vcs_acc_user.h"
/* VCS 4.x callback rtn */
void line_call_back(filename, lineno, userdata, tag)
char *filename;
int lineno;
char *userdata;
int tag;
{
handle handle_mod = (handle)userdata;
io_printf("Tag %2d, file %s, line %2d, module %s\n",
tag, filename, lineno,
acc_fetch_fullname(handle_mod));
}
/* unregister all line callbacks (recursive) */
void unregister_lcb (parent_mod)
handle parent_mod;
{
handle child = NULL;
if (! acc_object_of_type(parent_mod, accModule)) return;
io_printf("Unregistering %s\n",