whitewolfza / puz Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/puz
Automatically exported from code.google.com/p/puz
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
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
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:
My svn checkout of puz-read-only (from today) does not have the crossword.js
file needed by crossword.html.
Original issue reported on code.google.com by [email protected]
on 3 Sep 2010 at 3:56
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.