Changeset c646ea0 in mainline


Ignore:
Timestamp:
2010-11-24T19:48:59Z (13 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a7e7716
Parents:
b89e1d3 (diff), cb819f9 (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.
Message:

Merge from mainline

Files:
7 edited

Legend:

Unmodified
Added
Removed
  • tools/autotool.py

    rb89e1d3 rc646ea0  
    271271                                                unsigned_sizes[name] = value_int
    272272                                                unsigned_tags[tag] = value_int
    273                                                 if (strc != ""):
    274                                                         unsigned_strcs[strc] = value_int
    275                                                 if (conc != ""):
    276                                                         unsigned_concs[conc] = value_int
     273                                                unsigned_strcs[strc] = value_int
     274                                                unsigned_concs[conc] = value_int
    277275                                        elif (subcategory == "signed"):
    278276                                                signed_sizes[name] = value_int
    279277                                                signed_tags[tag] = value_int
    280                                                 if (strc != ""):
    281                                                         signed_strcs[strc] = value_int
    282                                                 if (conc != ""):
    283                                                         signed_concs[conc] = value_int
     278                                                signed_strcs[strc] = value_int
     279                                                signed_concs[conc] = value_int
    284280                                        else:
    285281                                                print_error(["Unexpected keyword \"%s\" in \"%s\" on line %s." % (subcategory, PROBE_OUTPUT, j), COMPILER_FAIL])
     
    329325               
    330326                if (not fnd):
    331                         macros.append({'oldmacro': "\"o\"", 'newmacro': "PRIo%u" % (b * 8)})
    332                         macros.append({'oldmacro': "\"u\"", 'newmacro': "PRIu%u" % (b * 8)})
    333                         macros.append({'oldmacro': "\"x\"", 'newmacro': "PRIx%u" % (b * 8)})
    334                         macros.append({'oldmacro': "\"X\"", 'newmacro': "PRIX%u" % (b * 8)})
     327                        print_error(['Unable to find appropriate unsigned printf formatter for %u bytes' % b,
     328                                     COMPILER_FAIL])
    335329               
    336330               
     
    343337               
    344338                if (not fnd):
    345                         macros.append({'oldmacro': "\"d\"", 'newmacro': "PRId%u" % (b * 8)})
     339                        print_error(['Unable to find appropriate signed printf formatter for %u bytes' % b,
     340                                     COMPILER_FAIL])
    346341               
    347342               
     
    349344                for name, value in probe['unsigned_concs'].items():
    350345                        if (value == b):
    351                                 macros.append({'oldmacro': "c ## U%s" % name, 'newmacro': "UINT%u_C(c)" % (b * 8)})
    352                                 fnd = True
    353                                 break
    354                
    355                 if (not fnd):
    356                         macros.append({'oldmacro': "c ## U", 'newmacro': "UINT%u_C(c)" % (b * 8)})
     346                                if ((name.startswith('@')) or (name == "")):
     347                                        macros.append({'oldmacro': "c ## U", 'newmacro': "UINT%u_C(c)" % (b * 8)})
     348                                else:
     349                                        macros.append({'oldmacro': "c ## U%s" % name, 'newmacro': "UINT%u_C(c)" % (b * 8)})
     350                                fnd = True
     351                                break
     352               
     353                if (not fnd):
     354                        print_error(['Unable to find appropriate unsigned literal macro for %u bytes' % b,
     355                                     COMPILER_FAIL])
    357356               
    358357               
     
    360359                for name, value in probe['signed_concs'].items():
    361360                        if (value == b):
    362                                 macros.append({'oldmacro': "c ## %s" % name, 'newmacro': "INT%u_C(c)" % (b * 8)})
    363                                 fnd = True
    364                                 break
    365                
    366                 if (not fnd):
    367                         macros.append({'oldmacro': "c", 'newmacro': "INT%u_C(c)" % (b * 8)})
     361                                if ((name.startswith('@')) or (name == "")):
     362                                        macros.append({'oldmacro': "c", 'newmacro': "INT%u_C(c)" % (b * 8)})
     363                                else:
     364                                        macros.append({'oldmacro': "c ## %s" % name, 'newmacro': "INT%u_C(c)" % (b * 8)})
     365                                fnd = True
     366                                break
     367               
     368                if (not fnd):
     369                        print_error(['Unable to find appropriate unsigned literal macro for %u bytes' % b,
     370                                     COMPILER_FAIL])
    368371       
    369372        for tag in ['CHAR', 'SHORT', 'INT', 'LONG', 'LLONG']:
     
    568571                probe = probe_compiler(common,
    569572                        [
    570                                 {'type': 'char', 'tag': 'CHAR', 'strc': '"hh"', 'conc': '""'},
    571                                 {'type': 'short int', 'tag': 'SHORT', 'strc': '"h"', 'conc': '""'},
     573                                {'type': 'char', 'tag': 'CHAR', 'strc': '"hh"', 'conc': '"@@"'},
     574                                {'type': 'short int', 'tag': 'SHORT', 'strc': '"h"', 'conc': '"@"'},
    572575                                {'type': 'int', 'tag': 'INT', 'strc': '""', 'conc': '""'},
    573576                                {'type': 'long int', 'tag': 'LONG', 'strc': '"l"', 'conc': '"L"'},
  • uspace/lib/drv/generic/driver.c

    rb89e1d3 rc646ea0  
    203203                        break;
    204204                default:
    205                         if (!(callid & IPC_CALLID_NOTIFICATION))
    206                                 ipc_answer_0(callid, ENOENT);
     205                        ipc_answer_0(callid, ENOENT);
    207206                }
    208207        }
  • uspace/srv/clip/clip.c

    rb89e1d3 rc646ea0  
    172172                        break;
    173173                default:
    174                         if (!(callid & IPC_CALLID_NOTIFICATION))
    175                                 ipc_answer_0(callid, ENOENT);
     174                        ipc_answer_0(callid, ENOENT);
    176175                }
    177176        }
  • uspace/srv/devman/main.c

    rb89e1d3 rc646ea0  
    405405                        break;
    406406                default:
    407                         if (!(callid & IPC_CALLID_NOTIFICATION))
    408                                 ipc_answer_0(callid, ENOENT);
     407                        ipc_answer_0(callid, ENOENT);
    409408                }
    410409        }
  • uspace/srv/devmap/devmap.c

    rb89e1d3 rc646ea0  
    10521052                        break;
    10531053                default:
    1054                         if (!(callid & IPC_CALLID_NOTIFICATION))
    1055                                 ipc_answer_0(callid, ENOENT);
     1054                        ipc_answer_0(callid, ENOENT);
    10561055                }
    10571056        }
     
    11111110                        break;
    11121111                default:
    1113                         if (!(callid & IPC_CALLID_NOTIFICATION))
    1114                                 ipc_answer_0(callid, ENOENT);
     1112                        ipc_answer_0(callid, ENOENT);
    11151113                }
    11161114        }
  • uspace/srv/loader/main.c

    rb89e1d3 rc646ea0  
    411411                        break;
    412412                }
    413                 if ((callid & IPC_CALLID_NOTIFICATION) == 0 &&
    414                     IPC_GET_METHOD(call) != IPC_M_PHONE_HUNGUP) {
     413                if (IPC_GET_METHOD(call) != IPC_M_PHONE_HUNGUP) {
    415414                        DPRINTF("Responding EINVAL to method %d.\n",
    416415                            IPC_GET_METHOD(call));
  • uspace/srv/ns/task.c

    rb89e1d3 rc646ea0  
    262262        if (ht == NULL) {
    263263                /* No such task exists. */
    264                 retval = ENOENT;
    265                 goto out;
     264                ipc_answer_0(callid, ENOENT);
     265                return;
    266266        }
    267267
Note: See TracChangeset for help on using the changeset viewer.