Code repositories

Home Research ICRA 2010 Scheme→C Hurd N900 Code Reading CV
hsffig.git
3 years agoPort to ghc 6.8.3 and new filepath master
Andrei Barbu [Fri, 24 Oct 2008 16:51:32 +0000]
Port to ghc 6.8.3 and new filepath

darcs-hash:20081024165132-b1033-3155984e5d0716724449c35bbc7ea74b1da2294f.gz

6 years agorelease_candidate
golubovsky [Mon, 13 Feb 2006 02:41:56 +0000]
release_candidate

Final code cleanup for release candidate. Added comments.
Fixed -V option and logic if there are other options but no include
files: terminate with diagnostics.

darcs-hash:20060213024156-29b23-c1bbc05e60c9ad8e7fcdf0484234145c72cf86d4.gz

6 years agocleanup
golubovsky [Sun, 12 Feb 2006 04:56:05 +0000]
cleanup

Code cleanup. Implemented the -V option (show program version).
The program queries Cabal for all packages installed, and retrieves
information about the package HSFFIG: the version returned will be shown.

darcs-hash:20060212045605-29b23-9deaa792b993f6a17264addd4fd83b059639cd9c.gz

6 years agop_opt_fix
golubovsky [Sun, 5 Feb 2006 13:28:08 +0000]
p_opt_fix

Made sure additional C compiler/preprocessor options are correctly passed
to all gcc invocations (except one from within GHC, but this seems to be
non-relevant) (might think about it in the future)

Fixed the -P option to work correctly

darcs-hash:20060205132808-29b23-cdd95dc33344782b8c4b9448c3c1e3f114ac348c.gz

6 years agocpp-option
golubovsky [Fri, 3 Feb 2006 11:25:31 +0000]
cpp-option

