Mercurial > ~dholland > hg > tradcpp > index.cgi
comparison macro.c @ 161:4a4b3d5c41fa
Use more const.
author | Joerg Sonnenberger <joerg@bec.de> |
---|---|
date | Fri, 27 Feb 2015 02:48:26 +0100 |
parents | 8cef6d7227a8 |
children | 82cc6fa54b01 |
comparison
equal
deleted
inserted
replaced
160:d6e6b3940780 | 161:4a4b3d5c41fa |
---|---|
757 } | 757 } |
758 } | 758 } |
759 | 759 |
760 static | 760 static |
761 void | 761 void |
762 expand_newarg(struct expstate *es, char *buf, size_t len) | 762 expand_newarg(struct expstate *es, const char *buf, size_t len) |
763 { | 763 { |
764 char *text; | 764 char *text; |
765 | 765 |
766 text = dostrndup(buf, len); | 766 text = dostrndup(buf, len); |
767 stringarray_add(&es->args, text, NULL); | 767 stringarray_add(&es->args, text, NULL); |
768 } | 768 } |
769 | 769 |
770 static | 770 static |
771 void | 771 void |
772 expand_appendarg(struct expstate *es, char *buf, size_t len) | 772 expand_appendarg(struct expstate *es, const char *buf, size_t len) |
773 { | 773 { |
774 unsigned num; | 774 unsigned num; |
775 char *text; | 775 char *text; |
776 size_t oldlen; | 776 size_t oldlen; |
777 | 777 |
920 } | 920 } |
921 } | 921 } |
922 | 922 |
923 static | 923 static |
924 void | 924 void |
925 expand_got_ws(struct expstate *es, struct place *p, char *buf, size_t len) | 925 expand_got_ws(struct expstate *es, struct place *p, const char *buf, size_t len) |
926 { | 926 { |
927 switch (es->state) { | 927 switch (es->state) { |
928 case ES_NORMAL: | 928 case ES_NORMAL: |
929 expand_send(es, p, buf, len); | 929 expand_send(es, p, buf, len); |
930 break; | 930 break; |