Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 506cbf0 in mainline


Ignore:
Timestamp:
2018-12-03T21:18:26Z (19 months ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Branches:
master
Children:
25cfc3d
Parents:
a8c09f91
git-author:
Matthieu Riolo <matthieu.riolo@…> (2018-12-03 21:17:06)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2018-12-03 21:18:26)
Message:

correcting comments according to coding guideline

Location:
uspace/app/bdsh
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/cmds/modules/alias/alias.c

    ra8c09f91 r506cbf0  
    7070
    7171        if (alias_link != NULL) {
    72                 //update existing value
     72                /* update existing value */
    7373                alias_t *data = odict_get_instance(alias_link, alias_t, odict);
    7474                free(data->value);
    7575                data->value = str_dup(value);
    7676        } else {
    77                 //add new value
     77                /* add new value */
    7878                alias_t *data = (alias_t *)calloc(1, sizeof(alias_t));
    7979                data->name = str_dup(name);
  • uspace/app/bdsh/input.c

    ra8c09f91 r506cbf0  
    194194        if (alias_link != NULL) {
    195195                alias_t *data = odict_get_instance(alias_link, alias_t, odict);
    196                 //check if the alias already has been resolved once
     196                /* check if the alias already has been resolved once */
    197197                if (!find_alias_hup(data, alias_hups)) {
    198198                        alias_hup_t *hup = (alias_hup_t *)calloc(1, sizeof(hup));
     
    208208                        for (i = 0; i < tokens_length; i++) {
    209209                                if (i == cmd_replace_index) {
    210                                         //if there is a pipe symbol than cmd_token_start will point at the SPACE after the pipe symbol
     210                                        /* if there is a pipe symbol than cmd_token_start will point at the SPACE after the pipe symbol */
    211211                                        if (tokens[i].type == TOKTYPE_SPACE) {
    212212                                                cmd_replace_index++;
     
    221221                        }
    222222
    223                         //reprocess input after string replace
     223                        /* reprocess input after string replace */
    224224                        rc = process_input_nohup(usr, alias_hups);
    225225                        usr->line = oldLine;
Note: See TracChangeset for help on using the changeset viewer.