@@ -8552,7 +8552,7 @@ diff -ipuwr --binary --strip-trailing-cr -x '*.bak' -x '*.orig' -x '*.rej' -x '*
85528552 {
85538553diff -ipuwr --binary --strip-trailing-cr -x '*.bak' -x '*.orig' -x '*.rej' -x '*.new' -x '*~' -x debian -x '*.po' -x '*.pot' patch-2.5.9-orig/pch.c patch-2.5.9-src/pch.c
85548554--- patch-2.5.9-orig/pch.c 2003-05-20 16:03:17.000000000 +0200
8555- +++ patch-2.5.9-src/pch.c 2005-07-22 19:47:52.062500000 +0200
8555+ +++ patch-2.5.9-src/pch.c 2006-04-26 20:54:05.408483500 +0200
85568556@@ -1,6 +1,6 @@
85578557 /* reading patches */
85588558
@@ -8561,32 +8561,7 @@ diff -ipuwr --binary --strip-trailing-cr -x '*.bak' -x '*.orig' -x '*.rej' -x '*
85618561
85628562 /* Copyright (C) 1986, 1987, 1988 Larry Wall
85638563
8564- @@ -121,6 +121,7 @@ open_patch_file (char const *filename)
8565- pfatal ("fstat");
8566- if (S_ISREG (st.st_mode) && (stdin_pos = file_tell (stdin)) != -1)
8567- {
8568- + // printf ("pfp = stdin: %p\n", stdin);
8569- pfp = stdin;
8570- file_pos = stdin_pos;
8571- }
8572- @@ -133,6 +134,7 @@ open_patch_file (char const *filename)
8573- O_RDWR | O_BINARY | exclusive,
8574- (mode_t) 0),
8575- "w+b");
8576- + printf ("TMPPATNAME: %s\n", TMPPATNAME);
8577- if (!pfp)
8578- pfatal ("Can't open stream for file %s", quotearg (TMPPATNAME));
8579- for (st.st_size = 0;
8580- @@ -156,6 +158,8 @@ open_patch_file (char const *filename)
8581- pfatal ("fstat");
8582- }
8583- p_filesize = st.st_size;
8584- + printf ("p_filesize = %ld\n", p_filesize);
8585- + printf ("file_pos = %ld\n", file_pos);
8586- if (p_filesize != (file_offset) p_filesize)
8587- fatal ("patch file is too long");
8588- next_intuit_at (file_pos, (LINENUM) 1);
8589- @@ -366,10 +370,16 @@ intuit_diff_type (void)
8564+ @@ -366,10 +366,16 @@ intuit_diff_type (void)
85908565 if (!stars_last_line && strnEQ(s, "*** ", 4))
85918566 name[OLD] = fetchname (s+4, strippath, &p_timestamp[OLD]);
85928567 else if (strnEQ(s, "+++ ", 4))
@@ -8603,63 +8578,14 @@ diff -ipuwr --binary --strip-trailing-cr -x '*.bak' -x '*.orig' -x '*.rej' -x '*
86038578 else if (strnEQ(s, "Prereq:", 7)) {
86048579 for (t = s + 7; ISSPACE ((unsigned char) *t); t++)
86058580 continue;
8606- @@ -409,6 +419 ,7 @@ intuit_diff_type (void)
8581+ @@ -409,6 +415 ,7 @@ intuit_diff_type (void)
86078582 p_timestamp[NEW] = timestamp;
86088583 p_rfc934_nesting = (t - s) >> 1;
86098584 }
86108585+ p_strip_trailing_cr = strip_trailing_cr;
86118586 }
86128587 }
86138588 if ((diff_type == NO_DIFF || diff_type == ED_DIFF) &&
8614- @@ -846,12 +857,14 @@ another_hunk (enum diff difftype, bool r
8615- p_end--;
8616- }
8617- assert(p_end == -1);
8618- + printf ("p_end = %ld\n", p_end);
8619- p_efake = -1;
8620-
8621- p_max = hunkmax; /* gets reduced when --- found */
8622- if (difftype == CONTEXT_DIFF || difftype == NEW_CONTEXT_DIFF) {
8623- file_offset line_beginning = file_tell (pfp);
8624- /* file pos of the current line */
8625- + printf ("line_beginning = %ld\n", line_beginning);
8626- LINENUM repl_beginning = 0; /* index of --- line */
8627- register LINENUM fillcnt = 0; /* #lines of missing ptrn or repl */
8628- register LINENUM fillsrc; /* index of first line to copy */
8629- @@ -875,6 +888,7 @@ another_hunk (enum diff difftype, bool r
8630- fillsrc = filldst = repl_patch_line = repl_context = 0;
8631-
8632- chars_read = get_line ();
8633- + printf ("chars_read = %ld\n", chars_read);
8634- if (chars_read == (size_t) -1
8635- || chars_read <= 8
8636- || strncmp (buf, "********", 8) != 0) {
8637- @@ -1245,14 +1259,17 @@ another_hunk (enum diff difftype, bool r
8638- else if (difftype == UNI_DIFF) {
8639- file_offset line_beginning = file_tell (pfp);
8640- /* file pos of the current line */
8641- + printf ("line_beginning = %ld\n", line_beginning);
8642- register LINENUM fillsrc; /* index of old lines */
8643- register LINENUM filldst; /* index of new lines */
8644- char ch = '\0';
8645-
8646- chars_read = get_line ();
8647- + printf ("chars_read = %ld\n", chars_read);
8648- if (chars_read == (size_t) -1
8649- || chars_read <= 4
8650- || strncmp (buf, "@@ -", 4) != 0) {
8651- + printf ("buf = %s\n", buf);
8652- next_intuit_at(line_beginning,p_input_line);
8653- return chars_read == (size_t) -1 ? -1 : 0;
8654- }
8655- @@ -1305,6 +1322,7 @@ another_hunk (enum diff difftype, bool r
8656- p_hunk_beg = p_input_line + 1;
8657- while (fillsrc <= p_ptrn_lines || filldst <= p_end) {
8658- chars_read = get_line ();
8659- + printf ("chars_read = %ld\n", chars_read);
8660- if (!chars_read) {
8661- if (p_max - filldst < 3) {
8662- strcpy (buf, " \n"); /* assume blank lines got chopped */
86638589diff -ipuwr --binary --strip-trailing-cr -x '*.bak' -x '*.orig' -x '*.rej' -x '*.new' -x '*~' -x debian -x '*.po' -x '*.pot' patch-2.5.9-orig/quotearg.c patch-2.5.9-src/quotearg.c
86648590--- patch-2.5.9-orig/quotearg.c 2002-11-23 07:45:49.000000000 +0100
86658591+++ patch-2.5.9-src/quotearg.c 2005-03-24 00:18:53.953125000 +0100
0 commit comments