Displaying 5 results from an estimated 5 matches for "rosh_issp".
2009 Mar 06
4
rosh patch
Hey Guys,
Below is a patch for the com32/rosh/rosh.c from tonights syslinx git.
The patch does the following:
1) changes the rosh_issp to use an if instead of a case for this simple
test.
2) changes the rosh_dir_arg function to move the readdir() to inside the
while test.
This will let me go through my APUE book.
Let me know if you have any questions.
Keith
--- rosh.orig 2009-03-05 20:32:59.000000000 -0500
+++ rosh.c...
2009 Mar 07
3
rosh patch V2
Here is a second version of my patch from last night.
It uses the provided ctype function isspace and does the same readdir().
I remove the rosh_issp() function. I admit to being a bit liberal with my
use of braces and spaces.
We all of the habit of knowing we can invent a more perfect wheel.
Let me know if you have any questions.
Keith
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rosh.c.patch
Type: text...
2009 Feb 15
2
COM32 module: Read-Only shell
...P_YEAR, \
+ APP_AUTHOR);
+}
+
+void rosh_help(int type)
+{
+ rosh_version();
+ switch (type) {
+ case 2: puts(rosh_help_str2);
+ break;
+ case 1: default:
+ puts(rosh_help_str1);
+ }
+}
+
+/* Determine if a character is whitespace
+ * inc input character
+ * returns 0 if not whitespace
+ */
+int rosh_issp(char inc)
+{
+ int rv;
+ switch (inc){
+ case ' ': case '\t':
+ rv = 1; break;
+ default: rv = 0;
+ }
+ return rv;
+} /* ros_issp */
+
+/* Search a string for first non-space (' ') character, starting at ipos
+ * istr input string to parse
+ * ipos input position to start a...
2010 Jun 27
1
[PATCH] ROSH: Upgraded
...eak;
- case 1:
- default:
- puts(rosh_help_str1);
- }
+ puts(rosh_beta_str);
+ ROSH_DEBUG("DO_DEBUG active\n");
+ ROSH_DEBUG2("DO_DEBUG2 active\n");
}
-/* Determine if a character is whitespace
- * inc input character
- * returns 0 if not whitespace
- */
-int rosh_issp(char inc)
-{
- int rv;
- switch (inc) {
- case ' ':
- case '\t':
- rv = 1;
- break;
- default:
- rv = 0;
- }
- return rv;
-} /* ros_issp */
-
/* Search a string for first non-space (' ') character, starting at ipos
* istr input string to parse
*...
2009 Mar 05
0
[PATCH 5/5] COM32/rosh: Improvements
...osh_help(int type)
-{
- rosh_version();
- switch (type) {
- case 2: puts(rosh_help_str2);
- break;
- case 1: default:
- puts(rosh_help_str1);
- }
-}
-
/* Determine if a character is whitespace
* inc input character
* returns 0 if not whitespace
@@ -61,7 +54,7 @@ void rosh_help(int type)
int rosh_issp(char inc)
{
int rv;
- switch (inc){
+ switch (inc) {
case ' ': case '\t':
rv = 1; break;
default: rv = 0;
@@ -129,6 +122,34 @@ int rosh_parse_sp_1(char *dest, const char *src,
const int ipos)
return epos;
}
+/* Display help
+ * type Help type
+ * cmdstr Command string...