Changeset a290fbe9 in rtems for cpukit/sapi


Ignore:
Timestamp:
Apr 24, 2013, 12:30:42 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
5fa0e5c5
Parents:
aeba445
git-author:
Sebastian Huber <sebastian.huber@…> (04/24/13 12:30:42)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/26/13 08:57:08)
Message:

libcsupport: Make LibIO helper const

Add and use rtems_libio_helper function type. Add and use
rtems_libio_helper_null() instead of NULL pointer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/sapi/include/confdefs.h

    raeba445 ra290fbe9  
    9393
    9494#ifdef CONFIGURE_INIT
    95 rtems_libio_init_functions_t rtems_libio_init_helper =
    96     #ifdef CONFIGURE_APPLICATION_DISABLE_FILESYSTEM
    97     NULL;
    98     #else
     95const rtems_libio_helper rtems_libio_init_helper =
     96  #ifdef CONFIGURE_APPLICATION_DISABLE_FILESYSTEM
     97    rtems_libio_helper_null;
     98  #else
    9999    rtems_libio_init;
    100     #endif
    101 
    102 rtems_libio_supp_functions_t rtems_libio_supp_helper =
    103     #ifdef CONFIGURE_APPLICATION_DISABLE_FILESYSTEM
    104     NULL;
    105     #else
     100  #endif
     101
     102const rtems_libio_helper rtems_libio_supp_helper =
     103  #ifdef CONFIGURE_APPLICATION_DISABLE_FILESYSTEM
     104    rtems_libio_helper_null;
     105  #else
    106106    open_dev_console;
    107     #endif
    108 
    109 rtems_fs_init_functions_t    rtems_fs_init_helper =
    110     #ifdef CONFIGURE_APPLICATION_DISABLE_FILESYSTEM
    111     NULL;
    112     #else
     107  #endif
     108
     109const rtems_libio_helper rtems_fs_init_helper =
     110  #ifdef CONFIGURE_APPLICATION_DISABLE_FILESYSTEM
     111    rtems_libio_helper_null;
     112  #else
    113113    rtems_filesystem_initialize;
    114     #endif
     114  #endif
    115115#endif
    116116#endif
Note: See TracChangeset for help on using the changeset viewer.