Skip to content

Commit

Permalink
Various fixes and improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
cgyarvin committed Mar 4, 2014
1 parent 2d2571f commit eff9550
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ LIB=$(PWD)/lib

RM=rm -f
CC=gcc
CLD=gcc -O3 -L/usr/local/lib -L/opt/local/lib
CLD=gcc -g -L/usr/local/lib -L/opt/local/lib
YACC=bison -v -b$(GENERATED)/y
LEX=lex

Expand All @@ -56,7 +56,7 @@ INCLUDE=include
GENERATED=generated
MDEFINES=-DU2_OS_$(OS) -DU2_OS_ENDIAN_$(ENDIAN) -D U2_LIB=\"$(LIB)\"

CFLAGS=-O3 \
CFLAGS=-g \
-I/usr/local/include \
-I/opt/local/include \
-I$(INCLUDE) \
Expand Down
2 changes: 1 addition & 1 deletion f/nock.c
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,7 @@ u2_cn_mink(u2_noun bus,
{
res = _nock_moog(bus, fol);
}
c3_assert(lad == u2ft(u2_hevn_at(lad)));
// c3_assert(lad == u2ft(u2_hevn_at(lad)));

u2z(u2_hevn_at(lad));
u2_hevn_at(lad) = lad;
Expand Down
Binary file modified urb/urbit.pill
Binary file not shown.
25 changes: 21 additions & 4 deletions urb/zod/arvo/zuse.hoon
Original file line number Diff line number Diff line change
Expand Up @@ -1103,8 +1103,8 @@
==
;~(plug ;~(pose apat (easy *pork)) yque)
==
++ bite :: cookies (ours)
(most sem ;~(plug nuck:so ;~(pfix sem nuck:so)))
++ cock :: cookie
(most sem ;~(plug toke ;~(pfix tis tosk)))
++ dlab :: 2396 domainlabel
%+ sear
|= a=@ta
Expand All @@ -1114,6 +1114,13 @@
::
++ fque (cook crip (plus pquo)) :: normal query field
++ pcar ;~(pose pure pesc psub col pat) :: 2396 path char
++ pcok ;~ pose :: cookie char
(just `@`0x21)
(shim 0x23 0x2b)
(shim 0x2d 0x3a)
(shim 0x3c 0x5b)
(shim 0x5d 0x7e)
==
++ pesc ;~(pfix cen mes) :: 2396 escaped
++ pold (cold ' ' (just '+')) :: old space code
++ pque ;~(pose pcar fas wut) :: 3986 query char
Expand All @@ -1123,11 +1130,18 @@
zap buc pam soq pel per
tar lus com sem tis
==
++ ptok ;~ pose :: 2616 token
aln zap hax buc cen pam soq tar lus
hep dot ket cab tec bar sig tis
==
++ scem :: 2396 scheme
%+ cook cass
;~(plug alf (star ;~(pose aln lus hep dot)))
::
++ smeg (cook crip (plus pcar)) :: 2396 segment
++ tock (cook crip (plus pcok)) :: 6265 cookie-value
++ tosk ;~(pose tock (ifix [doq doq] tock)) :: 6265 cookie-value
++ toke (cook crip (plus ptok)) :: 2616 token
++ thor :: 2396 host/port
%+ cook |*(a=[* *] [+.a -.a])
;~ plug
Expand Down Expand Up @@ -1876,11 +1890,14 @@
++ gyro ,[p=@ud q=wire r=prod] :: live prompt
++ hand ,@uvH :: hash of code
++ hate ,[p=purl q=@p r=moth] :: cooked request
++ heel ,[p=scud q=moth] :: cooked input
++ heir ,[p=@ud q=math r=(unit love)] :: status/headers/data
++ hiss ,[p=purl q=moth] :: outbound request
++ hist ,[p=@ud q=(list ,@t)] :: depth texts
++ hook path :: request origin
++ hart ,[p=? q=(unit ,@ud) r=host] :: http sec/port/host
++ hort ,[p=(unit ,@ud) q=host] :: http port/host
++ hose ,[p=(list tank) q=(unit vase) r=heel s=heir] :: http environment
++ host $%([& p=(list ,@t)] [| p=@if]) :: http host
++ httq :: raw http request
$: p=?(%get %post) :: method
Expand Down Expand Up @@ -1924,7 +1941,7 @@
++ lice ,[p=ship q=buck] :: full license
++ life ,@ud :: regime number
++ lint (list rock) :: fragment array
++ logo ,@uvI :: session identity
++ logo ,@t :: session identity
++ love $% :: http response
[%ham p=manx] :: html node
[%mid p=mime q=octs] :: mime-typed data
Expand Down Expand Up @@ -1978,7 +1995,7 @@
[| p=@tas] :: label
== ::
++ octs ,[p=@ud q=@] :: octet-stream
++ oryx ,@uvH :: CSRF secret
++ oryx ,@t :: CSRF secret
++ corn :: flow by server
$: hen=duct :: admin channel
nys=(map flap bait) :: packets incoming
Expand Down
1 change: 1 addition & 0 deletions v/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ main(c3_i argc,
}

// Seed prng. Don't panic -- just for fuzz testing and election timeouts.
//
srand(getpid());

// Instantiate process globals.
Expand Down

0 comments on commit eff9550

Please sign in to comment.