Mercurial > urweb
comparison src/c/urweb.c @ 1038:dcc6093e9575
Get message-passing working in IE6
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Sat, 21 Nov 2009 15:48:08 -0500 |
parents | be1aec7333a5 |
children | a8a825861397 |
comparison
equal
deleted
inserted
replaced
1037:83d8ddd09d95 | 1038:dcc6093e9575 |
---|---|
670 | 670 |
671 return r; | 671 return r; |
672 } | 672 } |
673 | 673 |
674 int uw_set_input(uw_context ctx, const char *name, char *value) { | 674 int uw_set_input(uw_context ctx, const char *name, char *value) { |
675 printf("Input name %s\n", name); | |
676 | |
675 if (!strcasecmp(name, ".b")) { | 677 if (!strcasecmp(name, ".b")) { |
676 int n = uw_input_num(value); | 678 int n = uw_input_num(value); |
677 input *inps; | 679 input *inps; |
678 | 680 |
679 if (n < 0) { | 681 if (n < 0) { |
758 ctx->cur_container = inps; | 760 ctx->cur_container = inps; |
759 } else { | 761 } else { |
760 int n = uw_input_num(name); | 762 int n = uw_input_num(name); |
761 | 763 |
762 if (n < 0) { | 764 if (n < 0) { |
765 if (!strcmp(name, "null")) | |
766 return 0; | |
763 uw_set_error(ctx, "Bad input name %s", name); | 767 uw_set_error(ctx, "Bad input name %s", name); |
764 return -1; | 768 return -1; |
765 } | 769 } |
766 | 770 |
767 if (n >= uw_inputs_len) { | 771 if (n >= uw_inputs_len) { |