This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Caret diagnostics


On Wed, Apr 11, 2012 at 11:15 AM, Manuel LÃpez-IbÃÃez
<lopezibanez@gmail.com> wrote:
> So how can I say in tcl "if not defined VAR then set VAR ""?

if ![info exists VAR] {
  set VAR XXX
}

Thanks,
Andrew Pinski


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]