freebsd-ports/devel/asdlgen/files/patch-src_java_asts_stdprims_g.java
Edwin Groothuis 6ec7d6368c New port: devel/asdlgen generate serializers for C,C++,Haskell,Icon,Java,ML
asdlGen generates data structure and serializer code from ASDL
	specifications [1]. It is especially helpful for exchanging
	tree like data structures between different programming languages.
	Currently C, C++, Haskell, Java, Icon, OCaml and SML are supported.
	Although the asdlGen project itself seems no longer actively
	maintained, ASDL is "alive" as it is used (at least) in the
	Moby [2] and Python [3,4] compilers.

	The port optionally installs a simple usage example [5] for all
	seven programming languages. I developed it primarily to test the
	port, but it could be helpful to users of asdlGen to get a quicker
	start, especially if a less familiar programming language is
	involved in their project. Reviewers/committers can easily make
	use of it via the "test-demo" target.

PR:		ports/117703
Submitted by:	Johannes 5 Joemann <joemann@beefree.free.de>
2008-05-24 06:39:32 +00:00

28 lines
857 B
Java

--- src/java/asts/stdprims/g.java.orig 1999-09-13 00:27:02.000000000 +0200
+++ src/java/asts/stdprims/g.java 2007-10-11 19:12:08.000000000 +0200
@@ -1,13 +1,13 @@
-package asts.StdPrims;
+package asts.stdprims;
import java.io.*;
-final public class g extends asts.StdPkl.PklJava {
+final public class g extends asts.stdpkl.PklJava {
public static void write_java_lang_String(String x,OutputStream s) {
int sz = x.length();
int i = 0;
try {
- asts.StdPkl.g.write_tag(sz,s);
+ asts.stdpkl.g.write_tag(sz,s);
while(i < sz) {
s.write((byte)x.charAt(i++));
}
@@ -17,7 +17,7 @@
}
public static String read_java_lang_String(InputStream s) {
- int sz = asts.StdPkl.g.read_tag(s);
+ int sz = asts.stdpkl.g.read_tag(s);
StringBuffer sb = new StringBuffer(sz);
try {
while(sz > 0) {