File: skeleton-dummies.c%2Cv

package info (click to toggle)
flexml 1-5
  • links: PTS
  • area: main
  • in suites: potato, woody
  • size: 884 kB
  • ctags: 203
  • sloc: perl: 2,016; makefile: 160; ansic: 56; xml: 28
file content (143 lines) | stat: -rw-r--r-- 3,161 bytes parent folder | download
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
head	1.3;
access;
symbols;
locks; strict;
comment	@ * @;


1.3
date	99.11.22.18.41.48;	author krisrose;	state Exp;
branches;
next	1.2;

1.2
date	99.11.08.03.21.30;	author krisrose;	state Exp;
branches;
next	1.1;

1.1
date	99.10.26.16.20.00;	author krisrose;	state Exp;
branches;
next	;


desc
@@


1.3
log
@Working like mad...
@
text
@/* FleXML: flex(1) based XML scanner generator
 * Copyright  1999 Kristoffer Rose.  All rights reserved.
 *
 * Description: Dummy handlers for FleXML scanner
 * Author:	Kristoffer Rose
 * Created:	August 1999
 * License:	Public domain
 *
FLEXML_TOPMATTER
 */

static char* rcs_flexml_skeleton_dummies =
"$Header: /plume/yquem/home/krisrose/cons/FleXML/RCS/skeleton-dummies.c,v 1.2 1999/11/08 03:21:30 krisrose Exp krisrose $";

FLEXML_VERSION

/* ANSI headers. */
#include <stdio.h>

FLEXML_API

/* Dummy handlers complain about their non-implementation. */

#define FLEXML_DUMMY_STag(tag) \
    (fprintf(stderr, "Warning: <%s> handler not implemented.\n", (tag)))

#define FLEXML_DUMMY_ETag(tag) \
    (fprintf(stderr, "Warning: <%s>%s</%s> handler not implemented.\n", \
	     (tag), (pcdata ? pcdata : "NULL"), (tag)))

#define FLEXML_DUMMY_Attribute(tag,attribute,value) \
    (fprintf(stderr,"Warning: <%s %s=%s> handler not implemented.\n", \
	     (tag), (Attribute_##attribute), (value)))


FLEXML_DUMMIES
@


1.2
log
@zzzZZZZ
@
text
@d2 1
a2 1
 * Copyright  1999  Kristoffer Hgsbro Rose
d7 1
a7 15
 * License:	GNU LGPL "copyleft"
 *
 *   This library is free software; you can redistribute it and/or
 *   modify it under the terms of the GNU Library General Public
 *   License as published by the Free Software Foundation; either
 *   version 2 of the License, or (at your option) any later version.
 *
 *   This library 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
 *   Library General Public License for more details.
 *
 *   You should have received a copy of the GNU Library General Public
 *   License along with this library; if not, write to the Free
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
d13 1
a13 1
"$Header: /plume/yquem/home/krisrose/cons/FleXML/RCS/skeleton-dummies.c,v 1.1 1999/10/26 16:20:00 krisrose Exp krisrose $";
@


1.1
log
@Initial revision
@
text
@d27 1
a27 1
"$Header: /var/cvsroot/ntsys/FleXML/skeleton-dummies.c,v 1.6 1999/09/14 20:31:19 krisrose Exp $";
d34 1
d38 11
a48 29
void flexml_dummy_STag(char* tag)
{
    printf("Warning: <%s> handler not implemented.\n", tag);
}

void flexml_dummy_ETag(char* tag, char* pcdata)
{
    printf("Warning: <%s>%s</%s> handler not implemented.\n",
	   tag, pcdata, tag);
}

void flexml_dummy_Attribute(char* tag, char* attribute, char* value)
{
    printf("Warning: <%s %s=%s> handler not implemented.\n",
	   tag, attribute, value);
}


/* Handlers (with original DTD source in comments). */

void XML_init(void)
{
    printf("Warning: XML_init handler not implemented.\n");
}

void XML_eof(void)
{
    printf("Warning: XML_eof handler not implemented.\n");
}
@