home *** CD-ROM | disk | FTP | other *** search
- ═══════════════════════════════════════════════════════════════════════════════
- ModTitle: Asylum Common v4.0a for 4.24 Last Update June 19, 1995
- Mods that use this mod will be referred to as a 'Common Mod'
-
- Difficulty: Typical Asylum Mod...that is, a piece of cake.
-
- Files affected: MAKEFILE, VARDEC.H, VARS.H COM.C
-
- A tool box of functions that the Asylum group (and any one else who wants to)
- use in the modifications for WWIV.
-
- Current mods requiring this mod: Pulldown Menus, Listfile Plus, Super
- Config and Asylum Chat
-
- BY: Asylum Group- Zu Digital, 1@8421, and Sam, 1@4051
- Credits: No one
- ═══════════════════════════════════════════════════════════════════════════════
-
- Why version 4? Version 4 refers to WWIV 4.24, when 4.25 comes out, it will
- be renamed version 5.
-
-
- + Add
- - Subtract
- * Change
- = Existing
- @# See number
-
-
- I will not be responsible for any problems that arise because of this or any
- other of my mods. If you have something to lose, make a way to recover it.
- If you don't know how to do this properly, then don't install this.
- If you can't install this mod without any problems, then don't try.
-
- Now,... this mod works as far as I have tested, as has many other people.
-
-
-
- Step 1)
- Place the included files in your compling directory, should include COMMON.C,
- COMMON2.C and COMMON.H.
-
-
-
-
-
- Step 2) VARS.H
- Have vars.h include common.h into your bbs as well as a simple define
-
- = #include <dos.h>
- = #include <alloc.h>
- = #include <time.h>
-
-
- + #include "vardec1.h" /*********** Read !!!!!!!!! ***********/
- + #include "common.h" /*********** important, make sure this is before fcns.h ***********/
- = #include "fcns.h" /*********** Did you read ^^^^^??????????? *********/
-
-
-
-
- Step 3) BBS.C
- Put in a check to give us an error if we mess up on the userrec
-
- = void main(int argc, char *argv[])
- = {
- = char s[81],ch,frc[81], rf[30],*ss;
- = int i,i1,num_min=0;
- = unsigned int ui=0, us=0;
- = double dt;
- = unsigned short c_s,c_o;
- = int this_usernum=0;
- =
- + #if sizeof(userrec) != 1024
- + #error Userrec is not 1024
- + #endif
-
-
-
-
-
-
- Step 4)
-
- ======================= START BORLAND C MAKEFILE ADDITIONS ===================
- MAKEFILE. This is only for the Borland make, if you don't use it, then you
- will have to modify your makefile yourself, being that I don't use it, and
- do not know the syntax.
-
- A) Search for BBS_NRM and add our non-overlaid part of common
-
- = BBS_NRM = \
- = msgbase.obj msgbase1.obj share.obj strings.obj \
- * utility.obj xfer.obj common2.obj
- ^^^^^^^^^^^ add this
-
- B) Down a little add our other part
-
- = BBS_O_NRM = \
- = $(OBJ)\msgbase1.obj $(OBJ)\share.obj $(OBJ)\strings.obj \
- * $(OBJ)\utility.obj $(OBJ)\xfer.obj $(OBJ)\common2.obj
- ^^^^^^^^^^^^^^^^^^ add this
-
-
- C) Search for BBS_OVL and add the common.obj to the end of it, to add
- our overlaid part
-
- = sysopf.obj tedit.obj uedit.obj voteedit.obj \
- * xferovl.obj xfertmp.obj xinit.obj common.obj
- ^^^^^^^^^^ added part
- D) Go down a little to BBS_O_OVL
-
- = $(OBJ)\voteedit.obj $(OBJ)\xferovl.obj $(OBJ)\xfertmp.obj \
- * $(OBJ)\xinit.obj $(OBJ)\common.obj
- ^^^^^^^^^^^^^^^^^ added part
-
- ########## if you use Turbo C, use this code, a number of people have
- ########## given this to me, I just choose to use this one from Tubman
-
- A) Search for BBS_NRM = \ and add the \ to the end of the last line. Then
- add the common2.obj in on it's own line.
-
- = BBS_NRM = \
- = $(OBJ)bbs.obj $(OBJ)bbsutl.obj $(OBJ)bbsutl1.obj $(OBJ)com.obj\
- = $(OBJ)conio.obj $(OBJ)connect1.obj $(OBJ)extrn.obj $(OBJ)modem.obj\
- = $(OBJ)msgbase.obj $(OBJ)msgbase1.obj $(OBJ)utility.obj\
- = $(OBJ)xfer.obj $(OBJ)strings.obj $(OBJ)share.obj $(OBJ)subacc.obj\
- * $(OBJ)bbsutl2.obj $(OBJ)mmenu.obj $(OBJ)ripspeed.obj ripint.obj\
- + $(OBJ)common2.obj
-
- B) Search for BBS_OVL = \ and add the common.obj to it.
-
- = BBS_OVL = \
- .
- .
- .
- = $(OBJ)bbsovl3.obj $(OBJ)qwk.obj $(OBJ)qwk1.obj\
- * $(OBJ)ripovl.obj $(OBJ)wfc.obj $(OBJ)common.obj
-
- C) Search down some more, and add this after xfer.obj
-
- = $(OBJ)xfer.obj : xfer.c vars.h vardec.h net.h
- = $(TCC_NRM)
- + $(OBJ)common2.obj : common2.c vars.h vardec.h net.h
- + $(TCC_NRM)
- = $(OBJ)strings.obj : strings.c
-
- D) Down a little more, add this after ripovl.obj
-
- = $(OBJ)ripovl.obj : ripovl.c vars.h vardec.h net.h
- = $(TCC_OVL)
- + $(OBJ)common.obj : common.c vars.h vardec.h net.h
- + $(TCC_OBL)
- =
- = $(OBJ)return.obj : return.c vars.h vardec.h net.h
- = $(TCC)
-
-
-
- E) Down a little to the NON-OVERLAID PART
-
- = share.obj : share.c
- = $(TCC_NRM)
- = utility.obj : utility.c
- = $(TCC_NRM)
- = xfer.obj : xfer.c
- = $(TCC_NRM)
- + common2.obj : common2.c
- + $(TCC_NRM)
-
-
-
- F) And now... down a ways... (IN THE OVERLAID PART)
-
- xfertmp.obj : xfertmp.c
- $(TCC_OVL)
- xinit.obj : xinit.c
- $(TCC_OVL)
- + common.obj : common.c
- + $(TCC_OVL)
-
-
-
- ======================= END BORLAND C MAKEFILE ADDITIONS =====================
-
-
- ======================= START TURBO C MAKEFILE ADDITIONS =====================
-
- ┌────────────────────────────────────────────────────────────────────────────┐
- │ Mod Name: SPAM-19A.MOD By Heartland Software 1@2446 WWIVnet │
- │ Difficulty: █▒▒▒▒▒▒▒▒▒ This makes Asylum's MODs look HARD! 1@3953 WWIVLink │
- │ WWIV Version: 4.24 1@3950 TerraNET │
- │ Files Affected: MAKEFILE.MAK 1@1 CompuNET │
- │ Mod info: This MOD gives your the directions for installing COMMON v4.0, │
- │ Asylum Chat, and ListPlus v4.0 for modifying the MAKEFILE.MAK │
- │ section for all fo those Asylum MODs. │
- │ Disclaimer: You put it in at your own free will, don't come crying to me. │
- └────────────────────────────────────────────────────────────────────────────┘
-
- Take NOTE! You only have to install which ever one you want!
- Step 1a through step 1d is for COMMON.MOD
- Step 2a through step 2c is for LISTPLUS.MOD
- Step 3a through setp 3c is for ACHAT.MOD
-
-
- Revision Note A: Updated for COMMON v4.0, ListPlus 4.0 and Achat 4.0, and
- WWIV v4.24 (although it is pretty much the same I fixed a
- Type-o in the origonal mod [sorry])
-
- Legend :
- = [Existing Line]
- * [Modify Line]
- - [Delete Line]
- + [Insert Line]
-
- ───[Step 1a]────────────────────────────────────────────────────────────────────
-
- This section installs COMMON v4.0 into the Turbo C++ Makefile.mak.
- Load Up MAKEFILE.MAK and do the following changes in Normal, non-overlaid bbs
- files:
-
- = #############################################################################
- = #
- = #
- = # Normal, non-overlaid bbs files
- = #
- = BBS_NRM = \
- = $(OBJ)bbs.obj $(OBJ)bbsutl.obj $(OBJ)bbsutl1.obj $(OBJ)com.obj\
- = $(OBJ)conio.obj $(OBJ)connect1.obj $(OBJ)extrn.obj $(OBJ)modem.obj\
- = $(OBJ)msgbase.obj $(OBJ)msgbase1.obj $(OBJ)utility.obj\
- = $(OBJ)xfer.obj $(OBJ)strings.obj $(OBJ)share.obj $(OBJ)subacc.obj\
- * $(OBJ)bbsutl2.obj $(OBJ)mmenu.obj $(OBJ)ripspeed.obj ripint.obj\
- + $(OBJ)common2.obj
-
- Note, the part marked witht the '*' you must add a \ to the end
-
- ───[Step 1b]────────────────────────────────────────────────────────────────────
- Lower down in the Overlaid bbs files....
-
- = #
- = # Overlaid bbs files
- = #
- = BBS_OVL = \
- = $(OBJ)newuser.obj $(OBJ)sysopf.obj $(OBJ)voteedit.obj\
- = $(OBJ)gfledit.obj $(OBJ)tedit.obj $(OBJ)chnedit.obj\
- = $(OBJ)uedit.obj $(OBJ)diredit.obj $(OBJ)subedit.obj\
- = $(OBJ)xferovl.obj $(OBJ)multmail.obj $(OBJ)gfiles.obj\
- = $(OBJ)defaults.obj $(OBJ)misccmd.obj $(OBJ)xinit.obj\
- = $(OBJ)xfertmp.obj $(OBJ)batch.obj $(OBJ)srrcv.obj\
- = $(OBJ)srsend.obj $(OBJ)lilo.obj $(OBJ)subreq.obj\
- = $(OBJ)netsup.obj $(OBJ)subxtr.obj $(OBJ)multinst.obj\
- = $(OBJ)conf.obj $(OBJ)readmail.obj $(OBJ)instmsg.obj\
- = $(OBJ)bbsovl1.obj $(OBJ)extrn1.obj $(OBJ)bbsovl2.obj\
- = $(OBJ)sr.obj $(OBJ)ini.obj $(OBJ)xferovl2.obj\
- = $(OBJ)bbsovl3.obj $(OBJ)qwk.obj $(OBJ)qwk1.obj\
- * $(OBJ)ripovl.obj $(OBJ)common.obj
-
- Just add the extra $(OBJ)common.obj to the end of the line
-
- ───[Step 1c]────────────────────────────────────────────────────────────────────
-
- Further down in the .C files listings....
-
- = $(TCC_NRM)
- = $(OBJ)bbsovl3.obj : bbsovl3.c vars.h vardec.h net.h
- = $(TCC_OVL)
- = $(OBJ)qwk.obj : qwk.c vars.h vardec.h net.h
- = $(TCC_OVL)
- = $(OBJ)qwk1.obj : qwk1.c vars.h vardec.h net.h
- = $(TCC_OVL)
- = $(OBJ)ripovl.obj : ripovl.c vars.h vardec.h net.h
- = $(TCC_OVL)
- + $(OBJ)common2.obj : common2.c vars.h vardec.h net.h
- + $(TCC_OVL)
- + $(OBJ)common.obj : common.c vars.h vardec.h net.h
- + $(TCC_OVL)
- =
- = $(OBJ)return.obj : return.c vars.h vardec.h net.h
- = $(TCC)
-
- ───[Step 1d]────────────────────────────────────────────────────────────────────
-
- Compile it, if you installed the rest of COMMON40.MOD then everything should
- be fine.
-
-
-
-
- ======================= END TURBO C MAKEFILE ADDITIONS =====================
-
-
-
-
-
-
-
-
-
- 5) Remove the following functions from COM.C
-
- void outchr(unsigned char c)
- {
- ...
- }
-
- skip some (I think)
-
- void outstr(unsigned char *s)
- {
- ...
- }
-
- skip some..
-
- void npr(char *fmt, ...)
- {
- ...
- }
-
-
-
-
-
-
-
-
-
- Step 6)
- FCNS.H
-
- Either update your fcns.h by typing make fcns or by manually inserting
- the following defenitions:
-
- These must go in between the #ifndef _FCNS_H_ and the final #endif
-
-
- /* File: common2.c */
-
- int find_batch_queue(char *fn);
- void remove_batch(char *fn);
- void BEEP(void);
- void EOL(void);
- int pd_amount_in_list(char *list, int rows, int cols);
- char * strip_string(char *string);
- char *unalign(char *filename);
- int outchr(unsigned char c); /* replace with this */
- int outstr(unsigned char *s); /* replace with this */
- int npr(char *fmt, ...); /* replace with this */
-
-
- /* File: common.c */
-
- int outchr_color(int c);
- char **alloc_2d(int row, int col, unsigned size);
- void free_2d(char **pa);
- unsigned side_menu(int *menu_pos, int redraw, char *menu_items[], int xpos, int ypos, struct side_menu_colors *smc);
- void show_common_mods(void);
- void test_vm(void);
- void wait_sec(double seconds);
- long filesize(FILE *stream);
- int fset_rec(FILE *stream, unsigned rec, unsigned rec_size);
- int set_rec(int filenum, unsigned rec, unsigned rec_size);
- ini_record * open_ini(char *fname, unsigned long flags);
- void close_ini(ini_record *ini);
- char *ini_read_string(ini_record *ini, char *area, char *ident, char *buff);
- long ini_read_number(ini_record *ini, char *area, char *ident);
- int ini_read_boolean(ini_record *ini, char *area, char *ident);
- int ini_write_string(ini_record *ini, char *area, char *ident, char *value);
- int ini_write_number(ini_record *ini, char *area, char *ident, long value);
- int ini_remove_ident(ini_record *ini, char *area, char *ident);
- void ini_remove_area(ini_record *ini, char *area);
- int does_ident_exist(ini_record *ini, char *area, char *ident);
- int does_ini_area_exist(ini_record *ini, char *area);
- int get_ident_positions(ini_record *ini, char *area, char *ipattern);
- int get_ident_patterns(ini_record *ini, char *area, char *ipattern, int getem);
- char *fix_ini_name(char *fname);
- int ini_write_changes(ini_record *ini);
- void release_ini_section(ini_record *ini);
- int read_ini_area(ini_record *ini, char *area);
- int addto_ini_lines(ini_record *ini, char *line, int modify);
- void ini_pack_lines(ini_record *ini);
- int replace_in_ini_lines(ini_record *ini, char *line, int x);
- int remove_from_ini_lines(ini_record *ini, int x);
-
-
-
- /* File: com.c */ (remove these 3 functions)
-
- -- void outchr(unsigned char c); /* find and remove old outchr */
- -- void outstr(unsigned char *s); /* find and remove old outstr */
- -- void npr(char *fmt, ...); /* find and remove old npr */
-
-
-
-
-
-
-
-
-