socsvn commit: r288679 - soc2015/clord/head/sys/contrib/ficl
clord at FreeBSD.org
clord at FreeBSD.org
Wed Jul 22 20:25:42 UTC 2015
Author: clord
Date: Wed Jul 22 20:25:40 2015
New Revision: 288679
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=288679
Log:
Add function prototypes to silence compiler warnings
Added:
soc2015/clord/head/sys/contrib/ficl/extern.h
Modified:
soc2015/clord/head/sys/contrib/ficl/loader.c
soc2015/clord/head/sys/contrib/ficl/system.c
soc2015/clord/head/sys/contrib/ficl/tools.c
Added: soc2015/clord/head/sys/contrib/ficl/extern.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ soc2015/clord/head/sys/contrib/ficl/extern.h Wed Jul 22 20:25:40 2015 (r288679)
@@ -0,0 +1,36 @@
+/*-
+ * Copyright (c) 2015 Colin Lord
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ *
+ * $FreeBSD$
+ */
+
+#ifdef __i386__
+int biospci_count_device_type(uint32_t devid);
+int biospci_find_devclass(uint32_t class, int index, uint32_t *locator);
+int biospci_find_device(uint32_t devid, int index, uint32_t *locator);
+int biospci_write_config(uint32_t locator, int offset, int width, uint32_t val);
+int biospci_read_config(uint32_t locator, int offset, int width, uint32_t *val);
+uint32_t biospci_locator(int8_t bus, uint8_t device, uint8_t function);
+#endif
Modified: soc2015/clord/head/sys/contrib/ficl/loader.c
==============================================================================
--- soc2015/clord/head/sys/contrib/ficl/loader.c Wed Jul 22 20:24:06 2015 (r288678)
+++ soc2015/clord/head/sys/contrib/ficl/loader.c Wed Jul 22 20:25:40 2015 (r288679)
@@ -46,6 +46,7 @@
#include "bootstrap.h"
#include <string.h>
#include "ficl.h"
+#include "extern.h"
/* FreeBSD's loader interaction words and extras
*
Modified: soc2015/clord/head/sys/contrib/ficl/system.c
==============================================================================
--- soc2015/clord/head/sys/contrib/ficl/system.c Wed Jul 22 20:24:06 2015 (r288678)
+++ soc2015/clord/head/sys/contrib/ficl/system.c Wed Jul 22 20:25:40 2015 (r288679)
@@ -81,6 +81,8 @@
ficlSystem *ficlSystemGlobal = NULL;
+int sscanf(const char * restrict str, const char * restrict format, ...);
+
/**************************************************************************
f i c l S e t V e r s i o n E n v
** Create a double ficlCell environment constant for the version ID
Modified: soc2015/clord/head/sys/contrib/ficl/tools.c
==============================================================================
--- soc2015/clord/head/sys/contrib/ficl/tools.c Wed Jul 22 20:24:06 2015 (r288678)
+++ soc2015/clord/head/sys/contrib/ficl/tools.c Wed Jul 22 20:25:40 2015 (r288679)
@@ -67,6 +67,7 @@
#include "ficl.h"
+void exit(int status);
static void ficlPrimitiveStepIn(ficlVm *vm);
static void ficlPrimitiveStepOver(ficlVm *vm);
static void ficlPrimitiveStepBreak(ficlVm *vm);
More information about the svn-soc-all
mailing list