Changeset 91a8f83 in mainline for kernel/generic/src/proc/the.c


Ignore:
Timestamp:
2018-10-31T18:15:56Z (6 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Children:
071cb36
Parents:
482f968
Message:

Rename THE/the_t to CURRENT/current_t

Because the word "THE" occurs several times in every licence
header, searching for occurences of "THE" macro is more difficult
than necessary.

While I appreciate the wit of it, using a nonconflicting word
for it is more practical.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/proc/the.c

    r482f968 r91a8f83  
    3333/**
    3434 * @file
    35  * @brief THE structure functions.
     35 * @brief CURRENT structure functions.
    3636 *
    37  * This file contains functions to manage the THE structure.
    38  * The THE structure exists at the base address of every kernel
     37 * This file contains functions to manage the CURRENT structure.
     38 * The CURRENT structure exists at the base address of every kernel
    3939 * stack and carries information about current settings
    4040 * (e.g. current CPU, current thread, task and address space
     
    4545#include <assert.h>
    4646
    47 /** Initialize THE structure
     47/** Initialize CURRENT structure
    4848 *
    49  * Initialize THE structure passed as argument.
     49 * Initialize CURRENT structure passed as argument.
    5050 *
    51  * @param the THE structure to be initialized.
     51 * @param the CURRENT structure to be initialized.
    5252 *
    5353 */
    54 void the_initialize(the_t *the)
     54void current_initialize(current_t *the)
    5555{
    5656        the->preemption = 0;
     
    6565}
    6666
    67 /** Copy THE structure
     67/** Copy CURRENT structure
    6868 *
    69  * Copy the source THE structure to the destination THE structure.
     69 * Copy the source CURRENT structure to the destination CURRENT structure.
    7070 *
    71  * @param src The source THE structure.
    72  * @param dst The destination THE structure.
     71 * @param src The source CURRENT structure.
     72 * @param dst The destination CURRENT structure.
    7373 *
    7474 */
    75 NO_TRACE void the_copy(the_t *src, the_t *dst)
     75NO_TRACE void current_copy(current_t *src, current_t *dst)
    7676{
    7777        assert(src->magic == MAGIC);
Note: See TracChangeset for help on using the changeset viewer.