mplib
16 years agoInitial implementation of envelope <pen> of <path> envelope_of
Giuseppe Bilotta [Mon, 18 Feb 2008 14:37:57 +0000 (15:37 +0100)] 
Initial implementation of envelope <pen> of <path>

16 years agotest for rlink(p)==p too
Taco Hoekwater [Wed, 20 Feb 2008 09:14:03 +0000 (09:14 +0000)] 
test for rlink(p)==p too

git-svn-id: svn+ssh://scm.foundry.supelec.fr/svn/metapost/mplib/trunk@312 b0617d17-b707-0410-b22c-fd2634e05cc4

16 years agoadd an error for null pointers in the free list
Taco Hoekwater [Wed, 20 Feb 2008 09:11:19 +0000 (09:11 +0000)] 
add an error for null pointers in the free list

git-svn-id: svn+ssh://scm.foundry.supelec.fr/svn/metapost/mplib/trunk@311 b0617d17-b707-0410-b22c-fd2634e05cc4

16 years agotentative fix for issue 3 (ex 53)
Giuseppe Bilotta [Wed, 20 Feb 2008 08:36:58 +0000 (08:36 +0000)] 
tentative fix for issue 3 (ex 53)

git-svn-id: svn+ssh://scm.foundry.supelec.fr/svn/metapost/mplib/trunk@310 b0617d17-b707-0410-b22c-fd2634e05cc4

16 years agoseparated out the backend some more
Taco Hoekwater [Tue, 19 Feb 2008 16:24:45 +0000 (16:24 +0000)] 
separated out the backend some more

git-svn-id: svn+ssh://scm.foundry.supelec.fr/svn/metapost/mplib/trunk@309 b0617d17-b707-0410-b22c-fd2634e05cc4

16 years agofix the initial degenerate cubic case in a better manner
Giuseppe Bilotta [Tue, 19 Feb 2008 08:30:38 +0000 (08:30 +0000)] 
fix the initial degenerate cubic case in a better manner

git-svn-id: svn+ssh://scm.foundry.supelec.fr/svn/metapost/mplib/trunk@308 b0617d17-b707-0410-b22c-fd2634e05cc4

16 years agofix some more web -> cweb conversion errors
oblomov [Mon, 18 Feb 2008 17:10:06 +0000 (17:10 +0000)] 
fix some more web -> cweb conversion errors

git-svn-id: svn+ssh://scm.foundry.supelec.fr/svn/metapost/mplib/trunk@307 b0617d17-b707-0410-b22c-fd2634e05cc4

16 years agofix a bug in offset_prep and add some parens for clarity
taco [Mon, 18 Feb 2008 13:21:40 +0000 (13:21 +0000)] 
fix a bug in offset_prep and add some parens for clarity

git-svn-id: svn+ssh://scm.foundry.supelec.fr/svn/metapost/mplib/trunk@305 b0617d17-b707-0410-b22c-fd2634e05cc4

16 years agofix definition of half() and halfp()
oblomov [Sun, 17 Feb 2008 18:31:13 +0000 (18:31 +0000)] 
fix definition of half() and halfp()

git-svn-id: svn+ssh://scm.foundry.supelec.fr/svn/metapost/mplib/trunk@304 b0617d17-b707-0410-b22c-fd2634e05cc4

16 years agosmall comment fix
oblomov [Sat, 16 Feb 2008 14:01:41 +0000 (14:01 +0000)] 
small comment fix

git-svn-id: svn+ssh://scm.foundry.supelec.fr/svn/metapost/mplib/trunk@303 b0617d17-b707-0410-b22c-fd2634e05cc4

16 years agoFix null bounding box being printed at shipout
oblomov [Sat, 16 Feb 2008 12:52:32 +0000 (12:52 +0000)] 
Fix null bounding box being printed at shipout

The object bounding box should be computed before its values are retrieved to
be passed over to mp_print_initial_comment().

git-svn-id: svn+ssh://scm.foundry.supelec.fr/svn/metapost/mplib/trunk@302 b0617d17-b707-0410-b22c-fd2634e05cc4

16 years agoFix inability to find plain.mem when filename is passed on the command line
oblomov [Sat, 16 Feb 2008 12:51:39 +0000 (12:51 +0000)] 
Fix inability to find plain.mem when filename is passed on the command line

An off-by-one error in mp_pack_buffered_name() usage caused a command such as
'./newmpost test.mp' to try to dump 'plaint.mem' instead of 'plain.mem' because
the first character of the filename passed on the command line was appended to
the format file name.

Fix by using a more C-style call convention for mp_pack_buffered_name().

git-svn-id: svn+ssh://scm.foundry.supelec.fr/svn/metapost/mplib/trunk@301 b0617d17-b707-0410-b22c-fd2634e05cc4

16 years agoprepare a backend that operates of malloc()ed objects instead of pointers into mem[]
Taco Hoekwater [Sun, 3 Feb 2008 15:43:24 +0000 (15:43 +0000)] 
prepare a backend that operates of malloc()ed objects instead of pointers into mem[]

