VirtualBox

Changeset 15932 in vbox


Ignore:
Timestamp:
Jan 14, 2009 10:13:45 AM (16 years ago)
Author:
vboxsync
Message:

Correct a dozen typos, some in #error directives, the other in comments,
so basically no code change here.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/cdefs.h

    r15834 r15932  
    44
    55/*
    6  * Copyright (C) 2006-2007 Sun Microsystems, Inc.
     6 * Copyright (C) 2006-2009 Sun Microsystems, Inc.
    77 *
    88 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    101101#  define RT_ARCH_X86
    102102# else /* PORTME: append test for new archs. */
    103 #  error "Check what predefined stuff your compiler uses to indicate architecture."
     103#  error "Check what predefined macros your compiler uses to indicate architecture."
    104104# endif
    105105#elif defined(RT_ARCH_X86) && defined(RT_ARCH_AMD64) /* PORTME: append new archs. */
     
    123123#  define __X86__
    124124# else
    125 #  error "Check what predefined stuff your compiler uses to indicate architecture."
     125#  error "Check what predefined macros your compiler uses to indicate architecture."
    126126# endif
    127127#elif defined(__X86__) && defined(__AMD64__)
     
    148148 */
    149149#if !defined(IN_RING3) && !defined(IN_RING0) && !defined(IN_RC) && !defined(IN_RC)
    150 # error "You must defined which context the compiled code should run in; IN_RING3, IN_RING0 or IN_RC"
     150# error "You must define which context the compiled code should run in; IN_RING3, IN_RING0 or IN_RC"
    151151#endif
    152152#if (defined(IN_RING3) && (defined(IN_RING0) || defined(IN_RC)) ) \
     
    250250
    251251/** @def R3R0PTRTYPE
    252  * Declare a pointer which is used in HC, is explicitely valid in ring 3 and 0,
     252 * Declare a pointer which is used in HC, is explicitly valid in ring 3 and 0,
    253253 * but appears in structure(s) used by both HC and GC. The main purpose is to
    254254 * make sure structures have the same size when built for different architectures.
     
    281281 * identifier name. The suffix is HC or GC.
    282282 *
    283  * This is macro should only be used in shared code to avoid a forrest of ifdefs.
     283 * This is macro should only be used in shared code to avoid a forest of ifdefs.
    284284 * @param   var     Identifier name.
    285285 * @deprecated Use CTX_SUFF. Do NOT use this for new code.
     
    289289 * identifier name. The suffix is HC or GC.
    290290 *
    291  * This is macro should only be used in shared code to avoid a forrest of ifdefs.
     291 * This is macro should only be used in shared code to avoid a forest of ifdefs.
    292292 * @param   var     Identifier name.
    293293 * @deprecated Use CTX_SUFF. Do NOT use this for new code.
     
    305305 * identifier name. The suffix is R3, R0 or GC.
    306306 *
    307  * This is macro should only be used in shared code to avoid a forrest of ifdefs.
     307 * This is macro should only be used in shared code to avoid a forest of ifdefs.
    308308 * @param   var     Identifier name.
    309309 * @deprecated Use CTX_SUFF. Do NOT use this for new code.
     
    321321 * identifier name. The suffix is R3, R0 or RC.
    322322 *
    323  * This is macro should only be used in shared code to avoid a forrest of ifdefs.
     323 * This is macro should only be used in shared code to avoid a forest of ifdefs.
    324324 * @param   var     Identifier name.
    325325 *
     
    339339 * The suffix thus is R3 or RZ.
    340340 *
    341  * This is macro should only be used in shared code to avoid a forrest of ifdefs.
     341 * This is macro should only be used in shared code to avoid a forest of ifdefs.
    342342 * @param   var     Identifier name.
    343343 *
     
    355355 * The middle name is HC or GC.
    356356 *
    357  * This is macro should only be used in shared code to avoid a forrest of ifdefs.
     357 * This is macro should only be used in shared code to avoid a forest of ifdefs.
    358358 * @param   first   First name.
    359359 * @param   last    Surname.
     
    363363 * The middle name is HC or GC.
    364364 *
    365  * This is macro should only be used in shared code to avoid a forrest of ifdefs.
     365 * This is macro should only be used in shared code to avoid a forest of ifdefs.
    366366 * @param   first   First name.
    367367 * @param   last    Surname.
     
    380380 * The middle name is R3, R0 or GC.
    381381 *
    382  * This is macro should only be used in shared code to avoid a forrest of ifdefs.
     382 * This is macro should only be used in shared code to avoid a forest of ifdefs.
    383383 * @param   first   First name.
    384384 * @param   last    Surname.
     
    397397 * The middle name is R3, R0 or RC.
    398398 *
    399  * This is macro should only be used in shared code to avoid a forrest of ifdefs.
     399 * This is macro should only be used in shared code to avoid a forest of ifdefs.
    400400 * @param   first   First name.
    401401 * @param   last    Surname.
     
    414414 * The middle name thus is either R3 or RZ.
    415415 *
    416  * This is macro should only be used in shared code to avoid a forrest of ifdefs.
     416 * This is macro should only be used in shared code to avoid a forest of ifdefs.
    417417 * @param   first   First name.
    418418 * @param   last    Surname.
     
    649649
    650650/** @def IN_RT_STATIC
    651  * Used to inidicate whether we're linking against a static IPRT
     651 * Used to indicate whether we're linking against a static IPRT
    652652 * or not. The IPRT symbols will be declared as hidden (if
    653653 * supported). Note that this define has no effect without setting
     
    746746 * decorate the symbols such that they don't conflict the ones in the
    747747 * other CRTs. The result of such conflicts / duplicate symbols can
    748  * confuse the dynamic loader on unix like systems.
     748 * confuse the dynamic loader on Unix like systems.
    749749 *
    750750 * Define RT_WITHOUT_NOCRT_WRAPPERS to drop the wrapping.
     
    788788 *
    789789 *      - These macros are meant to be used in places that get executed a lot. It
    790  *        is wasteful to make predictions in code that is executed seldomly (e.g.
    791  *        at subsystem initialization time) as the basic block reording that this
    792  *        affecs can often generate larger code.
     790 *        is wasteful to make predictions in code that is executed rarely (e.g.
     791 *        at subsystem initialization time) as the basic block reordering that this
     792 *        affects can often generate larger code.
    793793 *
    794794 *      - Note that RT_SUCCESS() and RT_FAILURE() already makes use of RT_LIKELY()
     
    863863 * @param   uAlignment  The alignment. Power of two!
    864864 * @param   type        Integer type to use while aligning.
    865  * @remark  This macro is the prefered alignment macro, it doesn't have any of the pitfalls RT_ALIGN has.
     865 * @remark  This macro is the preferred alignment macro, it doesn't have any of the pitfalls RT_ALIGN has.
    866866 */
    867867#define RT_ALIGN_T(u, uAlignment, type) ( ((type)(u) + ((uAlignment) - 1)) & ~(type)((uAlignment) - 1) )
     
    933933 * This differs from the usual offsetof() in that it's not relying on builtin
    934934 * compiler stuff and thus can use variables in arrays the structure may
    935  * contain. If in this usful to determin the sizes of structures ending
     935 * contain. This is useful to determine the sizes of structures ending
    936936 * with a variable length field.
    937937 *
     
    947947 * This differs from the usual offsetof() in that it's not relying on builtin
    948948 * compiler stuff and thus can use variables in arrays the structure may
    949  * contain. If in this usful to determin the sizes of structures ending
     949 * contain. This is useful to determine the sizes of structures ending
    950950 * with a variable length field.
    951951 *
     
    14471447 *
    14481448 * Use this for instrumenting a debugging session only!
    1449  * No comitted code shall use Breakpoint().
     1449 * No committed code shall use Breakpoint().
    14501450 */
    14511451#ifdef __GNUC__
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette