Coder Social home page Coder Social logo

puz's People

Contributors

ccasin avatar

Watchers

 avatar

puz's Issues

compiling libpuz and readpuz on Windows with MinGW32

Got this to build on Windows.  Wanted to document the changes it required just 
in case anyone has a need for this.  It does not compile for Windows without 
modification.

Added the following files to the build since Windows doesn't offer memory 
mapping:
http://code.google.com/p/mman-win32/source/browse/trunk/mman.h
http://code.google.com/p/mman-win32/source/browse/trunk/mman.c

Windows is also missing a strndup function, so I added the code for a version I 
wrote to the build:
#include <string.h>
#include <stdlib.h>

char *strndup (const char *s, size_t size)
{
   int sz = strlen (s); 
   if (sz > size)
      sz = size;
   char *retval = (char *) malloc (sz + 1);
   {
      memcpy( retval, s, sz);
      retval[sz] = '\0';
   }
   return (retval);
}

Once those are added to the Win32 build, it builds fine on Windows using 
MinGW32.  Was able to get readpuz.exe to execute on a Windows system.

Original issue reported on code.google.com by [email protected] on 22 Jan 2013 at 7:11

Reading text-format puzzle files

What steps will reproduce the problem?
1. read in any text-format puzzle files

The clues appear in the wrong order and the notes section is ignored.

Original issue reported on code.google.com by [email protected] on 18 Dec 2013 at 3:49

segfault in converting text file to binary file

What steps will reproduce the problem?
1. Create test.txt, a text puz file
2. readpuz test.txt test.puz
3.

What is the expected output? 
A binary puz file, created from test.txt

What do you see instead?
A segfault

What version of the product are you using? 
libpuz-1.1.0

On what operating system?
linux

Please provide any additional information below.

I ran gdb and found that I was dying in cksum.c, in reading puz->notes.  I 
found that puz->notes is initialized in load.c/puz_load_bin, when a binary puz 
file is read in, but couldn't find where it was getting initialized when 
reading a text puz file.

I got my conversion to work by commenting out all mention of pux->notes in 
cksum.c.  This is obviously not a viable solution for general use.


Original issue reported on code.google.com by [email protected] on 17 Jan 2011 at 1:43

Attachments:

Literate software Info about puz format available

I was searching info about this format when I found both your project, and
the info from LitSoft. I hope this will be useful.

http://www.litsoft.com/across/alite/man/AcrossTextFormat.pdf

Cheers,
David.

Original issue reported on code.google.com by [email protected] on 28 Oct 2009 at 5:17

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.