[BACK]Return to varmodifiers.h CVS log [TXT][DIR] Up to [local] / src / usr.bin / make

Diff for /src/usr.bin/make/varmodifiers.h between version 1.2 and 1.3

version 1.2, 2001/05/03 13:41:15 version 1.3, 2001/05/23 12:34:52
Line 1 
Line 1 
   #ifndef VARMODIFIERS_H
   #define VARMODIFIERS_H
   
 /* $OpenPackages$ */  /* $OpenPackages$ */
 /* $OpenBSD$ */  /* $OpenBSD$ */
   
Line 27 
Line 30 
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE   * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.   * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */   */
 #ifndef VARMODIFIERS_H  
 #define VARMODIFIERS_H  /* VarModifiers_Init();
    *      Set up varmodifiers internal table according to selected features.
    *      This can be called several times without harm. */
   extern void VarModifiers_Init(void);
   
   
   /* result = VarModifiers_Apply(val, name, ctxt, undef_is_bad,
    *   &should_free, modstart, endc, &length);
    *      Applies variable modifiers starting at modstart (including :),
    *      ending with character endc, to value val.
    *      Variables in spec are taken from context ctxt.
    *      If undef_is_bad, error occurs if undefined variables are mentioned.
    *      length is filled with the total length of the modifier spec.
    *      name holds the name of the corresponding variable, as some ODE
    *      modifiers need it.
    *
    *      If both val and name are NULL, VarModifiers_Apply just parses the
    *      modifiers specification, as it can't apply it to anything. */
 extern char *VarModifiers_Apply(char *, const struct Name *, SymTable *,  extern char *VarModifiers_Apply(char *, const struct Name *, SymTable *,
         Boolean, Boolean *, const char *, int, size_t *);          bool, bool *, const char *, int, size_t *);
   
   /* Direct interface to specific modifiers used under special circumstances. */
   /* tails = Var_GetTail(string);
    *      Returns the tail of list of words in string (needed for SysV locals). */
 extern char *Var_GetTail(char *);  extern char *Var_GetTail(char *);
   /* heads = Var_GetHead(string);
    *      Returns the head of list of words in string. */
   /* XXX this does not replace foo with ., as (sun) System V make does.
    * Should it ? */
 extern char *Var_GetHead(char *);  extern char *Var_GetHead(char *);
 extern void VarModifiers_Init(void);  
 #endif  #endif

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3