Powered by Apache

CVS log for OpenXM_contrib2/asir2000/builtin/file.c

[BACK] Up to [local] / OpenXM_contrib2 / asir2000 / builtin

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.38 / (download) - annotate - [select for diffs], Thu Mar 29 01:32:50 2018 UTC (6 years, 7 months ago) by noro
Branch: MAIN
CVS Tags: HEAD
Changes since 1.37: +434 -434 lines
Diff to previous 1.37 (colored) to selected 1.13 (colored)

Changed a tab to two space charaters.

Revision 1.37 / (download) - annotate - [select for diffs], Sat Sep 2 04:04:41 2017 UTC (7 years, 2 months ago) by ohara
Branch: MAIN
Changes since 1.36: +25 -13 lines
Diff to previous 1.36 (colored) to selected 1.13 (colored)

Purged strrchr.

Revision 1.36 / (download) - annotate - [select for diffs], Mon Jun 12 06:22:50 2017 UTC (7 years, 5 months ago) by noro
Branch: MAIN
Changes since 1.35: +7 -1 lines
Diff to previous 1.35 (colored) to selected 1.13 (colored)

\r\n are replaced with \n in get_line().

Revision 1.35 / (download) - annotate - [select for diffs], Sat Jun 10 05:32:24 2017 UTC (7 years, 5 months ago) by noro
Branch: MAIN
Changes since 1.34: +2 -2 lines
Diff to previous 1.34 (colored) to selected 1.13 (colored)

Changed mode for opening file by open_file(): "r" -> "rb".

Revision 1.34 / (download) - annotate - [select for diffs], Fri Aug 14 13:51:54 2015 UTC (9 years, 3 months ago) by fujimoto
Branch: MAIN
Changes since 1.33: +6 -6 lines
Diff to previous 1.33 (colored) to selected 1.13 (colored)

Removed unneeded 'defined(__MINGW64__)'.

Revision 1.33 / (download) - annotate - [select for diffs], Thu Aug 6 10:01:51 2015 UTC (9 years, 3 months ago) by fujimoto
Branch: MAIN
Changes since 1.32: +6 -6 lines
Diff to previous 1.32 (colored) to selected 1.13 (colored)

Added defined(__MINGW32__) and defined(__MINGW64__) for mingw32/mingw64.

Revision 1.32 / (download) - annotate - [select for diffs], Sun Mar 15 19:31:30 2015 UTC (9 years, 7 months ago) by ohara
Branch: MAIN
Changes since 1.31: +3 -1 lines
Diff to previous 1.31 (colored) to selected 1.13 (colored)

Add some declarations.

Revision 1.31 / (download) - annotate - [select for diffs], Mon May 12 02:27:49 2014 UTC (10 years, 6 months ago) by ohara
Branch: MAIN
CVS Tags: RELEASE_1_3_1_13b
Changes since 1.30: +1 -23 lines
Diff to previous 1.30 (colored) to selected 1.13 (colored)

Removed get_asirloadpath().

Revision 1.30 / (download) - annotate - [select for diffs], Wed Apr 2 22:08:29 2014 UTC (10 years, 7 months ago) by ohara
Branch: MAIN
Changes since 1.29: +23 -1 lines
Diff to previous 1.29 (colored) to selected 1.13 (colored)

1. Changed search path in Windows.
2. Add a builtin function get_asirloadpath().

Revision 1.29 / (download) - annotate - [select for diffs], Tue Aug 20 14:22:33 2013 UTC (11 years, 2 months ago) by ohara
Branch: MAIN
Changes since 1.28: +5 -5 lines
Diff to previous 1.28 (colored) to selected 1.13 (colored)

Fixed get_rootdir() for Windows system.

Revision 1.28 / (download) - annotate - [select for diffs], Fri Feb 15 07:05:49 2013 UTC (11 years, 8 months ago) by noro
Branch: MAIN
Changes since 1.27: +15 -1 lines
Diff to previous 1.27 (colored) to selected 1.13 (colored)