git-svn-id: svn+ssh://scm.foundry.supelec.fr/svn/metapost/mplib/trunk@294 b0617d17-b707-0410-b22c-fd2634e05cc4

16 years agosmall updates, like extra xmalloc functions now that they are not exported any more
Taco Hoekwater [Sat, 2 Feb 2008 17:08:41 +0000 (17:08 +0000)] 
small updates, like extra xmalloc functions now that they are not exported any more

git-svn-id: svn+ssh://scm.foundry.supelec.fr/svn/metapost/mplib/trunk@293 b0617d17-b707-0410-b22c-fd2634e05cc4

16 years agocleanups in sync with mp.w
Taco Hoekwater [Sat, 2 Feb 2008 17:07:54 +0000 (17:07 +0000)] 
cleanups in sync with mp.w

git-svn-id: svn+ssh://scm.foundry.supelec.fr/svn/metapost/mplib/trunk@292 b0617d17-b707-0410-b22c-fd2634e05cc4

16 years agogeneral cleanups: mplib.h is now smaller, and what is still there uses namespaces.
Taco Hoekwater [Sat, 2 Feb 2008 17:07:13 +0000 (17:07 +0000)] 
general cleanups:  mplib.h is now smaller, and what is still there uses namespaces.
MPlib now uses setjmp/longjmp, and no longer calls exit() itself.
some more of the #define lists of constants are now enumerations.
a bit of cleanup in the mp_ship_out() routine.

git-svn-id: svn+ssh://scm.foundry.supelec.fr/svn/metapost/mplib/trunk@291 b0617d17-b707-0410-b22c-fd2634e05cc4

16 years agomempcy should be faster
Taco Hoekwater [Fri, 1 Feb 2008 15:41:31 +0000 (15:41 +0000)] 
mempcy should be faster

git-svn-id: svn+ssh://scm.foundry.supelec.fr/svn/metapost/mplib/trunk@290 b0617d17-b707-0410-b22c-fd2634e05cc4

16 years agomove more ps commands to psout.w
Taco Hoekwater [Fri, 1 Feb 2008 15:19:07 +0000 (15:19 +0000)] 
move more ps commands to psout.w

git-svn-id: svn+ssh://scm.foundry.supelec.fr/svn/metapost/mplib/trunk@289 b0617d17-b707-0410-b22c-fd2634e05cc4

16 years agofix default tfm reading
Taco Hoekwater [Fri, 1 Feb 2008 14:49:31 +0000 (14:49 +0000)] 
fix default tfm reading

git-svn-id: svn+ssh://scm.foundry.supelec.fr/svn/metapost/mplib/trunk@288 b0617d17-b707-0410-b22c-fd2634e05cc4

16 years agofix a few leaks, set $engine to newmetapost, secret --no-kpathsea option
Taco Hoekwater [Fri, 1 Feb 2008 14:37:54 +0000 (14:37 +0000)] 
fix a few leaks, set $engine to newmetapost, secret --no-kpathsea option

git-svn-id: svn+ssh://scm.foundry.supelec.fr/svn/metapost/mplib/trunk@287 b0617d17-b707-0410-b22c-fd2634e05cc4

16 years agofix some memory leaks
Taco Hoekwater [Fri, 1 Feb 2008 14:36:32 +0000 (14:36 +0000)] 
fix some memory leaks

git-svn-id: svn+ssh://scm.foundry.supelec.fr/svn/metapost/mplib/trunk@286 b0617d17-b707-0410-b22c-fd2634e05cc4

16 years agoadd the explanation files
Taco Hoekwater [Thu, 31 Jan 2008 16:33:46 +0000 (16:33 +0000)] 
add the explanation files

git-svn-id: svn+ssh://scm.foundry.supelec.fr/svn/metapost/mplib/trunk@285 b0617d17-b707-0410-b22c-fd2634e05cc4

16 years agoremove a few tokens for ctangle (and fix a reallocation bug while at it)
Taco Hoekwater [Thu, 31 Jan 2008 15:59:22 +0000 (15:59 +0000)] 
remove a few tokens for ctangle (and fix a reallocation bug while at it)

git-svn-id: svn+ssh://scm.foundry.supelec.fr/svn/metapost/mplib/trunk@284 b0617d17-b707-0410-b22c-fd2634e05cc4

16 years agobuild the library using libtool, and a bit of cleanup
Taco Hoekwater [Thu, 31 Jan 2008 15:44:31 +0000 (15:44 +0000)] 
build the library using libtool, and a bit of cleanup

git-svn-id: svn+ssh://scm.foundry.supelec.fr/svn/metapost/mplib/trunk@283 b0617d17-b707-0410-b22c-fd2634e05cc4

16 years agoattempt to use autofoo
Taco Hoekwater [Thu, 31 Jan 2008 15:02:53 +0000 (15:02 +0000)] 
attempt to use autofoo

git-svn-id: svn+ssh://scm.foundry.supelec.fr/svn/metapost/mplib/trunk@282 b0617d17-b707-0410-b22c-fd2634e05cc4

16 years agobuild scripts
Taco Hoekwater [Thu, 31 Jan 2008 11:23:52 +0000 (11:23 +0000)] 
build scripts

git-svn-id: svn+ssh://scm.foundry.supelec.fr/svn/metapost/mplib/trunk@281 b0617d17-b707-0410-b22c-fd2634e05cc4

16 years agowin32 guard
Taco Hoekwater [Thu, 31 Jan 2008 11:23:30 +0000 (11:23 +0000)] 
win32 guard

git-svn-id: svn+ssh://scm.foundry.supelec.fr/svn/metapost/mplib/trunk@280 b0617d17-b707-0410-b22c-fd2634e05cc4

16 years agono longer needed
Taco Hoekwater [Thu, 31 Jan 2008 11:20:43 +0000 (11:20 +0000)] 
no longer needed

git-svn-id: svn+ssh://scm.foundry.supelec.fr/svn/metapost/mplib/trunk@279 b0617d17-b707-0410-b22c-fd2634e05cc4

16 years agobuilddir fix
Taco Hoekwater [Thu, 31 Jan 2008 11:20:17 +0000 (11:20 +0000)] 
builddir fix

git-svn-id: svn+ssh://scm.foundry.supelec.fr/svn/metapost/mplib/trunk@278 b0617d17-b707-0410-b22c-fd2634e05cc4

16 years agomingw crosscompilation patches
Taco Hoekwater [Thu, 31 Jan 2008 11:19:45 +0000 (11:19 +0000)] 
mingw crosscompilation patches

git-svn-id: svn+ssh://scm.foundry.supelec.fr/svn/metapost/mplib/trunk@277 b0617d17-b707-0410-b22c-fd2634e05cc4

16 years agoeven more
Taco Hoekwater [Thu, 31 Jan 2008 10:18:37 +0000 (10:18 +0000)] 
even more

git-svn-id: svn+ssh://scm.foundry.supelec.fr/svn/metapost/mplib/trunk@276 b0617d17-b707-0410-b22c-fd2634e05cc4

16 years agoadd infrastructure for kpathsea
Taco Hoekwater [Thu, 31 Jan 2008 10:17:13 +0000 (10:17 +0000)] 
add infrastructure for kpathsea

git-svn-id: svn+ssh://scm.foundry.supelec.fr/svn/metapost/mplib/trunk@275 b0617d17-b707-0410-b22c-fd2634e05cc4

16 years agocommit the new Makefile
Taco Hoekwater [Thu, 31 Jan 2008 10:13:08 +0000 (10:13 +0000)] 
commit the new Makefile

git-svn-id: svn+ssh://scm.foundry.supelec.fr/svn/metapost/mplib/trunk@274 b0617d17-b707-0410-b22c-fd2634e05cc4

16 years agoBuild separation between lib and src
Taco Hoekwater [Thu, 31 Jan 2008 10:12:37 +0000 (10:12 +0000)] 
Build separation between lib and src

git-svn-id: svn+ssh://scm.foundry.supelec.fr/svn/metapost/mplib/trunk@273 b0617d17-b707-0410-b22c-fd2634e05cc4

16 years agocweb
Taco Hoekwater [Thu, 31 Jan 2008 09:30:05 +0000 (09:30 +0000)] 
cweb

git-svn-id: svn+ssh://scm.foundry.supelec.fr/svn/metapost/mplib/trunk@272 b0617d17-b707-0410-b22c-fd2634e05cc4

16 years agokpathsea from texlive (#6463)
Taco Hoekwater [Thu, 31 Jan 2008 09:27:12 +0000 (09:27 +0000)] 
kpathsea from texlive (#6463)

git-svn-id: svn+ssh://scm.foundry.supelec.fr/svn/metapost/mplib/trunk@271 b0617d17-b707-0410-b22c-fd2634e05cc4

16 years agofill in the mplib code
Taco Hoekwater [Thu, 31 Jan 2008 09:23:16 +0000 (09:23 +0000)] 
fill in the mplib code

git-svn-id: svn+ssh://scm.foundry.supelec.fr/svn/metapost/mplib/trunk@270 b0617d17-b707-0410-b22c-fd2634e05cc4

16 years agosetup a tree
Taco Hoekwater [Thu, 31 Jan 2008 09:22:50 +0000 (09:22 +0000)] 
setup a tree

git-svn-id: svn+ssh://scm.foundry.supelec.fr/svn/metapost/mplib/trunk@269 b0617d17-b707-0410-b22c-fd2634e05cc4

16 years agoadd a trunk
Taco Hoekwater [Thu, 31 Jan 2008 09:19:42 +0000 (09:19 +0000)] 
add a trunk

git-svn-id: svn+ssh://scm.foundry.supelec.fr/svn/metapost/mplib/trunk@268 b0617d17-b707-0410-b22c-fd2634e05cc4