/*****************************************************************************
* zsh.cpp: create zsh completion rule for vlc
*****************************************************************************
- * Copyright (C) 1998-2005 VideoLAN
+ * Copyright (C) 2005 the VideoLAN team
* $Id$
*
- * Authors: Sigmund Augdal <sigmunau@idi.ntnu.no>
+ * Authors: Sigmund Augdal Helberg <dnumgis@videolan.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
char *psz_arguments = "";
char *psz_exclusive;
char *psz_option;
+ //Skip deprecated options
+ if( p_item->psz_current )
+ return;
+
switch( p_item->i_type )
{
case CONFIG_ITEM_MODULE:
while( range.first != range.second )
{
list = list.append( " " );
+ printf("%s",range.first->second.c_str());
list = list.append( range.first->second );
++range.first;
}
if( !psz_longtext ||
strchr( psz_longtext, '\n' ) ||
strchr( psz_longtext, '(' ) ) psz_longtext = psz_text;
- while( (foo = strchr( psz_text, '"' ))) *foo='\'';
+ if( psz_text )
+ while( (foo = strchr( psz_text, '"' ))) *foo='\'';
if( i_short )
{
if( !psz_exclusive ) psz_exclusive = "";