mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 08:38:38 +08:00
Fix error in strrch()
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3501 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
10538a3f2e
commit
f166caf9f0
4 changed files with 60 additions and 2 deletions
|
@ -1687,5 +1687,10 @@
|
|||
|
||||
* arch/arm/src/lpc17xx: Correct some typos/bugs in configuration of LPC17xx
|
||||
UART2 and UART3.
|
||||
* nuttx/clock.h: Replace all references to the global variable g_system_timer
|
||||
with clock_systemtimer() (currently just a macro that that returns g_system_timer).
|
||||
* lin/string/strrch.c: Would fail if the searched-for character were the first
|
||||
character in the string.
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<tr align="center" bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<h1><big><font color="#3c34ec"><i>NuttX RTOS</i></font></big></h1>
|
||||
<p>Last Updated: April 10, 2011</p>
|
||||
<p>Last Updated: April 13, 2011</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
@ -2204,6 +2204,26 @@ nuttx-6.2 2011-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr>
|
|||
* Makefile: Fix an error introduced in the top-level Makefile in NuttX-6.1.
|
||||
This error only shows up if you have a /tftpboot directory. Then the
|
||||
make will fail with an obscure error about not being able to stat pass2.
|
||||
* configs/lpcxpresso-lpc1768/nsh: Add an NSH configuration for the
|
||||
LPCXpresso board.
|
||||
* configs/*/ld.script: Removed 'sh_link not set for section .ARM.edix' for
|
||||
a few of the builds. In you have this warning, it can be removed with the
|
||||
following change to the ld.script file:
|
||||
|
||||
+ __exidx_start = ABSOLUTE(.);
|
||||
.ARM.exidx : {
|
||||
- __exidx_start = ABSOLUTE(.);
|
||||
*(.ARM.exidx*)
|
||||
- __exidx_end = ABSOLUTE(.);
|
||||
} >sram
|
||||
+ __exidx_end = ABSOLUTE(.);
|
||||
|
||||
* arch/arm/src/lpc17xx: Correct some typos/bugs in configuration of LPC17xx
|
||||
UART2 and UART3.
|
||||
* nuttx/clock.h: Replace all references to the global variable g_system_timer
|
||||
with clock_systemtimer() (currently just a macro that that returns g_system_timer).
|
||||
* lin/string/strrch.c: Would fail if the searched-for character were the first
|
||||
character in the string.
|
||||
|
||||
apps-6.1 2011-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
|
||||
|
|
33
README.txt
33
README.txt
|
@ -51,6 +51,39 @@ Download and Unpack:
|
|||
match the various instructions in the documentation and some scripts
|
||||
in the source tree.
|
||||
|
||||
Semi-Optional apps/ package.
|
||||
|
||||
All NuttX libraries and example code used to be in included within
|
||||
the NuttX source tree. As of NuttX-6.0, this application code was
|
||||
moved into a separate tarball, the apps tarball. If you are just
|
||||
beginning with NuttX, then you will want to download the versioned
|
||||
apps tarball along with the NuttX tarball. If you already have your
|
||||
own product application directory, then you may not need the apps
|
||||
tarball.
|
||||
|
||||
It is call "Semi-optional" because if you don't have some apps/
|
||||
directory, NuttX will *fail* to build!
|
||||
|
||||
Download the unpack the apps tarball in the same directly where you
|
||||
unpacked the NuttX tarball. After you unpack the apps tarball, you
|
||||
will have a new directory called apps-versioin (where the version
|
||||
should exactly match the version of the NuttX tarball). Again, you
|
||||
might want to rename the directory to simply apps/ to match what
|
||||
you read in the documentation
|
||||
|
||||
After unpacking the apps tarball, you will have two directories side
|
||||
by side like this:
|
||||
|
||||
|
|
||||
+----+----+
|
||||
| |
|
||||
nuttx/ apps/
|
||||
|
||||
This is important because the NuttX build will expect to find the
|
||||
apps directory in that (default) location. )That default location
|
||||
can be changed by editting your NuttX configuration file, but that
|
||||
is another story).
|
||||
|
||||
Installation Directories with Spaces in the Path
|
||||
|
||||
The nuttx build directory should reside in a path that contains no
|
||||
|
|
|
@ -54,7 +54,7 @@ char *strrchr(const char *s, int c)
|
|||
if (s)
|
||||
{
|
||||
const char *p = &s[strlen(s) - 1];
|
||||
for (; p > s; p--)
|
||||
for (; p >= s; p--)
|
||||
{
|
||||
if (*p == c)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue