This commit is contained in:
parent
6f7d3bf655
commit
9cd0fa3f3a
@ -1,6 +1,6 @@
|
||||
--- Main.java.orig 2003-03-26 11:47:18.000000000 +0100
|
||||
+++ Main.java 2003-03-26 11:47:21.000000000 +0100
|
||||
@@ -1072,8 +1072,15 @@
|
||||
--- Main.java.orig 2000-09-06 16:09:47.000000000 +0200
|
||||
+++ Main.java 2024-02-21 16:03:00.139049849 +0100
|
||||
@@ -1068,8 +1068,15 @@
|
||||
// Added 6/24/98 Raimondas Lencevicius
|
||||
// May be made more efficient by replacing String operations
|
||||
// Assumes correctly formed input String. Performs no error checking
|
||||
@ -16,7 +16,7 @@
|
||||
m_outstream.println("\t\tint colonIndex = -1;");
|
||||
m_outstream.println("\t\tString lengthString;");
|
||||
m_outstream.println("\t\tint sequenceLength = 0;");
|
||||
@@ -1216,13 +1223,23 @@
|
||||
@@ -1212,13 +1219,23 @@
|
||||
int[] yy_cmap = new int[m_spec.m_ccls_map.length];
|
||||
for (i = 0; i < m_spec.m_ccls_map.length; ++i)
|
||||
yy_cmap[i] = m_spec.m_col_map[m_spec.m_ccls_map[i]];
|
||||
@ -40,8 +40,8 @@
|
||||
emit_table_as_string(new int[][] { m_spec.m_row_map });
|
||||
m_outstream.println(")[0];");
|
||||
m_outstream.println();
|
||||
@@ -1237,8 +1254,14 @@
|
||||
CUtility.ASSERT(dtrans.m_dtrans.length==m_spec.m_dtrans_ncols);
|
||||
@@ -1233,8 +1250,14 @@
|
||||
CUtility.assert(dtrans.m_dtrans.length==m_spec.m_dtrans_ncols);
|
||||
yy_nxt[elem] = dtrans.m_dtrans;
|
||||
}
|
||||
+ if (Main.staticFlag) {
|
||||
@ -55,7 +55,7 @@
|
||||
emit_table_as_string(yy_nxt);
|
||||
m_outstream.println(");");
|
||||
m_outstream.println();
|
||||
@@ -3825,26 +3848,43 @@
|
||||
@@ -3821,18 +3844,35 @@
|
||||
/***************************************************************
|
||||
Function: main
|
||||
**************************************************************/
|
||||
@ -79,7 +79,6 @@
|
||||
- {
|
||||
- System.out.println("Usage: JLex.Main <filename>");
|
||||
- return;
|
||||
- }
|
||||
+ // Parse options starting with '-'
|
||||
+ for (i = 0; i < arg.length && arg[i].charAt(0) == '-'; i++) {
|
||||
+ if (arg[i].equals("-static")) {
|
||||
@ -93,10 +92,10 @@
|
||||
+ // Enough arguments left ?
|
||||
+ if (arg.length - i < 1) {
|
||||
+ printUsage();
|
||||
+ }
|
||||
}
|
||||
|
||||
/* Note: For debuging, it may be helpful to remove the try/catch
|
||||
block and permit the Exception to propagate to the top level.
|
||||
@@ -3840,7 +3880,7 @@
|
||||
This gives more information. */
|
||||
try
|
||||
{
|
||||
|
@ -2,6 +2,9 @@
|
||||
Wed Feb 21 12:51:43 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Use %patch -P N instead of deprecated %patchN.
|
||||
- Modified patch:
|
||||
* jlex-1.2.6.static.patch
|
||||
+ rediff to changed Main.java
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 18 16:44:59 UTC 2022 - Fridrich Strba <fstrba@suse.com>
|
||||
|
Loading…
Reference in New Issue
Block a user