-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmethod.c
35 lines (30 loc) · 1020 Bytes
/
method.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
* Copyright (C) 2004 Steve Harris
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* $Id$
*/
#include <stdio.h>
#include "lop_types_internal.h"
#include "lop/lop_lowlevel.h"
void lop_method_pp(lop_method m)
{
lop_method_pp_prefix(m, "");
}
void lop_method_pp_prefix(lop_method m, const char *p)
{
printf("%spath: %s\n", p, m->path);
printf("%stypespec: %s\n", p, m->typespec);
printf("%shandler: %p\n", p, m->handler);
printf("%suser-data: %p\n", p, m->user_data);
}
/* vi:set ts=8 sts=4 sw=4: */