aboutsummaryrefslogtreecommitdiff
path: root/py/parsenumbase.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-05-03 23:27:38 +0100
committerDamien George <damien.p.george@gmail.com>2014-05-03 23:27:38 +0100
commit04b9147e150d2d6fa3750f312fe328b6a71c1b28 (patch)
tree60c257ffd4eb7dc6f424b53e553549a807d00442 /py/parsenumbase.h
parentff380c25582f3e2645e9d6204d1f966619d4bdd1 (diff)
Add license header to (almost) all files.
Blanket wide to all .c and .h files. Some files originating from ST are difficult to deal with (license wise) so it was left out of those. Also merged modpyb.h, modos.h, modstm.h and modtime.h in stmhal/.
Diffstat (limited to 'py/parsenumbase.h')
-rw-r--r--py/parsenumbase.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/py/parsenumbase.h b/py/parsenumbase.h
index 483596e32..757432153 100644
--- a/py/parsenumbase.h
+++ b/py/parsenumbase.h
@@ -1 +1,27 @@
+/*
+ * This file is part of the Micro Python project, http://micropython.org/
+ *
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2013, 2014 Damien P. George
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
int mp_parse_num_base(const char *str, uint len, int *base);