[xiph-cvs] cvs commit: ogg/mac/compat/sys types.h

Monty xiphmont at xiph.org
Tue Nov 21 22:11:41 PST 2000



xiphmont    00/11/21 22:11:41

  Added:       mac      libogg.mcp libogg.mcp.exp
               mac/compat strdup.c
               mac/compat/sys types.h
  Log:
  Added new Mac compatability files from Chris Hanson; hopefully got the
  binary checkin of .mcp files right.

Revision  Changes    Path
1.1                  ogg/mac/libogg.mcp

Index: libogg.mcp
===================================================================
cool

 
F
l
Š
«
Ô
ù

    .au

b:Source Trees

NONAME.EXE

    .au

NONAME.EXE
2

ˆpref
pref
pref

ˆpref
pref
pref

1.1                  ogg/mac/libogg.mcp.exp

Index: libogg.mcp.exp
===================================================================
### From <ogg/ogg.h>

# Ogg BITSTREAM PRIMITIVES: bitstream

oggpack_writeinit
oggpack_reset
oggpack_writeclear
oggpack_readinit
oggpack_write
oggpack_look
oggpack_look_huff
oggpack_look1
oggpack_adv
oggpack_adv_huff
oggpack_adv1
oggpack_read
oggpack_read1
oggpack_bytes
oggpack_bits
oggpack_get_buffer

# Ogg BITSTREAM PRIMITIVES: encoding

ogg_stream_packetin
ogg_stream_pageout
ogg_stream_flush

# Ogg BITSTREAM PRIMITIVES: decoding

ogg_sync_init
ogg_sync_clear
ogg_sync_reset
ogg_sync_destroy

ogg_sync_buffer
ogg_sync_wrote
ogg_sync_pageseek
ogg_sync_pageout
ogg_stream_pagein
ogg_stream_packetout

# Ogg BITSTREAM PRIMITIVES: general

ogg_stream_init
ogg_stream_clear
ogg_stream_reset
ogg_stream_destroy
ogg_stream_eos

ogg_page_version
ogg_page_continued
ogg_page_bos
ogg_page_eos
ogg_page_granulepos
ogg_page_serialno
ogg_page_pageno
ogg_page_packets

1.1                  ogg/mac/compat/strdup.c

Index: strdup.c
===================================================================
#include <ogg/os_types.h>
#include <sys/types.h>
#include <string.h>
#include <stdlib.h>

char *strdup(const char *inStr)
{
        char *outStr = NULL;
        
        if (inStr == NULL) {
                return NULL;
        }
        
        outStr = _ogg_malloc(strlen(inStr) + 1);
        
        if (outStr != NULL) {
                strcpy(outStr, inStr);
        }
        
        return outStr;
}

1.1                  ogg/mac/compat/sys/types.h

Index: types.h
===================================================================
#ifndef __SYS_TYPES_H__
#define __SYS_TYPES_H__ 1

#include <MacTypes.h>
#include <alloca.h>
#include <string.h>

typedef short		int16_t;
typedef long		int32_t;
typedef long long	int64_t;

#define vorbis_size32_t long


#if defined(__cplusplus)
extern "C" {
#endif

#pragma options align=power

char *strdup(const char *inStr);

#pragma options align=reset

#if defined(__cplusplus)
}
#endif

#endif /* __SYS_TYPES_H__ */

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list