Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
  • 1 commit
  • 8 files changed
  • 0 commit comments
  • 1 contributor
View
18 najitool_GUI_0.3.0.0.src/naji_gui.src/najbatch.ec
@@ -9,6 +9,7 @@ import "naji_ttt"
import "najicalc"
import "najihelp"
import "najiform"
+import "najimain"
#include "naji_gui.eh"
class tab_batch : Tab
@@ -3638,6 +3639,9 @@ class tab_batch : Tab
return true;
}
+ else if (! strcmp(najitool_command, "bytsplit") )
+ bytsplit(row.string, atoi(parameter_1_string));
+
else if (! strcmp(najitool_command, "calc") )
{
najicalc naji_calc {};
@@ -3840,6 +3844,9 @@ class tab_batch : Tab
notbatch();
return true;
}
+
+ else if (! strcmp(najitool_command, "gbsplit") )
+ gbsplit(row.string, atoi(parameter_1_string));
else if (! strcmp(najitool_command, "genlic") )
naji_genlic(processing_output_file_path);
@@ -3919,6 +3926,8 @@ class tab_batch : Tab
else if (!strcmp(najitool_command, "istreml"))
istreml(parameter_1_string, row.string, processing_output_file_path);
+ else if (! strcmp(najitool_command, "kbsplit") )
+ kbsplit(row.string, atoi(parameter_1_string));
else if (! strcmp(najitool_command, "kitten") )
kitten(row.string);
@@ -4004,12 +4013,21 @@ class tab_batch : Tab
else if (! strcmp(najitool_command, "maxxnewl") )
maxxnewl(row.string, processing_output_file_path, atoi(parameter_1_string));
+ else if (! strcmp(najitool_command, "mbsplit") )
+ mbsplit(row.string, atoi(parameter_1_string));
+
else if (! strcmp(najitool_command, "mergline") )
{
notbatch();
return true;
}
+ else if (! strcmp(najitool_command, "mjoin") )
+ {
+ notbatch();
+ return true;
+ }
+
else if (! strcmp(najitool_command, "mkpatch") )
{
notbatch();
View
4 najitool_GUI_0.3.0.0.src/naji_gui.src/naji_gui.eh
@@ -90,7 +90,7 @@ extern char * mp3info (char *name);
#define NAJITOOL_MAX_DATE_TIME 13
#define NAJITOOL_MAX_GENERATE 20
#define NAJITOOL_MAX_CONVERT 12
-#define NAJITOOL_MAX_FILTER 45
+#define NAJITOOL_MAX_FILTER 50
#define NAJITOOL_MAX_FORMAT 39
#define NAJITOOL_MAX_STATUS 23
#define NAJITOOL_MAX_IMAGES 2
@@ -99,7 +99,7 @@ extern char * mp3info (char *name);
#define NAJITOOL_MAX_EDIT 4
#define NAJITOOL_MAX_MISC 24
#define NAJITOOL_MAX_WEB 11
-#define NAJITOOL_MAX_COMMANDS 215
+#define NAJITOOL_MAX_COMMANDS 220
#define NAJITOOL_MAX_CATEGORIES 16
#define naji_max(a,b) ( ( (a) > (b) ) ? (a):(b) )
View
298 najitool_GUI_0.3.0.0.src/naji_gui.src/najicmds.ec
@@ -552,8 +552,10 @@ const char * najitool_valid_convert[NAJITOOL_MAX_CONVERT] =
const char * najitool_valid_filter[NAJITOOL_MAX_FILTER] =
{
+
"bin2text",
"bremline",
+ "bytsplit",
"chchar",
"chchars",
"chstr",
@@ -564,8 +566,12 @@ const char * najitool_valid_filter[NAJITOOL_MAX_FILTER] =
"filechop",
"filejoin",
"flipcopy",
+ "gbsplit",
+ "kbsplit",
"linesnip",
+ "mbsplit",
"mergline",
+ "mjoin",
"n2ch",
"n2str",
"onlalnum",
@@ -760,6 +766,7 @@ const char * najitool_valid_commands[NAJITOOL_MAX_COMMANDS] =
"blanka",
"bremline",
"bugun",
+ "bytsplit",
"calc",
"cat_head",
"cat_tail",
@@ -811,6 +818,7 @@ const char * najitool_valid_commands[NAJITOOL_MAX_COMMANDS] =
"freverse",
"fswpcase",
"ftothe",
+ "gbsplit",
"genhelp",
"genlic",
"getlinks",
@@ -831,6 +839,7 @@ const char * najitool_valid_commands[NAJITOOL_MAX_COMMANDS] =
"howline",
"istrael",
"istreml",
+ "kbsplit",
"kitten",
"lcharvar",
"lcvfiles",
@@ -850,7 +859,9 @@ const char * najitool_valid_commands[NAJITOOL_MAX_COMMANDS] =
"makarray",
"mathgame",
"maxxnewl",
+ "mbsplit",
"mergline",
+ "mjoin",
"mkpatch",
"month",
"mp3split",
@@ -9110,3 +9121,290 @@ void replacel(char *namein, char *nameout, char *str, unsigned long line_number)
najinclose();
najoutclose();
}
+
+
+void mjoin(char *namein_original_filename, char *nameout_joined_output_file)
+{
+ int a;
+ unsigned long peice;
+ char mjoin_filename_buffer[4096];
+
+ peice = 0;
+ najout(nameout_joined_output_file);
+
+
+ while (1)
+ {
+
+
+ sprintf(mjoin_filename_buffer, "%s.%lu", namein_original_filename, peice);
+ najin(mjoin_filename_buffer);
+
+
+ while (1)
+ {
+ a = fgetc(naji_input);
+
+ if (a == EOF)
+ break;
+
+ fputc(a, naji_output);
+ }
+
+
+ najinclose();
+
+ peice++;
+ }
+
+
+}
+
+
+void bytsplit(char *namein, unsigned long peice_size)
+{
+ int a;
+ char bytsplit_filename_buffer[4096];
+ unsigned long size_reached;
+ unsigned long peice;
+
+
+ size_reached = 0;
+ peice = 0;
+
+ najin(namein);
+
+
+
+ while (1)
+ {
+
+
+ sprintf(bytsplit_filename_buffer, "%s.%lu", namein, peice);
+ najout(bytsplit_filename_buffer);
+
+
+ while (1)
+ {
+
+
+ a = fgetc(naji_input);
+
+ if (a == EOF)
+ break;
+
+ fputc(a, naji_output);
+
+ size_reached++;
+
+ if (size_reached == peice_size)
+ break;
+
+
+ }
+
+
+ najoutclose();
+
+ if (a == EOF)
+ break;
+
+ peice++;
+ size_reached = 0;
+ }
+
+
+
+}
+
+
+
+
+void kbsplit(char *namein, unsigned long peice_size)
+{
+ int a;
+ unsigned long i;
+ unsigned long size_reached;
+ unsigned long peice;
+ char kbsplit_filename_buffer[4096];
+
+
+ size_reached = 0;
+ peice = 0;
+
+ najin(namein);
+
+
+ while (1)
+ {
+
+
+ sprintf(kbsplit_filename_buffer, "%s.%lu", namein, peice);
+ najout(kbsplit_filename_buffer);
+
+
+ while (1)
+ {
+
+ for (i=0; i<1024; i++)
+ {
+
+ a = fgetc(naji_input);
+
+ if (a == EOF)
+ break;
+
+ fputc(a, naji_output);
+
+ }
+
+ if (a == EOF)
+ break;
+
+ size_reached++;
+
+ if (size_reached == peice_size)
+ break;
+
+
+ }
+
+
+ najoutclose();
+
+ if (a == EOF)
+ break;
+
+ peice++;
+ size_reached = 0;
+ }
+
+
+
+}
+
+
+
+
+void mbsplit(char *namein, unsigned long peice_size)
+{
+ int a;
+ unsigned long i;
+ unsigned long size_reached;
+ unsigned long peice;
+ char mbsplit_filename_buffer[4096];
+
+ size_reached = 0;
+ peice = 0;
+
+ najin(namein);
+
+ while (1)
+ {
+
+
+ sprintf(mbsplit_filename_buffer, "%s.%lu", namein, peice);
+ najout(mbsplit_filename_buffer);
+
+
+ while (1)
+ {
+
+ for (i=0; i<1048576; i++)
+ {
+
+ a = fgetc(naji_input);
+
+ if (a == EOF)
+ break;
+
+ fputc(a, naji_output);
+
+ }
+
+ if (a == EOF)
+ break;
+
+ size_reached++;
+
+ if (size_reached == peice_size)
+ break;
+
+
+ }
+
+
+ najoutclose();
+
+ if (a == EOF)
+ break;
+
+ peice++;
+ size_reached = 0;
+ }
+
+
+
+}
+
+
+
+
+void gbsplit(char *namein, unsigned long peice_size)
+{
+ int a;
+ unsigned long i;
+ unsigned long size_reached;
+ unsigned long peice;
+ char gbsplit_filename_buffer[4096];
+
+ size_reached = 0;
+ peice = 0;
+
+ najin(namein);
+
+ while (1)
+ {
+ sprintf(gbsplit_filename_buffer, "%s.%lu", namein, peice);
+ najout(gbsplit_filename_buffer);
+
+
+ while (1)
+ {
+
+ for (i=0; i<1073741824; i++)
+ {
+
+ a = fgetc(naji_input);
+
+ if (a == EOF)
+ break;
+
+ fputc(a, naji_output);
+
+ }
+
+ if (a == EOF)
+ break;
+
+ size_reached++;
+
+ if (size_reached == peice_size)
+ break;
+
+
+ }
+
+
+ najoutclose();
+
+ if (a == EOF)
+ break;
+
+ peice++;
+ size_reached = 0;
+ }
+
+
+
+}
View
230 najitool_GUI_0.3.0.0.src/naji_gui.src/najihelp.ec
@@ -792,6 +792,53 @@ najihelp helpitems[NAJITOOL_MAX_COMMANDS] =
},
+{
+ "bytsplit",
+ false, // in file 1 but
+ false, // in file 1 box
+
+ true, // in file 2 but
+ true, // in file 2 box
+
+ true, // in folder but
+ true, // in folder box
+
+ true, // out file 1 but
+ true, // out file 1 box
+
+ true, // out file 2 but
+ true, // out file 2 box
+
+ true, // out folder but
+ true, // out folder box
+
+ false, // param 1 label
+ false, // param 1 box
+
+ true, // param 2 label
+ true, // param 2 box
+
+ "Splits the file you specify into the size of pieces you specify in bytes.\n"
+ "The output file is the original filename with numbered extensions e.g.\n"
+ "example.big.0, example.big.1, example.big.2...\n"
+ "You can use mjoin to join the files.\n"
+ "Specify input file and size of peices.",
+
+
+ "Peice Size:",
+ "Parameter 2:",
+
+ "Bayt olarak belirttiginiz parcalar boyutunda, belirtilen dosyayi boler.\n"
+ "Yazilan dosyalar orijinal dosya isimdir numarali dosya uzantisi ile.\n"
+ "Yani, example.big.0, example.big.1, example.big.2...\n"
+ "Dosyalari birlestirmek icin mjoin kullanabilirsiniz.\n"
+ "Okunan dosyayi ve parcalarin boyutlarini belirt.",
+
+ "Parca Boyut:",
+ "Parametre 2:"
+ },
+
+
{
"calc",
@@ -2885,6 +2932,51 @@ najihelp helpitems[NAJITOOL_MAX_COMMANDS] =
},
+{
+ "gbsplit",
+ false, // in file 1 but
+ false, // in file 1 box
+
+ true, // in file 2 but
+ true, // in file 2 box
+
+ true, // in folder but
+ true, // in folder box
+
+ true, // out file 1 but
+ true, // out file 1 box
+
+ true, // out file 2 but
+ true, // out file 2 box
+
+ true, // out folder but
+ true, // out folder box
+
+ false, // param 1 label
+ false, // param 1 box
+
+ true, // param 2 label
+ true, // param 2 box
+ "Splits the file you specify into the size of pieces you specify in gigabytes.\n"
+ "The output file is the original filename with numbered extensions e.g.\n"
+ "example.big.0, example.big.1, example.big.2...\n"
+ "You can use mjoin to join the files.\n"
+ "Specify input file and size of peices.",
+
+ "Peice Size:",
+ "Parameter 2:",
+
+ "Gigabayt olarak belirttiginiz parcalar boyutunda, belirtilen dosyayi boler.\n"
+ "Yazilan dosyalar orijinal dosya isimdir numarali dosya uzantisi ile.\n"
+ "Yani, example.big.0, example.big.1, example.big.2...\n"
+ "Dosyalari birlestirmek icin mjoin kullanabilirsiniz.\n"
+ "Okunan dosyayi ve parcalarin boyutlarini belirt.",
+
+ "Parca Boyut:",
+ "Parametre 2:"
+ },
+
+
{
"genhelp",
@@ -3660,7 +3752,51 @@ najihelp helpitems[NAJITOOL_MAX_COMMANDS] =
"Parametre 2:"
},
+{
+ "kbsplit",
+ false, // in file 1 but
+ false, // in file 1 box
+
+ true, // in file 2 but
+ true, // in file 2 box
+
+ true, // in folder but
+ true, // in folder box
+
+ true, // out file 1 but
+ true, // out file 1 box
+
+ true, // out file 2 but
+ true, // out file 2 box
+
+ true, // out folder but
+ true, // out folder box
+
+ false, // param 1 label
+ false, // param 1 box
+
+ true, // param 2 label
+ true, // param 2 box
+
+ "Splits the file you specify into the size of pieces you specify in kilobytes.\n"
+ "The output file is the original filename with numbered extensions e.g.\n"
+ "example.big.0, example.big.1, example.big.2...\n"
+ "You can use mjoin to join the files.\n"
+ "Specify input file and size of peices.",
+
+ "Peice Size:",
+ "Parameter 2:",
+ "Kilobayt olarak belirttiginiz parcalar boyutunda, belirtilen dosyayi boler.\n"
+ "Yazilan dosyalar orijinal dosya isimdir numarali dosya uzantisi ile.\n"
+ "Yani, example.big.0, example.big.1, example.big.2...\n"
+ "Dosyalari birlestirmek icin mjoin kullanabilirsiniz.\n"
+ "Okunan dosyayi ve parcalarin boyutlarini belirt.",
+
+ "Parca Boyut:",
+ "Parametre 2:"
+ },
+
{
"kitten",
false, // in file 1 but
@@ -4394,6 +4530,52 @@ najihelp helpitems[NAJITOOL_MAX_COMMANDS] =
"Parametre 2:"
},
+{
+ "mbsplit",
+ false, // in file 1 but
+ false, // in file 1 box
+
+ true, // in file 2 but
+ true, // in file 2 box
+
+ true, // in folder but
+ true, // in folder box
+
+ true, // out file 1 but
+ true, // out file 1 box
+
+ true, // out file 2 but
+ true, // out file 2 box
+
+ true, // out folder but
+ true, // out folder box
+
+ false, // param 1 label
+ false, // param 1 box
+
+ true, // param 2 label
+ true, // param 2 box
+
+ "Splits the file you specify into the size of pieces you specify in megabytes.\n"
+ "The output file is the original filename with numbered extensions e.g.\n"
+ "example.big.0, example.big.1, example.big.2...\n"
+ "You can use mjoin to join the files.\n"
+ "Specify input file and size of peices.",
+
+ "Peice Size:",
+ "Parameter 2:",
+
+ "Megabayt olarak belirttiginiz parcalar boyutunda, belirtilen dosyayi boler.\n"
+ "Yazilan dosyalar orijinal dosya isimdir numarali dosya uzantisi ile.\n"
+ "Yani, example.big.0, example.big.1, example.big.2...\n"
+ "Dosyalari birlestirmek icin mjoin kullanabilirsiniz.\n"
+ "Okunan dosyayi ve parcalarin boyutlarini belirt.",
+
+ "Parca Boyut:",
+ "Parametre 2:"
+ },
+
+
{
"mergline",
false, // in file 1 but
@@ -4435,6 +4617,54 @@ najihelp helpitems[NAJITOOL_MAX_COMMANDS] =
"Son tekst:"
},
+{
+ "mjoin",
+ false, // in file 1 but
+ false, // in file 1 box
+
+ true, // in file 2 but
+ true, // in file 2 box
+
+ true, // in folder but
+ true, // in folder box
+
+ false, // out file 1 but
+ false, // out file 1 box
+
+ true, // out file 2 but
+ true, // out file 2 box
+
+ true, // out folder but
+ true, // out folder box
+
+ true, // param 1 label
+ true, // param 1 box
+
+ true, // param 2 label
+ true, // param 2 box
+
+ "Joins files split with bytsplit, kbsplit, mbsplit, or gbsplit.\n"
+ "specify the input filename without the numbered extensions e.g.\n"
+ "if the files are example.big.0, example.big.1 example.big.2 then\n"
+ "you specify example.big as the original input filename and they\n"
+ "will be joined automatically to the new output filename.\n"
+ "Specify original filename as input file and the joined\n"
+ "file for the output file.",
+ "Parameter 1:",
+ "Parameter 2:",
+
+ "bytsplit, kbsplit, mbsplit, veya gbsplit ile bolunen dosyalari birlestirir.\n"
+ "Dosya adi numarali dosya uzantisi haric okunan dosyayi belirt, yani, eger\n"
+ "dosyalar example.big.0, example.big.1 example.big.2 ise o zaman example.big\n"
+ "belirt orijinal okunan dosya icin ve onlar otomatik olarak birlesir yeni\n"
+ "yazilan dosyaya. Orijinal dosya adi belirt okunan dosya olarak ve birlesmis\n"
+ "dosya adi belirt yazilan dosya olarak.",
+
+ "Parametre 1:",
+ "Parametre 2:"
+ },
+
+
{
"mkpatch",
false, // in file 1 but
View
20 najitool_GUI_0.3.0.0.src/naji_gui.src/najijoin.ec
@@ -110,7 +110,7 @@ class tab_split : Tab
if (!strcmp(splitter_size_measurement, "bytes"))
{
- bytsplit(splitter_input_file_edit_box.contents, atoi(splitter_size_edit_box.contents), splitter_output_folder_edit_box.contents);
+ splitter_bytsplit(splitter_input_file_edit_box.contents, atoi(splitter_size_edit_box.contents), splitter_output_folder_edit_box.contents);
if (!strcmp(najitool_language, "English"))
msgbox("najitool GUI File Splitter", "File splitting complete.");
@@ -120,7 +120,7 @@ class tab_split : Tab
else if (!strcmp(splitter_size_measurement, "kb"))
{
- kbsplit(splitter_input_file_edit_box.contents, atoi(splitter_size_edit_box.contents), splitter_output_folder_edit_box.contents);
+ splitter_kbsplit(splitter_input_file_edit_box.contents, atoi(splitter_size_edit_box.contents), splitter_output_folder_edit_box.contents);
if (!strcmp(najitool_language, "English"))
msgbox("najitool GUI File Splitter", "File splitting complete.");
else if (!strcmp(najitool_language, "Turkish"))
@@ -129,7 +129,7 @@ class tab_split : Tab
else if (!strcmp(splitter_size_measurement, "mb"))
{
- mbsplit(splitter_input_file_edit_box.contents, atoi(splitter_size_edit_box.contents), splitter_output_folder_edit_box.contents);
+ splitter_mbsplit(splitter_input_file_edit_box.contents, atoi(splitter_size_edit_box.contents), splitter_output_folder_edit_box.contents);
if (!strcmp(najitool_language, "English"))
msgbox("najitool GUI File Splitter", "File splitting complete.");
else if (!strcmp(najitool_language, "Turkish"))
@@ -138,7 +138,7 @@ class tab_split : Tab
else if (!strcmp(splitter_size_measurement, "gb"))
{
- gbsplit(splitter_input_file_edit_box.contents, atoi(splitter_size_edit_box.contents), splitter_output_folder_edit_box.contents);
+ splitter_gbsplit(splitter_input_file_edit_box.contents, atoi(splitter_size_edit_box.contents), splitter_output_folder_edit_box.contents);
if (!strcmp(najitool_language, "English"))
msgbox("najitool GUI File Splitter", "File splitting complete.");
else if (!strcmp(najitool_language, "Turkish"))
@@ -155,7 +155,7 @@ class tab_split : Tab
bool NotifyClicked(Button button, int x, int y, Modifiers mods)
{
StripExtension(splitter_a_split_file_path);
- mjoin(splitter_a_split_file_path, splitter_join_output_file_path);
+ splitter_mjoin(splitter_a_split_file_path, splitter_join_output_file_path);
return true;
}
@@ -294,7 +294,7 @@ class tab_split : Tab
return true;
}
- void bytsplit(char *namein, unsigned long peice_size, char *output_folder)
+ void splitter_bytsplit(char *namein, unsigned long peice_size, char *output_folder)
{
int a;
@@ -344,7 +344,7 @@ class tab_split : Tab
}
- void kbsplit(char *namein, unsigned long peice_size, char *output_folder)
+ void splitter_kbsplit(char *namein, unsigned long peice_size, char *output_folder)
{
int a;
unsigned long i;
@@ -403,7 +403,7 @@ class tab_split : Tab
}
- void mbsplit(char *namein, unsigned long peice_size, char *output_folder)
+ void splitter_mbsplit(char *namein, unsigned long peice_size, char *output_folder)
{
int a;
unsigned long i;
@@ -461,7 +461,7 @@ class tab_split : Tab
}
- void gbsplit(char *namein, unsigned long peice_size, char *output_folder)
+ void splitter_gbsplit(char *namein, unsigned long peice_size, char *output_folder)
{
int a;
unsigned long i;
@@ -519,7 +519,7 @@ class tab_split : Tab
}
- void mjoin(char *namein_original_filename, char *nameout_joined_output_file)
+ void splitter_mjoin(char *namein_original_filename, char *nameout_joined_output_file)
{
int a;
View
21 najitool_GUI_0.3.0.0.src/naji_gui.src/najimain.ec
@@ -10,6 +10,7 @@ import "najicalc"
import "najihelp"
import "najiform"
import "najascii"
+import "najbatch"
#include "naji_gui.eh"
class bump : Window
@@ -633,7 +634,10 @@ class tab_main : Tab
else if (!strcmp(najitool_command, "bugun"))
bugun();
-
+
+ else if (! strcmp(najitool_command, "bytsplit") )
+ bytsplit(input_file_1_path, atoi(parameter_1_string));
+
else if (!strcmp(najitool_command, "calc"))
{
najicalc naji_calc {};
@@ -800,6 +804,9 @@ class tab_main : Tab
else if (!strcmp(najitool_command, "ftothe"))
ftothe(input_file_1_path, output_file_1_path);
+ else if (! strcmp(najitool_command, "gbsplit") )
+ gbsplit(input_file_1_path, atoi(parameter_1_string));
+
else if (!strcmp(najitool_command, "genhelp"))
najitool_gui_genhelp(output_file_1_path);
@@ -864,7 +871,10 @@ class tab_main : Tab
else if (!strcmp(najitool_command, "istreml"))
istreml(parameter_1_string, input_file_1_path, output_file_1_path);
-
+
+ else if (! strcmp(najitool_command, "kbsplit") )
+ kbsplit(input_file_1_path, atoi(parameter_1_string));
+
else if (!strcmp(najitool_command, "kitten"))
kitten(input_file_1_path);
@@ -925,9 +935,16 @@ class tab_main : Tab
else if (!strcmp(najitool_command, "maxxnewl"))
maxxnewl(input_file_1_path, output_file_1_path, atoi(parameter_1_string));
+ else if (! strcmp(najitool_command, "mbsplit") )
+ mbsplit(input_file_1_path, atoi(parameter_1_string));
+
else if (!strcmp(najitool_command, "mergline"))
mergline(input_file_1_path, input_file_2_path, output_file_1_path, parameter_1_string, parameter_2_string);
+ else if (! strcmp(najitool_command, "mjoin") )
+ mjoin(input_file_1_path, output_file_1_path);
+
+
else if (!strcmp(najitool_command, "mkpatch"))
mkpatch(input_file_1_path, input_file_2_path, output_file_1_path);
View
286 najitool_GUI_0.3.0.0.src/naji_gui.src/new_libnaji_updates/najijoin.c
@@ -1,286 +0,0 @@
-
-void mjoin(char *namein_original_filename, char *nameout_joined_output_file)
-{
- int a;
- unsigned long peice;
- char mjoin_filename_buffer[4096];
-
- peice = 0;
- najout(nameout_joined_output_file);
-
-
- while (1)
- {
-
-
- sprintf(mjoin_filename_buffer, "%s.%lu", namein_original_filename, peice);
- najin(mjoin_filename_buffer);
-
-
- while (1)
- {
- a = fgetc(naji_input);
-
- if (a == EOF)
- break;
-
- fputc(a, naji_output);
- }
-
-
- najinclose();
-
- peice++;
- }
-
-
-}
-
-
-void bytsplit(char *namein, unsigned long peice_size)
-{
- int a;
- char bytsplit_filename_buffer[4096];
- unsigned long size_reached;
- unsigned long peice;
-
-
- size_reached = 0;
- peice = 0;
-
- najin(namein);
-
-
-
- while (1)
- {
-
-
- sprintf(bytsplit_filename_buffer, "%s.%lu", namein, peice);
- najout(bytsplit_filename_buffer);
-
-
- while (1)
- {
-
-
- a = fgetc(naji_input);
-
- if (a == EOF)
- break;
-
- fputc(a, naji_output);
-
- size_reached++;
-
- if (size_reached == peice_size)
- break;
-
-
- }
-
-
- najoutclose();
-
- if (a == EOF)
- break;
-
- peice++;
- size_reached = 0;
- }
-
-
-
-}
-
-
-
-
-void kbsplit(char *namein, unsigned long peice_size)
-{
- int a;
- unsigned long i;
- unsigned long size_reached;
- unsigned long peice;
- char kbsplit_filename_buffer[4096];
-
-
- size_reached = 0;
- peice = 0;
-
- najin(namein);
-
-
- while (1)
- {
-
-
- sprintf(kbsplit_filename_buffer, "%s.%lu", namein, peice);
- najout(kbsplit_filename_buffer);
-
-
- while (1)
- {
-
- for (i=0; i<1024; i++)
- {
-
- a = fgetc(naji_input);
-
- if (a == EOF)
- break;
-
- fputc(a, naji_output);
-
- }
-
- if (a == EOF)
- break;
-
- size_reached++;
-
- if (size_reached == peice_size)
- break;
-
-
- }
-
-
- najoutclose();
-
- if (a == EOF)
- break;
-
- peice++;
- size_reached = 0;
- }
-
-
-
-}
-
-
-
-
-void mbsplit(char *namein, unsigned long peice_size)
-{
- int a;
- unsigned long i;
- unsigned long size_reached;
- unsigned long peice;
- char mbsplit_filename_buffer[4096];
-
- size_reached = 0;
- peice = 0;
-
- najin(namein);
-
- while (1)
- {
-
-
- sprintf(mbsplit_filename_buffer, "%s.%lu", namein, peice);
- najout(mbsplit_filename_buffer);
-
-
- while (1)
- {
-
- for (i=0; i<1048576; i++)
- {
-
- a = fgetc(naji_input);
-
- if (a == EOF)
- break;
-
- fputc(a, naji_output);
-
- }
-
- if (a == EOF)
- break;
-
- size_reached++;
-
- if (size_reached == peice_size)
- break;
-
-
- }
-
-
- najoutclose();
-
- if (a == EOF)
- break;
-
- peice++;
- size_reached = 0;
- }
-
-
-
-}
-
-
-
-
-void gbsplit(char *namein, unsigned long peice_size)
-{
- int a;
- unsigned long i;
- unsigned long size_reached;
- unsigned long peice;
- char gbsplit_filename_buffer[4096];
-
- size_reached = 0;
- peice = 0;
-
- najin(namein);
-
- while (1)
- {
- sprintf(gbsplit_filename_buffer, "%s.%lu", namein, peice);
- najout(gbsplit_filename_buffer);
-
-
- while (1)
- {
-
- for (i=0; i<1073741824; i++)
- {
-
- a = fgetc(naji_input);
-
- if (a == EOF)
- break;
-
- fputc(a, naji_output);
-
- }
-
- if (a == EOF)
- break;
-
- size_reached++;
-
- if (size_reached == peice_size)
- break;
-
-
- }
-
-
- najoutclose();
-
- if (a == EOF)
- break;
-
- peice++;
- size_reached = 0;
- }
-
-
-
-}
View
6 najitool_GUI_0.3.0.0.src/naji_gui.src/new_libnaji_updates/toadd.txt
@@ -1,6 +0,0 @@
-toadd bytsplit
-toadd kbsplit
-toadd mbsplit
-toadd gbsplit
-toadd mjoin
-

No commit comments for this range

Something went wrong with that request. Please try again.