summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-02-01 22:47:24 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-02-01 22:47:24 +0000
commited0fc131f2b54293c866dbed03e2f9280b09781e (patch)
treeaf7e125629f57bba66671ef81182332397950abf
parent7a67f1634cf5ee06b87d90c16f68543f12e6349c (diff)
downloadnuttx-ed0fc131f2b54293c866dbed03e2f9280b09781e.tar.gz
nuttx-ed0fc131f2b54293c866dbed03e2f9280b09781e.tar.bz2
nuttx-ed0fc131f2b54293c866dbed03e2f9280b09781e.zip
Integration pascal test case on the sim platform
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@614 42af7a65-404d-4744-a932-0658087f49c3
-rw-r--r--nuttx/ChangeLog1
-rw-r--r--nuttx/Documentation/NuttX.html1
-rw-r--r--nuttx/examples/pashello/device.c7
-rw-r--r--nuttx/examples/pashello/pashello.c2
4 files changed, 7 insertions, 4 deletions
diff --git a/nuttx/ChangeLog b/nuttx/ChangeLog
index a98bfa9b9..b2eb29263 100644
--- a/nuttx/ChangeLog
+++ b/nuttx/ChangeLog
@@ -316,6 +316,7 @@
* Added /dev/zero
* 'errno' is now defined to be *get_errno_ptr() with no name conflicts
* Added lseek() and fseek()
+ * Integrated pascal test case on the simulation platform. Needs pascal-0.1.1.
diff --git a/nuttx/Documentation/NuttX.html b/nuttx/Documentation/NuttX.html
index e1db573b7..c32d726a1 100644
--- a/nuttx/Documentation/NuttX.html
+++ b/nuttx/Documentation/NuttX.html
@@ -966,6 +966,7 @@ Other memory:
* Added /dev/zero
* 'errno' is now defined to be *get_errno_ptr() with no name conflicts
* Added lseek() and fseek()
+ * Integrated pascal test case on the simulation platform. Needs pascal-0.1.1.
</pre></ul>
<table width ="100%">
diff --git a/nuttx/examples/pashello/device.c b/nuttx/examples/pashello/device.c
index b157965c7..b6db1db5c 100644
--- a/nuttx/examples/pashello/device.c
+++ b/nuttx/examples/pashello/device.c
@@ -56,7 +56,6 @@
****************************************************************************/
static ssize_t hello_read(struct file *, char *, size_t);
-static ssize_t hello_write(struct file *, const char *, size_t);
/****************************************************************************
* Private Data
@@ -76,10 +75,10 @@ static struct file_operations hello_fops =
* Private Functions
****************************************************************************/
-static ssize_t hello_read(struct file *filp, char *buffer, size_t len)
+static ssize_t hello_read(struct file *filep, char *buffer, size_t len)
{
- off_t offset = filp->f_pos; /* Start read position */
- ssize_t nread = 0; /* Bytes read -- assume EOF */
+ off_t offset = filep->f_pos; /* Start read position */
+ ssize_t nread = 0; /* Bytes read -- assume EOF */
/* Make sure that the offset is within the .pex file */
diff --git a/nuttx/examples/pashello/pashello.c b/nuttx/examples/pashello/pashello.c
index 4cd7f4921..a40990acd 100644
--- a/nuttx/examples/pashello/pashello.c
+++ b/nuttx/examples/pashello/pashello.c
@@ -127,6 +127,7 @@ int user_start(int argc, FAR char *argv[])
exit(1);
}
printf("user_start: /dev/hello Loaded\n");
+ printf("user_start: Interpreter started:\n");
/* And start program execution */
@@ -134,6 +135,7 @@ int user_start(int argc, FAR char *argv[])
/* Clean up resources used by the interpreter */
+ printf("user_start: Interpreter terminated");
pexec_release(st);
return 0;
}