Added the -c (--cpp

darcs-hash:20060203112531-29b23-e85012a84b48aa66e81f9c3d0cc23b71fdacef94.gz

6 years agonew-hooks
golubovsky [Tue, 31 Jan 2006 04:06:45 +0000]
new-hooks

Added a --new-hooks (-n) option to emit Setup.hs for Cabal
verions 1.1.4 and higher (as of this moment not tested yet).

darcs-hash:20060131040645-29b23-ff076cc2f3e4b0c6bea99a99c532c9ead4c6ec68.gz

6 years agosetup_user_hook
golubovsky [Fri, 27 Jan 2006 04:07:25 +0000]
setup_user_hook

Setup.hs kind of working: need more hooks to disable
Cabal commands that are nonsense with FFI import.

darcs-hash:20060127040725-29b23-8f69580c39dd32adcd0e5ca2de03f8b95c717d61.gz

6 years agopolished_makefile
golubovsky [Thu, 26 Jan 2006 11:10:53 +0000]
polished_makefile

Polished the makefile template: now to build the library and the GHCi object
it is necessary to run make build LOC

darcs-hash:20060126111053-29b23-3d0dace9bcd399a6f6ca94fa24c7ab6199523dbf.gz

6 years agocabal_file
golubovsky [Tue, 24 Jan 2006 04:34:50 +0000]
cabal_file

Code cleanup. The program now creates a minimal Cabal file.

darcs-hash:20060124043450-29b23-cdb038a3117fbe9e455f03c447ecbae98677170c.gz

6 years agoworking_makefile
golubovsky [Mon, 23 Jan 2006 10:30:10 +0000]
working_makefile

At this point, ffipkg is able to create a working Makefile (i. e. capable of
building of a library). A lot of polishing is still needed, but this draft state
is worth of checking out.

darcs-hash:20060123103010-29b23-0f69dd2f95ec80276b8e26006f209cbf8c750b67.gz

6 years agocompile_with_ghc_6.4.1
golubovsky [Mon, 2 Jan 2006 03:26:14 +0000]
compile_with_ghc_6.4.1

In order to make HSFFIG compile with GHC 6.4.1,
 - resident Cabal stuff has been removed:
   use Cabal installed separately (version 1.1.3 is OK)
 - Data.FiniteMap has been replaced with Data.Map

The XML dumper has been added, but Template Haskell stuff has not been yet.

darcs-hash:20060102032614-29b23-e2da9f2e63b3db6d055c6ce432842b54c38a398f.gz

6 years agoversion_1.1_started
golubovsky [Tue, 20 Dec 2005 04:04:46 +0000]
version_1.1_started

Imported the Version 1.0 tree to start working on the Version 1.1
In this version, XML dumper will be added.

darcs-hash:20051220040446-29b23-1287d5761e5482aa76a8a5929236e7bcbf92b075.gz

6 years agopatchlevel_2 1.0pl2
golubovsky [Tue, 18 Oct 2005 03:14:52 +0000]
patchlevel_2

Correct support for C arrays added. Now arrays of any dimensions
are represented as pointers to their element type (in fact, the first
element, with all zero indices). For structures'e members which are arrays,
an interface is provided to obtain array dimensions as a list of Intehers ([Int]).

Refactored code handling structures: now information about each structure type and
structure members is represented as a Data structure (one step towards future
versions of HSFFIG where arbitrary manipulation by the collection of C declarations
will be allowed).

darcs-hash:20051018031452-29b23-c87eaf67fd838feb8bf88bdd6f00cdfb8a515675.gz

6 years agopatchlevel_1 1.0pl1
golubovsky [Sun, 18 Sep 2005 11:26:51 +0000]
patchlevel_1

The type alias resolution mechanism is corrected, so it looks deep enough
in the simplified declarations tree. As result of this patch, the following
construction:

typedef struct X {
   int bla;
} Y;

int (*fun1(Y *, int))(Y *);

is now converted correctly: without this patch the first occurrence of
`Y' (within the function pointer parameter list) was not mapped into its
original type (struct X).

darcs-hash:20050918112651-29b23-7b94e1938de65663090f5861c81bba28d4d07912.gz

6 years agoRelease-1.0 1.0
golubovsky [Sun, 31 Jul 2005 02:43:17 +0000]
Release-1.0

HSFFIG has been released as a Cabalized package.

darcs-hash:20050731024317-29b23-55fcdb3b0174c3923b5d824fbb3962484d996755.gz

6 years agocustom_template
golubovsky [Sun, 24 Jul 2005 19:05:56 +0000]
custom_template

HSFFIG requires custom template for hsc2hs. While it is possible to install it
with the package, it is inconvenient to remember path to it.
Since the template is just an include file, it may be placed
in the very beginning of the generated .hsc file. hsc2hs will be
run with -t /dev/null then.
To hardcode the template in hsffig, a short program, mkhstmpl.hs is compiled
and run prior to package build. It reads the template from the distribution's include directory
and creates a Haskell module Template.hs which contains the only function
which outputs the file text into standard output.

darcs-hash:20050724190556-29b23-2dffda511f1676398b5fa7763f4c955d542d529d.gz

6 years agolibrary_class
golubovsky [Sun, 24 Jul 2005 07:21:06 +0000]
library_class

Removed unneeded lines commented out earlier.

darcs-hash:20050724072106-29b23-0edf39de213a45d8698ef4df5301cda80c56d2a8.gz

6 years agolibrary_class
golubovsky [Sun, 24 Jul 2005 07:18:46 +0000]
library_class

Previous development version of HSFFIG included the field access class
into each generated .hsc file. Now that HSFFIG is packaged, it is easier
to specify a library and place the class there.

darcs-hash:20050724071846-29b23-d5d3145f8fe00528d810de89e7994fec3d9e24e7.gz

6 years agocabal_setup_fix
golubovsky [Sun, 24 Jul 2005 06:13:19 +0000]
cabal_setup_fix

Small fix applied to Distribution/Simple/Install.hs to copy executables
correctly: the original code did not append the HsSourceDir for executables
to the build prefix.

darcs-hash:20050724061319-29b23-c7d8773fce6b2d8e48a84002ab1b267711c7e9e0.gz

6 years agoprograms_source_moved
golubovsky [Sun, 24 Jul 2005 05:04:21 +0000]
programs_source_moved

All Haskell and Alex source files moved from the previous
development directory.

darcs-hash:20050724050421-29b23-2338e82e9bd59496260abed364d49bdfe5171d21.gz

6 years agocabal_file
golubovsky [Sun, 24 Jul 2005 05:00:24 +0000]
cabal_file

The .cabal file was created.

darcs-hash:20050724050024-29b23-ea704974b15fc218efbaf92f7ebff591174f55a1.gz

6 years agoadd_makefile
golubovsky [Sun, 24 Jul 2005 03:34:33 +0000]
add_makefile

darcs-hash:20050724033433-29b23-3a9d31d42dca27a5e7860e53ee2d91fff07c8fc0.gz

6 years agocabal_files
golubovsky [Sun, 24 Jul 2005 03:27:17 +0000]
cabal_files

Since not every Haskell installation may have Cabal available,
the minimal Cabal setup program is included. To be used for
package building it must be compiled and built first.

darcs-hash:20050724032717-29b23-a7115ce09ecdef77206e45e58c944861e944e6b2.gz

This page took 0.03503 seconds and 4 git commands to generate.