Browse files

Step 12: get back on track with error-driven development.

  • Loading branch information...
Ben Laurie
Ben Laurie committed Apr 28, 2012
1 parent 1df47b5 commit df1203313bc05160cb1fbdaddfc886fd398c2b1d
Showing with 16 additions and 1 deletion.
  1. +8 −0 contrib/bzip2/CONVERSION
  2. +8 −1 contrib/bzip2/bzip2.c
@@ -93,3 +93,11 @@
Eventually, it all builds.
But there's one more thing to do...
12. Sadly, error-driven development fails us here. It wouldn't if we
had an IDL.
We need to add unwrappers and capabilities for all the functions
we wrapped earlier. Luckily, there's a list in bzip2_wrapped.h, so
we'll just haul those in and get back on track with errors. Note
that the unwrap functions just take a file descriptor.
@@ -214,7 +214,14 @@ static void cleanUpAndFail ( Int32 ) NORETURN;
static void copyFileName ( Char*, Char* );
static void* myMalloc ( Int32 );
static void unwrap_applySavedFileAttrToOutputFile(int fd);
static void unwrap_applySavedFileAttrToOutputFile( int fd );
static void unwrap_clear_outputHandleJustInCase ( int fd );
static void unwrap_configError ( int fd ) NORETURN;
static void unwrap_outOfMemory ( int fd ) NORETURN;
static void unwrap_ioError ( int fd ) NORETURN;
static void unwrap_panic ( int fd ) NORETURN;
static void unwrap_crcError ( int fd ) NORETURN;
static void unwrap_compressedStreamEOF ( int fd ) NORETURN;
static int output_fd;

0 comments on commit df12033

Please sign in to comment.