Changeset e3fa1720 in mainline for tools/autocheck.awk


Ignore:
Timestamp:
2018-11-13T20:14:30Z (5 years ago)
Author:
GitHub <noreply@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2214382, 64f85f5
Parents:
6ae5e3f (diff), 9a791eb9 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-11-13 20:14:30)
git-committer:
GitHub <noreply@…> (2018-11-13 20:14:30)
Message:

Remove realmode VESA code (#59)

Enables framebuffer initialization via multiboot1(multiboot2 already did it), and removes the obsolete code. Then deduplicates code for the two multiboots.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/autocheck.awk

    r6ae5e3f re3fa1720  
    3838
    3939/}.*;/ {
    40         pattern = "}( __attribute__\\(.*\\))? (" struct_name "_t)?;"
    41         if ($0 !~ pattern) {
    42                 print("Bad struct ending: " $0) > "/dev/stderr"
    43                 exit 1
     40        pattern = "}( __attribute__\\(.*\\))? " struct_name "_t;"
     41        if ($0 ~ pattern) {
     42                macro_name = toupper(struct_name) "_SIZE"
     43                print "_Static_assert(" macro_name " == sizeof(struct " struct_name "), \"\");"
     44                struct_name = ""
    4445        }
    45         macro_name = toupper(struct_name) "_SIZE"
    46         print "_Static_assert(" macro_name " == sizeof(struct " struct_name "), \"\");"
    47         struct_name = ""
    4846}
    4947
    5048/;$/ {
    51         if (struct_name != "") {
     49        if (struct_name != "" && $0 !~ "}") {
    5250                # Remove array subscript, if any.
    5351                sub("(\\[.*\\])?;", "", $0)
Note: See TracChangeset for help on using the changeset viewer.