Changeset e8d59ca in rtems


Ignore:
Timestamp:
Jul 22, 2009, 2:26:25 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
35d09ba
Parents:
381a53a8
Message:

2009-07-22 Joel Sherrill <joel.sherrill@…>

  • Makefile.am, preinstall.am, libmisc/Makefile.am, wrapup/Makefile.am: Add the stringto family of string to number converters. These are error checking wrappers for the strtoXXX methods and do their best to return false if the conversion failed. The error checking required for this is tedious and error prone. Hence better to have in a family of helper routines.
  • libmisc/stringto/stringto.h, libmisc/stringto/stringto_template.h, libmisc/stringto/stringtodouble.c, libmisc/stringto/stringtofloat.c, libmisc/stringto/stringtoint.c, libmisc/stringto/stringtolong.c, libmisc/stringto/stringtolonglong.c, libmisc/stringto/stringtounsignedchar.c, libmisc/stringto/stringtounsignedint.c, libmisc/stringto/stringtounsignedlong.c, libmisc/stringto/stringtounsignedlonglong.c: New files.
Location:
cpukit
Files:
11 added
5 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r381a53a8 re8d59ca  
     12009-07-22      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * Makefile.am, preinstall.am, libmisc/Makefile.am, wrapup/Makefile.am:
     4        Add the stringto family of string to number converters. These are
     5        error checking wrappers for the strtoXXX methods and do their best to
     6        return false if the conversion failed. The error checking required
     7        for this is tedious and error prone. Hence better to have in a family
     8        of helper routines.
     9        * libmisc/stringto/stringto.h, libmisc/stringto/stringto_template.h,
     10        libmisc/stringto/stringtodouble.c, libmisc/stringto/stringtofloat.c,
     11        libmisc/stringto/stringtoint.c, libmisc/stringto/stringtolong.c,
     12        libmisc/stringto/stringtolonglong.c,
     13        libmisc/stringto/stringtounsignedchar.c,
     14        libmisc/stringto/stringtounsignedint.c,
     15        libmisc/stringto/stringtounsignedlong.c,
     16        libmisc/stringto/stringtounsignedlonglong.c: New files.
     17
    1182009-07-21      Joel Sherrill <joel.sherrill@OARcorp.com>
    219
  • cpukit/Makefile.am

    r381a53a8 re8d59ca  
    133133endif
    134134
     135## stringto
     136include_rtems_HEADERS += libmisc/stringto/stringto.h
     137
    135138## i2c
    136139include_rtems_HEADERS += libi2c/libi2c.h
  • cpukit/libmisc/Makefile.am

    r381a53a8 re8d59ca  
    8888    shell/shell_script.c shell/login_prompt.c shell/login_check.c \
    8989    shell/fdisk.c shell/main_rtc.c \
    90     shell/dd-args.c shell/main_dd.c shell/dd-conv.c shell/dd-conv_tab.c shell/dd-misc.c \
    91     shell/dd-position.c \
     90    shell/dd-args.c shell/main_dd.c shell/dd-conv.c shell/dd-conv_tab.c \
     91    shell/dd-misc.c shell/dd-position.c \
    9292    shell/main_hexdump.c shell/hexdump-conv.c shell/hexdump-display.c \
    9393    shell/hexdump-odsyntax.c shell/hexdump-parse.c shell/hexsyntax.c \
     
    127127EXTRA_DIST += untar/README
    128128
     129## stringto
     130noinst_LIBRARIES += libstringto.a
     131libstringto_a_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/stringto
     132libstringto_a_SOURCES = stringto/stringtodouble.c stringto/stringtofloat.c \
     133    stringto/stringtoint.c stringto/stringtolong.c stringto/stringtolonglong.c \
     134    stringto/stringtounsignedchar.c stringto/stringtounsignedint.c \
     135    stringto/stringtounsignedlong.c stringto/stringtounsignedlonglong.c
     136
     137EXTRA_DIST += stringto/stringto_template.h
     138
    129139## fsmount
    130140noinst_LIBRARIES += libfsmount.a
    131141libfsmount_a_SOURCES = fsmount/fsmount.c fsmount/fsmount.h
    132142
    133 EXTRA_DIST += fsmount/README
    134 
    135143## uuid
    136144noinst_LIBRARIES += libuuid.a
    137 libuuid_a_SOURCES = uuid/clear.c \
    138         uuid/compare.c \
    139         uuid/copy.c \
    140         uuid/gen_uuid.c \
    141         uuid/isnull.c \
    142         uuid/pack.c \
    143         uuid/parse.c \
    144         uuid/unpack.c \
    145         uuid/unparse.c \
    146         uuid/uuid_time.c \
    147         uuid/uuidd.h \
    148         uuid/uuidP.h
     145libuuid_a_SOURCES = uuid/clear.c uuid/compare.c uuid/copy.c uuid/gen_uuid.c \
     146        uuid/isnull.c uuid/pack.c uuid/parse.c uuid/unpack.c uuid/unparse.c \
     147        uuid/uuid_time.c uuid/uuidd.h uuid/uuidP.h
    149148
    150149## ---
  • cpukit/preinstall.am

    r381a53a8 re8d59ca  
    252252PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/shellconfig.h
    253253endif
     254$(PROJECT_INCLUDE)/rtems/stringto.h: libmisc/stringto/stringto.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
     255        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/stringto.h
     256PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/stringto.h
     257
    254258$(PROJECT_INCLUDE)/rtems/libi2c.h: libi2c/libi2c.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
    255259        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/libi2c.h
  • cpukit/wrapup/Makefile.am

    r381a53a8 re8d59ca  
    6060TMP_LIBS += ../libmisc/libcapture.a
    6161TMP_LIBS += ../libmisc/libfsmount.a
     62TMP_LIBS += ../libmisc/libstringto.a
    6263TMP_LIBS += ../libmisc/libuuid.a
    6364
Note: See TracChangeset for help on using the changeset viewer.