Subversion Repositories RepoView

Rev

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

Rev 13 Rev 65
Line 1... Line 1...
1
/* $Id: enscript.c 13 2024-08-21 12:31:40Z nishi $ */
1
/* $Id: enscript.c 65 2024-08-23 11:00:12Z nishi $ */
2
 
2
 
3
#include "rv_enscript.h"
3
#include "rv_enscript.h"
4
 
4
 
5
#include "../config.h"
5
#include "../config.h"
6
 
6
 
Line 75... Line 75...
75
			free(d);
75
			free(d);
76
			return NULL;
76
			return NULL;
77
		}
77
		}
78
		char* newdata = malloc(1);
78
		char* newdata = malloc(1);
79
		newdata[0] = 0;
79
		newdata[0] = 0;
80
		free(d);
-
 
81
		int i;
80
		int i;
82
		int incr = 0;
81
		int incr = 0;
83
		bool log = false;
82
		bool log = false;
84
		for(i = 0;; i++) {
83
		for(i = 0;; i++) {
85
			if(d[i] == '\n' || d[i] == 0) {
84
			if(d[i] == '\n' || d[i] == 0) {
Line 98... Line 97...
98
 
97
 
99
				incr = i + 1;
98
				incr = i + 1;
100
				if(oldc == 0) break;
99
				if(oldc == 0) break;
101
			}
100
			}
102
		}
101
		}
-
 
102
		free(d);
103
		return newdata;
103
		return newdata;
104
	}
104
	}
105
}
105
}