earlybrowserreborn

Subversion Repositories:
Compare Path: Rev
With Path: Rev
/midaswww-2.1 @ 1  →  /midaswww-2.1 @ 3
/midaswww-2.1/SGMLHyper.c
@@ -2179,7 +2179,7 @@
Widget widget;
char *fname;
{
extern char *sys_errlist[];
// extern char *sys_errlist[];
Widget result = NULL;
 
FILE *f = fopen(fname,"r");
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/midaswww-2.1/uid2c
New file
/midaswww-2.1/Imakefile
@@ -0,0 +1,36 @@
/*
*
* midaswww -- Machine independent makefile
*
* (c) Copyright 1992, Tony Johnson (Tony_Johnson@Slac.Stanford.Edu)
*
* Permission to use, copy, modify, distribute, and sell this software
* and its documentation for any purpose is hereby granted without fee,
* provided that the above copyright notice appear in all copies and
* that both that copyright notice and this permission notice appear in
* supporting documentation, and that the name of Kirk Erickson and
* Silicon Graphics Inc. not be used in advertising or publicity pertaining
* to distribution of the software without specific, written prior
* permission. Tony Johnson makes no
* representations about the suitability of this software for any purpose.
* It is provided "as is" without express or implied warranty.
*
* THE ABOVE-NAMED DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
* EVENT SHALL THE ABOVE-NAMED BE LIABLE FOR ANY SPECIAL, INDIRECT OR
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
* USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
* OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/
 
SYS_LIBRARIES = -lMrm -lXm -lXt -lX11 -lXmu -lXext
 
 
/* You shouldn't need to modify anything below this line */
 
include CommonMakefile
 
ComplexProgramTarget($(PGM))
 
 
/midaswww-2.1/midas.uil
@@ -7,9 +7,10 @@
!`T^
Midas_Custom_Button_Width: 82;
Midas_Cusom_Button_Offset: -35;
Midas_Icon_Color: color_table(background color = ' ',
foreground color = '*');
Midas_Custom_Large_Font: font_table(font('-*-HELVETICA-BOLD-R-*--*-180-*-*-*-*-ISO8859-1'));
HandyPakIcon: exported icon(color_table = color_table(background color = ' ',
foreground color = '*'),
HandyPakIcon: exported icon(color_table = Midas_Icon_Color,
' ',
' ***************************************',
' * * **',
@@ -50,8 +51,7 @@
' * * * * *',
' ** * * * * * * * * *',
' ***************************************');
MidasIcon: exported icon(color_table = color_table(background color = ' ',
foreground color = '*'),
MidasIcon: exported icon(color_table = Midas_Icon_Color,
'** ** * **** ',
' *** * * * * ** * ',
' **** * * * * ** * ',
/midaswww-2.1/setenv.c
@@ -23,8 +23,8 @@
 
#include <stdio.h>
#include <sys/types.h>
extern char *malloc();
 
//extern char *malloc();
extern char *_findenv(register char *name,int *offset);
/*
* setenv --
* Set the value of the environmental variable "name" to be
@@ -38,7 +38,6 @@
static int alloced; /* if allocated space before */
register char *C;
int l_value, offset;
char *_findenv();
 
if (*value == '=') /* no `=' in value */
++value;
/midaswww-2.1/Makefile
@@ -1,8 +1,8 @@
# Generic makefile - Unix (rs6000) version
#
LDLIBS = -lXm -lPW -lIM -lXt -lXmu -lX11 -lMrm -lbsd
LDOPTIONS = -bnodelcsect
CFLAGS = -O -DAIXV3 -D_BSD -Dqnoro $(DEFINES)
LDLIBS = -lXm -lXt -lXmu -lX11 -lMrm
LDOPTIONS =
CFLAGS = -O2 $(DEFINES)
RM = rm -f
UIL = uil
 
@@ -13,9 +13,9 @@
$(CC) -o $@ $(OBJS) $(LDOPTIONS) $(LDLIBS)
 
install:
/usr/ucb/install -c -s -m 755 midaswww /usr/local/bin
/usr/ucb/install -c -m 644 midas.uid /usr/local/lib
/usr/ucb/install -c -m 644 midaswww.uid /usr/local/lib
/usr/bin/install -c -s -m 755 midaswww /usr/local/bin
/usr/bin/install -c -m 644 midas.uid /usr/local/lib
/usr/bin/install -c -m 644 midaswww.uid /usr/local/lib
 
clean:
rm -f *.o midaswww *.uid *.uic *.adh
/midaswww-2.1/uid2c.c
@@ -3,7 +3,7 @@
 
/* convert uid file to ascii file to use in c */
void converttoc ();
char *getfilename();
void getfilename();
 
main ( argc, agrv)
int argc;
@@ -37,10 +37,10 @@
char *filein;
{
FILE *outfp;
char fileout[100], name[100], *tempf;
char fileout[100], name[100], tempf[100];
int c, i;
 
tempf = getfilename(filein);
getfilename(filein,tempf);
strcpy(fileout, tempf);
strcpy(name, tempf);
strcat(fileout,".uic");
@@ -70,12 +70,10 @@
}
}
 
char *getfilename (infile)
void getfilename (infile, outfile)
char *infile;
char *outfile;
{
char filename[100];
 
strcpy(filename, infile);
filename[strlen(infile)-4] = '\0';
return filename;
strcpy(outfile, infile);
*(outfile+strlen(outfile)-4) = '\0';
}