aboutsummaryrefslogtreecommitdiffhomepage
path: root/parser.h
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-01-24 06:40:14 +1000
committerGravatar axel <axel@liljencrantz.se>2006-01-24 06:40:14 +1000
commit29c488c6dc4344015a6711efdd9a618813a82249 (patch)
treeb7b8f3eee14261ddf2cd7546aa2f7102f8eb4ff0 /parser.h
parent14ae10daf7de7a14335047d2cd52bcfed9352e36 (diff)
Fixes to api documentation, added .PHONY to makefile actions, made a few private functions static
darcs-hash:20060123204014-ac50b-b9d2a10c7f00945b5d9d244cb3b8c1489fe280de.gz
Diffstat (limited to 'parser.h')
-rw-r--r--parser.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/parser.h b/parser.h
index 0c572551..2ae523b1 100644
--- a/parser.h
+++ b/parser.h
@@ -11,6 +11,9 @@
#include "util.h"
#include "parser.h"
+/**
+ event_block_t represents a block on events of the specified type
+*/
typedef struct event_block
{
/**
@@ -193,10 +196,10 @@ wchar_t *get_filename( const wchar_t *cmd );
Evaluate the expressions contained in cmd.
\param cmd the string to evaluate
- \param out buffer to insert output to. May be null.
- \param the type of block to push onto the scope stack
+ \param io io redirections to perform on all started jobs
\param block_type The type of block to push on the block stack
- \return 0 on success.
+
+ \return 0 on success, 1 otherwise
*/
int eval( const wchar_t *cmd, io_data_t *io, int block_type );
@@ -235,10 +238,10 @@ int parser_is_subcommand( const wchar_t *cmd );
command scope, like 'for', 'end' or 'command' or 'exec'. These
functions may not be overloaded, so their names are reserved.
- \param cmd The command name to test
+ \param word The command name to test
\return 1 of the command parameter is a command, 0 otherwise
*/
-int parser_is_reserved( wchar_t *word);
+int parser_is_reserved( wchar_t *word );
/**
Returns a string describing the current parser pisition in the format 'FILENAME (line LINE_NUMBER): LINE'.