ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

int slang_function_scope_find_by_name ( slang_function_scope funcs,
slang_atom  a_name,
int  all_scopes 
)

Search a list of functions for a particular function by name.

Parameters:
funcsthe list of functions to search
a_namethe name to search for
all_scopesif non-zero, search containing scopes too.
Returns:
pointer to found function, or NULL.

Definition at line 123 of file slang_compile_function.c.

Referenced by parse_expression(), and slang_function_scope_find_by_name().

{
   unsigned int i;

   for (i = 0; i < funcs->num_functions; i++)
      if (a_name == funcs->functions[i].header.a_name)
         return 1;
   if (all_scopes && funcs->outer_scope != NULL)
      return slang_function_scope_find_by_name(funcs->outer_scope, a_name, 1);
   return 0;
}

Generated on Sat May 26 2012 04:58:08 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.