Raymond Toy pushed to branch issue-386-generate-def-unix-error at cmucl / cmucl

Commits:

1 changed file:

Changes:

  • bin/create-def-unix-error.awk
    ... ... @@ -8,7 +8,15 @@ BEGIN {
    8 8
         # This is to catch any duplicates.  We assume the latter value is
    
    9 9
         # NOT what we want.  This happens on Darwin where EOPNOSUPP is
    
    10 10
         # defined twice due to #if's.
    
    11
    -    if (!($2 in errno)) {
    
    11
    +    found = 0
    
    12
    +    for (key in errno) {
    
    13
    +	if (errno[key] == $2) {
    
    14
    +	    printf ";; Ignoring dup of %s: old value %d, new value %\n", $2, errno[key], $3;
    
    15
    +	    found = 1;
    
    16
    +	    break;
    
    17
    +       }
    
    18
    +    }
    
    19
    +    if (!found) {
    
    12 20
     	errno[count] = $2;
    
    13 21
     	value[count] = $3;
    
    14 22
     	++count;