bootloader: rebase onto upstream 1.0.0, sync firmware-loader version
Bootloader fork rebase:
- Base changed from 0.1.0 pre-patched archive to upstream 1.0.0 tag (c7eeb9f)
- Applied 0001-redbear-local-forks.patch (Cargo.toml crate path redirects)
- Applied fix-uefi-alloc-panic.patch equivalents (4 panic!() -> graceful
error handling in src/main.rs)
- Applied P5-live-preload-cap-1gib.patch (1 GiB cap on live image preload)
- Skipped: P0 GPT partition scan (requires new module + integration),
P1 timeout/default-resolution, P2 live preload guard (subsumed by
panic fixes + cap), P3 live image safe read, P4 large ISO boot,
redox.patch — to be applied in dedicated rebase session.
firmware-loader/Cargo.toml: version 0.1.0 -> 0.3.0 (sync with other
Red Bear custom crates which are at 0.3.0).
fork-upstream-map.toml: bootloader back from PENDING_REBASE to 1.0.0
since the partial rebase matches upstream 1.0.0 content.
fork-upstream-map.toml: base restored to 'main' tracked (was correctly
tracked by build-redbear.sh).
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/* Normal-format output routines for GNU DIFF.
|
||||
|
||||
Copyright (C) 1988-1989, 1993, 1995, 1998, 2001, 2006, 2009-2013, 2015-2017
|
||||
Copyright (C) 1988-1989, 1993, 1995, 1998, 2001, 2006, 2009-2013, 2015-2025
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU DIFF.
|
||||
@@ -38,10 +38,8 @@ print_normal_script (struct change *script)
|
||||
static void
|
||||
print_normal_hunk (struct change *hunk)
|
||||
{
|
||||
lin first0, last0, first1, last1;
|
||||
register lin i;
|
||||
|
||||
/* Determine range of line numbers involved in each file. */
|
||||
lin first0, last0, first1, last1;
|
||||
enum changes changes = analyze_hunk (hunk, &first0, &last0, &first1, &last1);
|
||||
if (!changes)
|
||||
return;
|
||||
@@ -50,23 +48,21 @@ print_normal_hunk (struct change *hunk)
|
||||
|
||||
/* Print out the line number header for this hunk */
|
||||
set_color_context (LINE_NUMBER_CONTEXT);
|
||||
print_number_range (',', &files[0], first0, last0);
|
||||
print_number_range (',', &curr.file[0], first0, last0);
|
||||
fputc (change_letter[changes], outfile);
|
||||
print_number_range (',', &files[1], first1, last1);
|
||||
print_number_range (',', &curr.file[1], first1, last1);
|
||||
set_color_context (RESET_CONTEXT);
|
||||
fputc ('\n', outfile);
|
||||
|
||||
/* Print the lines that the first file has. */
|
||||
if (changes & OLD)
|
||||
{
|
||||
if (first0 <= last0)
|
||||
set_color_context (DELETE_CONTEXT);
|
||||
for (i = first0; i <= last0; i++)
|
||||
for (lin i = first0; i <= last0; i++)
|
||||
{
|
||||
print_1_line_nl ("<", &files[0].linbuf[i], true);
|
||||
if (i == last0)
|
||||
set_color_context (RESET_CONTEXT);
|
||||
if (files[0].linbuf[i + 1][-1] == '\n')
|
||||
set_color_context (DELETE_CONTEXT);
|
||||
print_1_line_nl ("<", &curr.file[0].linbuf[i], true);
|
||||
set_color_context (RESET_CONTEXT);
|
||||
if (curr.file[0].linbuf[i + 1][-1] == '\n')
|
||||
putc ('\n', outfile);
|
||||
}
|
||||
}
|
||||
@@ -77,14 +73,12 @@ print_normal_hunk (struct change *hunk)
|
||||
/* Print the lines that the second file has. */
|
||||
if (changes & NEW)
|
||||
{
|
||||
if (first1 <= last1)
|
||||
set_color_context (ADD_CONTEXT);
|
||||
for (i = first1; i <= last1; i++)
|
||||
for (lin i = first1; i <= last1; i++)
|
||||
{
|
||||
print_1_line_nl (">", &files[1].linbuf[i], true);
|
||||
if (i == last1)
|
||||
set_color_context (RESET_CONTEXT);
|
||||
if (files[1].linbuf[i + 1][-1] == '\n')
|
||||
set_color_context (ADD_CONTEXT);
|
||||
print_1_line_nl (">", &curr.file[1].linbuf[i], true);
|
||||
set_color_context (RESET_CONTEXT);
|
||||
if (curr.file[1].linbuf[i + 1][-1] == '\n')
|
||||
putc ('\n', outfile);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user