[xiph-cvs] cvs commit: vorbis/lib vorbisenc.c

Chris Wolf cwolf at xiph.org
Thu Oct 18 10:39:35 PDT 2001



cwolf       01/10/18 10:39:34

  Modified:    lib      vorbisenc.c
  Log:
  Get rid of shmmap stuff

Revision  Changes    Path
1.18      +1 -24     vorbis/lib/vorbisenc.c

Index: vorbisenc.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis/lib/vorbisenc.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- vorbisenc.c	2001/10/02 00:14:32	1.17
+++ vorbisenc.c	2001/10/18 17:39:34	1.18
@@ -11,7 +11,7 @@
  ********************************************************************
 
  function: simple programmatic interface for encoder mode setup
- last mod: $Id: vorbisenc.c,v 1.17 2001/10/02 00:14:32 segher Exp $
+ last mod: $Id: vorbisenc.c,v 1.18 2001/10/18 17:39:34 cwolf Exp $
 
  ********************************************************************/
 
@@ -29,34 +29,11 @@
 #include "os.h"
 #include "misc.h"
 
-/*
- * If this module gets built into a separate shared library 
- * on win32 (DLL), then the backend mappings from registry.c
- * need to be referenced from a file-mapped shared memory segment.
- */
-#if defined(_MSC_VER) && defined(STANDALONE_VORBISENC_DLL)
-# include "shmmap.h"
-
-  SHARED_MAP *g_shared_map;
-
-# define _time_P    g_shared_map->p_time_P
-# define _floor_P   g_shared_map->p_floor_P
-# define _residue_P g_shared_map->p_residue_P
-# define _mapping_P g_shared_map->p_mapping_P
-#endif
-
 /* deepcopy all but the codebooks; in this usage, they're static
    (don't copy as they could be big) */
 static void codec_setup_partialcopy(codec_setup_info *ci,
                                  codec_setup_info *cs){
   int i;
-
-#if defined(_MSC_VER) && defined(STANDALONE_VORBISENC_DLL)
-  int maplen;
-
-  if ((g_shared_map = table_map2mem(&maplen)) == (SHARED_MAP*)0)
-  ; /* some error handling for memory exhaustion */
-#endif
 
   memcpy(ci,cs,sizeof(*ci)); /* to get the flat numbers */
 

--- >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