[Redbutton-devel] SF.net SVN: redbutton: [351] redbutton-author/trunk/ccc.y
Brought to you by:
skilvington
|
From: <ski...@us...> - 2007-08-24 16:07:42
|
Revision: 351
http://redbutton.svn.sourceforge.net/redbutton/?rev=351&view=rev
Author: skilvington
Date: 2007-08-24 09:07:40 -0700 (Fri, 24 Aug 2007)
Log Message:
-----------
check we have the right number of cmd line params
Modified Paths:
--------------
redbutton-author/trunk/ccc.y
Modified: redbutton-author/trunk/ccc.y
===================================================================
--- redbutton-author/trunk/ccc.y 2007-08-24 14:10:56 UTC (rev 350)
+++ redbutton-author/trunk/ccc.y 2007-08-24 16:07:40 UTC (rev 351)
@@ -189,7 +189,9 @@
}
}
- if(optind == argc)
+ if(optind != argc)
+ usage(prog_name);
+
state.items = NULL;
buf_init(&state.lexer);
state.tokens = NULL;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|