Lugaru's Epsilon
Programmer's
Editor

Context:
Epsilon User's Manual and Reference
   Primitives and EEL Subroutines
      . . .
      Input Primitives
         Keys
         The Mouse
         Window Events
         . . .
         Binding Primitives
      Defining Language Modes
         Language-specific Subroutines

Previous   Up    Next
Defining Language Modes  Primitives and EEL Subroutines   Error Messages


Epsilon User's Manual and Reference > Primitives and EEL Subroutines > Defining Language Modes >

Language-specific Subroutines

int find_c_func_info(char *type, char *class,
                     char *func, int stop_on_key)

The find_c_func_info( ) subroutine gets info on the function or class defined at point in the current C-mode buffer, by parsing the buffer. It sets class to the class name of the current item, if any, and func to the function name if any. It sets type to "class", "struct", or "union" if it can determine which is appropriate. Outside a function or class definition, the above will be set to "". You may pass NULL for any of the above parameters if you don't need that information.

If stop_on_key is nonzero, and the user presses a key while the function is running, the function will immediately return -1 without setting the above variables. Otherwise the function returns a bit pattern: CF_INFO_TYPE if type was set non-empty; CF_INFO_CLASS if class was set non-empty; and CF_INFO_FUNC if func was set non-empty. In addition to zero, only these combination can occur:

 CF_INFO_TYPE  CF_INFO_CLASS  CF_INFO_FUNC
     
 *  *  
     *
   *  *
 *  *  *



Previous   Up    Next
Defining Language Modes  Primitives and EEL Subroutines   Error Messages


Lugaru Copyright (C) 1984, 2012 Lugaru Software Ltd. All Rights Reserved.