~dexter/parrot-pkg/maverick

« back to all changes in this revision

Viewing changes to include/parrot/io.h

  • Committer: Piotr Roszatycki
  • Date: 2011-01-11 14:34:28 UTC
  • mfrom: (1.1.13 upstream)
  • Revision ID: piotr.roszatycki@gmail.com-20110111143428-s7pa7qz38m61o4tw
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* io.h
2
2
 *  Copyright (C) 2001-2010, Parrot Foundation.
3
 
 *  SVN Info
4
 
 *     $Id: io.h 48551 2010-08-17 15:52:29Z petdance $
5
3
 *  Overview:
6
4
 *      Parrot IO subsystem
7
5
 *  Data Structure and Algorithms:
241
239
 
242
240
PARROT_EXPORT
243
241
PARROT_WARN_UNUSED_RESULT
 
242
INTVAL Parrot_io_parse_open_flags(PARROT_INTERP,
 
243
    ARGIN_NULLOK(const STRING *mode_str))
 
244
        __attribute__nonnull__(1);
 
245
 
 
246
PARROT_EXPORT
 
247
PARROT_WARN_UNUSED_RESULT
244
248
INTVAL Parrot_io_peek(PARROT_INTERP,
245
249
    ARGMOD(PMC *pmc),
246
250
    ARGOUT(STRING **buffer))
384
388
       PARROT_ASSERT_ARG(interp))
385
389
#define ASSERT_ARGS_Parrot_io_open __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
386
390
       PARROT_ASSERT_ARG(interp))
 
391
#define ASSERT_ARGS_Parrot_io_parse_open_flags __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
 
392
       PARROT_ASSERT_ARG(interp))
387
393
#define ASSERT_ARGS_Parrot_io_peek __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
388
394
       PARROT_ASSERT_ARG(interp) \
389
395
    , PARROT_ASSERT_ARG(pmc) \
647
653
        __attribute__nonnull__(3);
648
654
 
649
655
PARROT_EXPORT
650
 
PARROT_WARN_UNUSED_RESULT
651
 
INTVAL Parrot_io_parse_open_flags(PARROT_INTERP,
652
 
    ARGIN_NULLOK(const STRING *mode_str))
653
 
        __attribute__nonnull__(1);
654
 
 
655
 
PARROT_EXPORT
656
656
void Parrot_io_set_file_position(SHIM_INTERP,
657
657
    ARGMOD(PMC *filehandle),
658
658
    PIOOFF_T file_pos)
761
761
       PARROT_ASSERT_ARG(interp) \
762
762
    , PARROT_ASSERT_ARG(filehandle) \
763
763
    , PARROT_ASSERT_ARG(value))
764
 
#define ASSERT_ARGS_Parrot_io_parse_open_flags __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
765
 
       PARROT_ASSERT_ARG(interp))
766
764
#define ASSERT_ARGS_Parrot_io_set_file_position __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
767
765
       PARROT_ASSERT_ARG(filehandle))
768
766
#define ASSERT_ARGS_Parrot_io_set_file_size __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
962
960
 * Local variables:
963
961
 *   c-file-style: "parrot"
964
962
 * End:
965
 
 * vim: expandtab shiftwidth=4:
 
963
 * vim: expandtab shiftwidth=4 cinoptions='\:2=2' :
966
964
 */