57 lines
1.2 KiB
Plaintext
57 lines
1.2 KiB
Plaintext
Instructions for changing command line syntax of netcmd.
|
|
|
|
The syntax is defined in msnet.nt. There is one version in the NETUSE directory and one in NETCMD directory. This file is then used to create the generated file, net.c.
|
|
|
|
1) Checkout the following files:
|
|
msnet.nt
|
|
net.c
|
|
os2cmd.c
|
|
os2cmd.h
|
|
os2incl.h
|
|
|
|
2) Make a save copy of net.c.
|
|
|
|
3) Edit msnet.nt
|
|
|
|
4) Run nmake -f makefil1
|
|
|
|
5) In -i (SD revert) os2cmd.c, os2cmd.h, os2incl.h
|
|
|
|
6) Hand edit net.c to fix up the following:
|
|
|
|
A)
|
|
char XXtype[] = {
|
|
=>
|
|
TCHAR XXtype[] = {
|
|
|
|
B)
|
|
extern char * XXnode;
|
|
=>
|
|
extern TCHAR * XXnode;
|
|
|
|
C)
|
|
xxcondition(index,xxvar)int index;register char * xxvar[]; {switch(index){
|
|
=>
|
|
xxcondition(index,xxvar)int index;register TCHAR * xxvar[]; {switch(index){
|
|
|
|
D)
|
|
xxaction(index,xxvar)int index;register TCHAR * xxvar[]; {switch(index) {
|
|
=>
|
|
xxaction(index,xxvar)int index;register TCHAR * xxvar[]; {switch(index) {
|
|
|
|
E)
|
|
Add return( 0 ); to the end of xxcondition() and xxaction()
|
|
|
|
F)
|
|
char * xxswitch[] = {
|
|
=>
|
|
TCHAR * xxswitch[] = {
|
|
|
|
G)
|
|
Add TEXT("<whatever>") around all switches in xxswitch[]
|
|
|
|
|
|
7) Build/Test
|
|
|
|
8) Checkin msnet.nt and net.c
|