Added getpid() which returns the process id.

Revision 1.27 / (download) - annotate - [select for diffs], Fri Mar 13 04:45:15 2009 UTC (15 years, 8 months ago) by ohara
Branch: MAIN
CVS Tags: R_1_3_1-2
Changes since 1.26: +4 -7 lines
Diff to previous 1.26 (colored) to selected 1.13 (colored)

Fixed directives as follows:
defined(VISUAL) && defined(DES_ENC) ==> defined(DES_ENC)

Revision 1.26 / (download) - annotate - [select for diffs], Wed Nov 19 13:12:43 2008 UTC (15 years, 11 months ago) by ohara
Branch: MAIN
CVS Tags: RELEASE_1_2_3_12
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (colored) to selected 1.13 (colored)

fflush is removed in Pfprintf().

Revision 1.25 / (download) - annotate - [select for diffs], Tue Nov 18 09:17:31 2008 UTC (15 years, 11 months ago) by ohara
Branch: MAIN
Changes since 1.24: +22 -1 lines
Diff to previous 1.24 (colored) to selected 1.13 (colored)

Add a function "fprintf".

Example:
[0] Fd=open_file("hoge.txt","w");
[1] fprintf(Fd,"Poly=%a\n",(x-1)^3);
[2] close_file(Fd);

Revision 1.24 / (download) - annotate - [select for diffs], Wed Nov 8 07:34:33 2006 UTC (18 years ago) by noro
Branch: MAIN
CVS Tags: DEB_REL_1_2_3-9
Changes since 1.23: +40 -1 lines
Diff to previous 1.23 (colored) to selected 1.13 (colored)

Added get_word() and put_word() for reading and writing 4 byte int from/to
a file.

Revision 1.23 / (download) - annotate - [select for diffs], Wed Sep 13 02:26:13 2006 UTC (18 years, 2 months ago) by noro
Branch: MAIN
Changes since 1.22: +2 -1 lines
Diff to previous 1.22 (colored) to selected 1.13 (colored)

Fixed a bug in load() in Windows.

Revision 1.22 / (download) - annotate - [select for diffs], Wed Feb 8 02:11:19 2006 UTC (18 years, 9 months ago) by noro
Branch: MAIN
CVS Tags: KNOPPIX_2006
Changes since 1.21: +22 -47 lines
Diff to previous 1.21 (colored) to selected 1.13 (colored)

Corrected the behavior of load operation.
(CAUTION: may contain critical bugs.)

Revision 1.21 / (download) - annotate - [select for diffs], Fri Feb 3 03:55:18 2006 UTC (18 years, 9 months ago) by noro
Branch: MAIN
Changes since 1.20: +35 -3 lines
Diff to previous 1.20 (colored) to selected 1.13 (colored)

Added a function exec(filename), which is similar to load(), but it
immediately execute statements in the file. (load() simply redirects
the input stream.)

Adde a function import(filename), which is a variant of exec().
It remembers the name of the executed file and it does not execute
the same file twice, unless an option '|reimport=1' is supplied.

Revision 1.20 / (download) - annotate - [select for diffs], Mon Apr 26 05:28:40 2004 UTC (20 years, 6 months ago) by noro
Branch: MAIN
CVS Tags: RELEASE_1_2_3
Changes since 1.19: +19 -9 lines
Diff to previous 1.19 (colored) to selected 1.13 (colored)

put_byte() can now handle STRING and TB as its argument.

Revision 1.19 / (download) - annotate - [select for diffs], Wed Nov 12 07:48:50 2003 UTC (21 years ago) by noro
Branch: MAIN
CVS Tags: RELEASE_1_2_2_KNOPPIX_b, RELEASE_1_2_2_KNOPPIX
Changes since 1.18: +5 -5 lines
Diff to previous 1.18 (colored) to selected 1.13 (colored)

Added a function exec(), which loads and executes a file (experimental).

