Changeset 1433ecda in mainline for uspace/lib/pcut/src/preproc.c


Ignore:
Timestamp:
2018-04-04T15:42:37Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2c4e1cc
Parents:
47b2d7e3
Message:

Fix cstyle: make ccheck-fix and commit only files where all the changes are good.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/pcut/src/preproc.c

    r47b2d7e3 r1433ecda  
    3636static int counter = 0;
    3737
    38 static void print_numbered_identifier(int value, FILE *output) {
     38static void print_numbered_identifier(int value, FILE *output)
     39{
    3940        fprintf(output, "pcut_item_%d", value);
    4041}
    4142
    42 static void print_numbered_identifier2(int value, FILE *output) {
     43static void print_numbered_identifier2(int value, FILE *output)
     44{
    4345        fprintf(output, "pcut_item2_%d", value);
    4446}
    4547
    46 static void print_numbered_identifier3(int value, FILE *output) {
     48static void print_numbered_identifier3(int value, FILE *output)
     49{
    4750        fprintf(output, "pcut_item3_%d", value);
    4851}
     
    5356} identifier_t;
    5457
    55 static void identifier_init(identifier_t *identifier) {
     58static void identifier_init(identifier_t *identifier)
     59{
    5660        identifier->name[0] = 0;
    5761        identifier->length = 0;
    5862}
    5963
    60 static void identifier_add_char(identifier_t *identifier, char c) {
     64static void identifier_add_char(identifier_t *identifier, char c)
     65{
    6166        if (identifier->length + 1 >= MAX_IDENTIFIER_LENGTH) {
    6267                fprintf(stderr, "Identifier %s is too long, aborting!\n", identifier->name);
     
    6974}
    7075
    71 static void identifier_print_or_expand(identifier_t *identifier, FILE *output) {
     76static void identifier_print_or_expand(identifier_t *identifier, FILE *output)
     77{
    7278        const char *name = identifier->name;
    7379        if (strcmp(name, "PCUT_ITEM_NAME") == 0) {
     
    8692}
    8793
    88 static int is_identifier_char(int c, int inside_identifier) {
    89         return isalpha(c) || (c == '_')
    90                         || (inside_identifier && isdigit(c));
     94static int is_identifier_char(int c, int inside_identifier)
     95{
     96        return isalpha(c) || (c == '_') || (inside_identifier && isdigit(c));
    9197}
    9298
    93 int main(int argc, char *argv[]) {
     99int main(int argc, char *argv[])
     100{
    94101        FILE *input = stdin;
    95102        FILE *output = stdout;
Note: See TracChangeset for help on using the changeset viewer.