You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2015/11/24 21:39:48 UTC

[02/11] incubator-mynewt-larva git commit: Remove stub libc. printf/fprintf can be found from baselibc.

Remove stub libc. printf/fprintf can be found from baselibc.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/commit/1e2ff6f6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/tree/1e2ff6f6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/diff/1e2ff6f6

Branch: refs/heads/master
Commit: 1e2ff6f646819c0a9a341ea3d6ac573645d50524
Parents: 0bc40a0
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Tue Nov 24 10:27:53 2015 -0800
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Tue Nov 24 10:27:53 2015 -0800

----------------------------------------------------------------------
 libs/libc/egg.yml       |  4 ----
 libs/libc/src/fprintf.c | 34 ----------------------------------
 libs/libc/src/printf.c  | 30 ------------------------------
 3 files changed, 68 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/1e2ff6f6/libs/libc/egg.yml
----------------------------------------------------------------------
diff --git a/libs/libc/egg.yml b/libs/libc/egg.yml
deleted file mode 100644
index 4aaf94d..0000000
--- a/libs/libc/egg.yml
+++ /dev/null
@@ -1,4 +0,0 @@
-egg.name: libs/libc
-egg.vers: 0.1
-egg.req_caps:
-    - console

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/1e2ff6f6/libs/libc/src/fprintf.c
----------------------------------------------------------------------
diff --git a/libs/libc/src/fprintf.c b/libs/libc/src/fprintf.c
deleted file mode 100644
index 823e012..0000000
--- a/libs/libc/src/fprintf.c
+++ /dev/null
@@ -1,34 +0,0 @@
-/**
- * Copyright (c) 2015 Runtime Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-#include <stdio.h>
-
-#include <console/console.h>
-
-int
-fprintf(FILE *stream, const char *fmt, ...)
-{
-    va_list args;
-    int len;
-
-    if (stream == stdout || stream == stderr) {
-        va_start(args, fmt);
-        len = console_vprintf(fmt, args);
-        va_end(args);
-        return len;
-    } else {
-        return -1;
-    }
-}

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/1e2ff6f6/libs/libc/src/printf.c
----------------------------------------------------------------------
diff --git a/libs/libc/src/printf.c b/libs/libc/src/printf.c
deleted file mode 100644
index 361e225..0000000
--- a/libs/libc/src/printf.c
+++ /dev/null
@@ -1,30 +0,0 @@
-/**
- * Copyright (c) 2015 Runtime Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-#include <stdio.h>
-
-#include <console/console.h>
-
-int
-printf(const char *fmt, ...)
-{
-    va_list args;
-    int len;
-
-    va_start(args, fmt);
-    len = console_vprintf(fmt, args);
-    va_end(args);
-    return len;
-}