Revision 1.18 / (download) - annotate - [select for diffs], Sat Nov 1 23:58:43 2003 UTC (21 years ago) by takayama
Branch: MAIN
Changes since 1.17: +11 -3 lines
Diff to previous 1.17 (colored) to selected 1.13 (colored)

The  files "stdin", "stdout", "stderr" can be opened
by open_file("unix://stdin"), open_file("unix://stdout");
open_file("unix://stderr").

Revision 1.17 / (download) - annotate - [select for diffs], Fri Feb 14 22:29:07 2003 UTC (21 years, 9 months ago) by ohara
Branch: MAIN
CVS Tags: RELEASE_1_2_2
Changes since 1.16: +4 -4 lines
Diff to previous 1.16 (colored) to selected 1.13 (colored)

Changing some MACROs and preprocessor directives:
for example, #if PARI was replaced by #if defined(PARI).

Revision 1.16 / (download) - annotate - [select for diffs], Tue Oct 1 09:58:48 2002 UTC (22 years, 1 month ago) by noro
Branch: MAIN
Changes since 1.15: +3 -1 lines
Diff to previous 1.15 (colored) to selected 1.13 (colored)

Modified the project file (windows only).

Revision 1.15 / (download) - annotate - [select for diffs], Tue Oct 9 01:36:05 2001 UTC (23 years, 1 month ago) by noro
Branch: MAIN
CVS Tags: RELEASE_1_2_1
Changes since 1.14: +36 -89 lines
Diff to previous 1.14 (colored) to selected 1.13 (colored)

Conversion to ANSI style (not completed yet).

Revision 1.14 / (download) - annotate - [select for diffs], Mon Aug 20 09:03:24 2001 UTC (23 years, 2 months ago) by noro
Branch: MAIN
Changes since 1.13: +19 -1 lines
Diff to previous 1.13 (colored)

1. load_exec(FileName) : load and execute FileName. It can be used for
   demand loading.
   Caution : load_exec() cannot be nested. load() should be used within
   a load_exec() execution.
   XXX : there is a bug on printing of evaluted value containing load_exec().
2. Arithimetics of quoted objects has been implemented.

Revision 1.13 / (download) - annotate - [selected], Wed Mar 21 23:49:34 2001 UTC (23 years, 7 months ago) by noro
Branch: MAIN
Changes since 1.12: +28 -5 lines
Diff to previous 1.12 (colored)

Added a new function put_byte().
Updated the version number.

Revision 1.12 / (download) - annotate - [select for diffs], Wed Dec 6 00:54:09 2000 UTC (23 years, 11 months ago) by noro
Branch: MAIN
Changes since 1.11: +10 -2 lines
Diff to previous 1.11 (colored) to selected 1.13 (colored)

ox_launch() now works correctly even if the registry is broken.

Revision 1.11 / (download) - annotate - [select for diffs], Tue Dec 5 01:24:50 2000 UTC (23 years, 11 months ago) by noro
Branch: MAIN
Changes since 1.10: +1 -34 lines
Diff to previous 1.10 (colored) to selected 1.13 (colored)

Removed ugly '#if defined(THINK_C)'.

Revision 1.10 / (download) - annotate - [select for diffs], Mon Nov 13 01:48:12 2000 UTC (24 years ago) by noro
Branch: MAIN
Changes since 1.9: +25 -2 lines
Diff to previous 1.9 (colored) to selected 1.13 (colored)

get_line() now reads a line from stdin if no arguments are supplied.
Added purge_stdin() for clearing the input buffer before calling get_line().

Revision 1.9 / (download) - annotate - [select for diffs], Fri Nov 10 08:28:52 2000 UTC (24 years ago) by noro
Branch: MAIN
Changes since 1.8: +16 -1 lines
Diff to previous 1.8 (colored) to selected 1.13 (colored)

load() in Windows version now uses the content of an environment TMP
as the temporary directory.

