/* Returns: the value of @symbol in the current scope, or NULL if @symbol is not bound in the current scope  */
gpointer g_scanner_lookup_symbol(GScanner *scanner, const gchar *symbol)
/* Returns: the value of @symbol in the current scope, or NULL if @symbol is not bound in the current scope  */
gpointer g_scanner_lookup_symbol(GScanner *scanner, const gchar *symbol)
{
  GScannerKey	*key;
  guint scope_id;
  g_return_val_if_fail (scanner != NULL, NULL);
  if (!symbol)
    return NULL;
  scope_id = scanner->scope_id;
  key = g_scanner_lookup_internal (scanner, scope_id, symbol);
  if (!key && scope_id && scanner->config->scope_0_fallback)
    key = g_scanner_lookup_internal (scanner, 0, symbol);
  if (key)
    return key->value;
  else
    return NULL;
}