Changeset c53f12b in ada-examples for shell/rtems_shell.ads


Ignore:
Timestamp:
Feb 2, 2011, 7:08:06 PM (8 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
ada-examples-4-10-branch, master
Children:
ba922cb
Parents:
e5636e3
Message:

2011-02-02 Joel Sherrill <joel.sherrill@…>

  • commands.adb, commands.ads, rtems_shell.ads, shell.adb: Add getopt_r Package and example command.
  • command_line_arguments.adb, command_line_arguments.ads, getopt_r.adb, getopt_r.ads: New files.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • shell/rtems_shell.ads

    re5636e3 rc53f12b  
    33--
    44
    5 with Interfaces.C;          use Interfaces.C;
    6 with Interfaces.C.Strings;  use Interfaces.C.Strings;
     5with Command_Line_Arguments; use Command_Line_Arguments;
     6with Interfaces.C;           use Interfaces.C;
     7with Interfaces.C.Strings;   use Interfaces.C.Strings;
    78with Interfaces.C.Pointers;
    89
    910package RTEMS_Shell is
    10 
    11    type Argument_Array is array (ptrdiff_t range <>) of aliased chars_ptr;
    12 
    13    package Argument_Vector_Package is
    14       new Pointers (Index              => ptrdiff_t,
    15                     Element            => chars_ptr,
    16                     Element_Array      => Argument_Array,
    17                     Default_Terminator => Null_Ptr);
    18 
    19    subtype Argument_Count_Type is ptrdiff_t;
    20    subtype Argument_Vector_Type is Argument_Vector_Package.Pointer;
    2111
    2212   type Command_Function_Type is access function (ArgC : Argument_Count_Type;
Note: See TracChangeset for help on using the changeset viewer.