Subversion Repositories tendra.SVN

Rev

Rev 6 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6 Rev 40
Line 177... Line 177...
177
	int	 key_length; /* length of key */
177
	int	 key_length; /* length of key */
178
	char	*val_start;  /* start of value associated with key */
178
	char	*val_start;  /* start of value associated with key */
179
	char	*val_end;    /* end of value */
179
	char	*val_end;    /* end of value */
180
	char	*esc_start;  /* start of substituion field, always a '<' */
180
	char	*esc_start;  /* start of substituion field, always a '<' */
181
	char	*esc_end;    /* end of susbtitution field, always a '>' */
181
	char	*esc_end;    /* end of susbtitution field, always a '>' */
182
	int	 esc_len;    /* number of chars to escape over */
182
	size_t	 esc_len;    /* number of chars to escape over */
183
	char	*sub;	     /* character substitution for escape sequences */
183
	char	*sub;	     /* character substitution for escape sequences */
184
	int	 count;      /* counter to stop scan at buffer_size */
184
	size_t	 count;      /* counter to stop scan at buffer_size */
185
	int	 line_len;   /* length of this buffer */
185
	size_t	 line_len;   /* length of this buffer */
186
	char	*end = NULL; /* end of line */
186
	char	*end = NULL; /* end of line */
187
	char	*cmd;	     /* final command string being built */
187
	char	*cmd;	     /* final command string being built */
188
	list	 dummy;	     /* final command */
188
	list	 dummy;	     /* final command */
189
	htnode	*hn;	     /* wrapper for command storage */
189
	htnode	*hn;	     /* wrapper for command storage */
190
 
190
 
Line 241... Line 241...
241
		    error(FATAL, "%s: line %d: Exceeded max line size", nm,
241
		    error(FATAL, "%s: line %d: Exceeded max line size", nm,
242
			  line_num);
242
			  line_num);
243
		}
243
		}
244
 
244
 
245
		if (c == '<') {
245
		if (c == '<') {
246
		    int sub_len;    /* length of substitution */
246
		    size_t sub_len;    /* length of substitution */
247
		    int diff;       /* difference between two lengths */
247
		    size_t diff;       /* difference between two lengths */
248
		    int delta;      /* direction of growth */
248
		    size_t delta;      /* direction of growth */
249
		    int cnt;        /* counter */
249
		    size_t cnt;        /* counter */
250
		    int shift_max;  /* amount to move */
250
		    size_t shift_max;  /* amount to move */
251
		    char *pivot;    /* where to start shifting */
251
		    char *pivot;    /* where to start shifting */
252
 
252
 
253
		    /* mark start of <> sequence */
253
		    /* mark start of <> sequence */
254
		    esc_start = (p - 1);
254
		    esc_start = (p - 1);
255
		    esc_len = 2; /* accounts for <, > */
255
		    esc_len = 2; /* accounts for <, > */
Line 515... Line 515...
515
 
515
 
516
	if (environ_hashtable == NULL) {
516
	if (environ_hashtable == NULL) {
517
		error(FATAL, "No environment information found\n");
517
		error(FATAL, "No environment information found\n");
518
	}
518
	}
519
 
519
 
520
	printf("Environment dump:\n");
520
	(void)printf("Environment dump:\n");
521
	/* Traverse the hash tree and print all data in it */
521
	/* Traverse the hash tree and print all data in it */
522
	for (i = 0; i < TCC_TBLSIZE; i++) {
522
	for (i = 0; i < TCC_TBLSIZE; i++) {
523
		hn = environ_hashtable->node[i];
523
		hn = environ_hashtable->node[i];
524
 
524
 
525
		if (hn) {
525
		if (hn) {