Revision 1.8 / (download) - annotate - [select for diffs], Wed Nov 8 08:44:13 2000 UTC (24 years ago) by noro
Branch: MAIN
Changes since 1.7: +25 -4 lines
Diff to previous 1.7 (colored) to selected 1.13 (colored)

Added get_byte(Id).
get_byte(Id) read a byte from an opened file and returns it as a
non negative integer. It returns -1 upon EOF.

/* an example */

extern HexTab$
HexTab=newvect(16,
	["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"])$

def toHex(N)
{
	return HexTab[ishift(N,4)]+HexTab[iand(N,0xf)];
}

def dump(FileName) {
     Fp = open_file(FileName);
     if (Fp < 0) error("Open failed.");
	 for ( I = 1; (C=get_byte(Fp)) >= 0; I++ ) {
		print(toHex(C),0);
		if ( !(I%16) )
			print("");
		else
			print(" ",0);
     }
	/* XXX */
	if ( (I-1)%16 )
		print("");
}

end$

Revision 1.7 / (download) - annotate - [select for diffs], Wed Nov 8 06:21:17 2000 UTC (24 years ago) by noro
Branch: MAIN
Changes since 1.6: +39 -2 lines
Diff to previous 1.6 (colored) to selected 1.13 (colored)

Several fixes for the Windows version.
A very very dirty hack to use ox_plot without the log window.

Revision 1.6 / (download) - annotate - [select for diffs], Fri Aug 25 08:06:19 2000 UTC (24 years, 2 months ago) by noro
Branch: MAIN
CVS Tags: maekawa-ipv6, STABLE_1_1_3, RELEASE_1_1_3
Changes since 1.5: +5 -1 lines
Diff to previous 1.5 (colored) to selected 1.13 (colored)

Needed more corrections concerned with DES.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Aug 22 05:03:57 2000 UTC (24 years, 2 months ago) by noro
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored) to selected 1.13 (colored)

Sorry, the email address in the license agreement was incorrect.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Aug 21 08:31:19 2000 UTC (24 years, 2 months ago) by noro
Branch: MAIN
Changes since 1.3: +49 -1 lines
Diff to previous 1.3 (colored) to selected 1.13 (colored)

Added copyright notice and license agreement. It is mandatory to distribute
Risa/Asir source codes freely.

Revision 1.3 / (download) - annotate - [select for diffs], Thu Mar 2 07:16:09 2000 UTC (24 years, 8 months ago) by noro
Branch: MAIN
CVS Tags: RELEASE_1_1_2
Changes since 1.2: +85 -1 lines
Diff to previous 1.2 (colored) to selected 1.13 (colored)

Added file manipulation functions : open_file(), get_line(), close_file().
Added string manipulation functions : str_len(), str_chr(), sub_str().

Revision 1.2 / (download) - annotate - [select for diffs], Tue Feb 8 04:47:09 2000 UTC (24 years, 9 months ago) by noro
Branch: MAIN
Changes since 1.1: +4 -1 lines
Diff to previous 1.1 (colored) to selected 1.13 (colored)

Cleaned up source files for creating libasir*.a with various
configurations.

Added new targets in src/asir2000/Makefile

install-lib-with-pari : libasir_pari.a -> OpenXM/lib
install-lib-small : libasir.a -> OpenXM/lib
install : asir libasir_pari_X.a libasir_gc.a -> OpenXM/lib

libasir_pari_X.a requires libpari.a and X11 libraries.
libasir_pari.a requires libpari.a.
libasir.a requires nothing.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Fri Dec 3 07:39:07 1999 UTC (24 years, 11 months ago) by noro
Branch: NORO
CVS Tags: RELEASE_20000124, ASIR2000
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored) to selected 1.13 (colored)

Imported asir2000 as OpenXM_contrib2/asir2000.

Revision 1.1 / (download) - annotate - [select for diffs], Fri Dec 3 07:39:07 1999 UTC (24 years, 11 months ago) by noro
Branch: MAIN
Diff to selected 1.13 (colored)

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>