~ubuntu-branches/ubuntu/vivid/remake/vivid

« back to all changes in this revision

Viewing changes to expand.h

  • Committer: Package Import Robot
  • Author(s): Yaroslav Halchenko
  • Date: 2012-10-04 10:45:49 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20121004104549-vvltb5m3vutmvjy0
Tags: 3.82+dbg0.9+dfsg-1
* Fresh upstream release
  - dropped emacs mode (moved into a separate project
    https://github.com/rocky/emacs-dbgr)
* Switched to use +dfsg to assure proper version
  comparison going e.g. from 0.9+dfsg to 0.9.1+dfsg
* Moved .gbp.conf under debian/gbp.conf
* Added '-b debian' for Vcs-Git field since we ship Debian
  packaging within upstream repository
* Boosted policy to 3.9.4
* Switched to source package 3.0 (quilt) format
* Switched to minimalistic dh 9.0 debian/rules
  - use dh-autoreconf (added also needed for it 'autopoint' build-dependency)
    (Closes: #536004)

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 *  \brief Header for variable expansion functions for GNU Make.
23
23
 */
24
24
 
25
 
#ifndef EXPAND_H
26
 
#define EXPAND_H
 
25
#ifndef REMAKE_EXPAND_H
 
26
#define REMAKE_EXPAND_H
27
27
 
28
28
#include "variable.h"
29
29
#include "filedef.h"
31
31
/*! Like variable_expand_for_file, but the returned string is malloc'd.
32
32
   This function is called a lot.  It wants to be efficient.  */
33
33
 
34
 
extern char *allocated_variable_expand_for_file(char *psz_line, 
 
34
extern char *allocated_variable_expand_for_file(const char *psz_line, 
35
35
                                                file_t *p_file);
36
36
 
37
37
 
65
65
 
66
66
extern void restore_variable_buffer(char *p_buf, unsigned int len);
67
67
 
68
 
extern char *variable_buffer_output(char *ptr, char *psz_string, 
69
 
                                    unsigned int length);
70
 
 
71
68
/** Expand PSZ_LINE. Expansion uses P_FILE_SET if it is not NULL. */
72
69
extern char *variable_expand_set (char *psz_line, 
73
70
                                  variable_set_list_t *p_file_set);
74
71
 
75
 
/*! Scan STRING for variable references and expansion-function calls.  Only
76
 
   LENGTH bytes of STRING are actually scanned.  If LENGTH is -1, scan until
77
 
   a null byte is found.
78
 
 
79
 
   Write the results to PSZ_LINE, which must point into `variable_buffer'.  If
80
 
   LINE is NULL, start at the beginning of the buffer.
81
 
   Return a pointer to PSZ_LINE, or to the beginning of the buffer if 
82
 
   PSZ_LINE is NULL.  */
83
 
 
84
 
char *variable_expand_string(char *line, char *string, 
85
 
                             long int length);
86
 
 
87
 
#endif /*EXPAND_H*/
 
72
#endif /*REMAKE_EXPAND_H*/