Changeset 6abff2a8 in mainline


Ignore:
Timestamp:
2018-07-08T17:58:14Z (6 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d4475a44
Parents:
be0f5e4
Message:

put extern declarations into the header file

Location:
uspace/lib/c/generic
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/libc.c

    rbe0f5e4 r6abff2a8  
    6262
    6363static bool env_setup = false;
    64 
    65 /**
    66  * Used for C++ constructors/destructors
    67  * and the GCC constructor/destructor extension.
    68  */
    69 typedef void (*init_array_entry_t)();
    70 extern init_array_entry_t __init_array_start[];
    71 extern init_array_entry_t __init_array_end[];
    72 typedef void (*fini_array_entry_t)();
    73 extern fini_array_entry_t __fini_array_start[];
    74 extern fini_array_entry_t __fini_array_end[];
    7564
    7665void __libc_main(void *pcb_ptr)
  • uspace/lib/c/generic/private/libc.h

    rbe0f5e4 r6abff2a8  
    3636#define LIBC_PRIVATE_LIBC_H_
    3737
     38/**
     39 * Used for C++ constructors/destructors
     40 * and the GCC constructor/destructor extension.
     41 */
     42typedef void (*init_array_entry_t)();
     43typedef void (*fini_array_entry_t)();
     44
     45extern init_array_entry_t __init_array_start[];
     46extern init_array_entry_t __init_array_end[];
     47extern fini_array_entry_t __fini_array_start[];
     48extern fini_array_entry_t __fini_array_end[];
     49
    3850extern unsigned char _end[];
    3951extern void __libc_main(void *) __attribute__((noreturn));
Note: See TracChangeset for help on using the changeset viewer.