home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
unix
/
volume28
/
m0
/
part01
/
startup.m0
< prev
next >
Wrap
Text File
|
1994-06-05
|
2KB
|
77 lines
# startup.m0
# Copyright (c) 1994 Christian F. Tschudin. All rights reserved.
#
# Distributed under the terms of the GNU General Public License
# version 2 of june 1991 as published by the Free Software
# Foundation, Inc.
#
# This file is part of M0.
#
# M0 is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY. No author or distributor accepts responsibility to anyone for
# the consequences of using it or for whether it serves any particular
# purpose or works at all, unless he says so in writing. Refer to the GNU
# General Public License for full details.
#
# Everyone is granted permission to copy, modify and redistribute M0, but
# only under the conditions described in the GNU General Public License.
# A copy of this license is supposed to have been given to you along with
# M0 so you can know your rights and responsibilities. It should be in a
# file named LICENSE. Among other things, the copyright notice and this
# notice must be preserved on all copies.
# the M0 interpreter startup code
# christian tschudin, may 1994
# pop the local (user) dictionary
)
#define official entries _sys, _ (globaldict), _ver and _pid
. '_sys . :
. '_ D :
. '_ver 1 :
. '_pid ; :
. '_cpy "(c) 1994, Christian F. Tschudin" :
. '_err .'ZG :
# include the longword definitions:
. 'longdict D :
longdict (
#include longdict.m0
)
# define the access rights:
.'_r 1:
.'_rw 3:
.'_rx 5:
.'_w 2:
.'_wx 6:
.'_rwx 7:
.'_x 4:
.'_nac 0:
# set the access attributes for various dictionaries, arrays and strings
[
_adr {XP0IY'string={}{P}?}L # remove write only from composite objects
_adr
_cha {XP}L # to do: treat the descrpitive strings
_cha
_cpy
_ena
longdict
_tna
.
] {_rx W} L
# globaldict is not executable:
_ _rw W
# eof