aboutsummaryrefslogtreecommitdiff
path: root/py/vstr.c
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-02-12 18:31:30 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-02-12 18:31:30 +0200
commit520e2f58a559c356ea540a5da4e9a585649aecc6 (patch)
tree864ecd62ad09ab6c1af200a52b7227f8cfdeb6b6 /py/vstr.c
parentd5df6cd44a433d6253a61cb0f987835fbc06b2de (diff)
Replace global "static" -> "STATIC", to allow "analysis builds". Part 2.
Diffstat (limited to 'py/vstr.c')
-rw-r--r--py/vstr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/py/vstr.c b/py/vstr.c
index 4d10dfba8..6630ac40a 100644
--- a/py/vstr.c
+++ b/py/vstr.c
@@ -3,6 +3,7 @@
#include <string.h>
#include <assert.h>
#include "misc.h"
+#include "mpconfig.h"
// returned value is always at least 1 greater than argument
#define ROUND_ALLOC(a) (((a) & ((~0) - 7)) + 8)
@@ -124,7 +125,7 @@ bool vstr_shrink(vstr_t *vstr) {
return vstr_set_size(vstr, vstr->len);
}
-static bool vstr_ensure_extra(vstr_t *vstr, int size) {
+STATIC bool vstr_ensure_extra(vstr_t *vstr, int size) {
if (vstr->len + size + 1 > vstr->alloc) {
if (vstr->fixed_buf) {
return false;