extern char* qs_alloc_zero_byte_string(
request_rec* r);
-extern char* qs_trim_string(request_rec* r, char* s);
+extern char* qs_trim_string(
+ request_rec* r, char* s);
extern int chxj_chxjif_is_mine(device_table* spec, Doc* doc, Node* tag);
extern char* qs_get_destlang_attr(Doc* doc, Node* tag, request_rec* r);
extern void qs_init_malloc(
Doc* doc);
+
extern void qs_all_free(Doc* doc, const char* fname, int line);
#endif
Doc* doc) ;
extern Node* qs_parse_string(
- Doc* doc,
+ Doc* doc,
const char* ss,
- int len);
+ int len);
+
char* qs_get_node_value(Doc* doc,Node* node);
char* qs_get_node_name(Doc* doc, Node* node) ;
int qs_get_node_size(Doc* doc, Node* node) ;
s_hdml_count_radio_tag(hdml_t* hdml, Node* node)
{
Node* child;
- Doc* doc = hdml->doc;
- request_rec* r = doc->r;
+ Doc* doc;
+ request_rec* r;
+
+ doc = hdml->doc;
+ r = doc->r;
/*--------------------------------------------------------------------------*/
/* All the child nodes of the specified node are scanned. */
for (attr = qs_get_attr(doc,child);
attr;
attr = qs_get_next_attr(doc,attr)) {
- char* nm = qs_get_attr_name(doc,attr);
- char* val = qs_get_attr_value(doc,attr);
+
+ char* nm;
+ char* val;
+
+ nm = qs_get_attr_name(doc,attr);
+ val = qs_get_attr_value(doc,attr);
if ((*nm == 'a' || *nm == 'A') && strcasecmp(nm, "align") == 0) {
/*----------------------------------------------------------------------*/
qrcode->level = QR_LEVEL_M;
}
else
- if (strcasecmp("Q", value) == 0)
- {
+ if (strcasecmp("Q", value) == 0) {
qrcode->level = QR_LEVEL_Q;
}
else