~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to trampoline/main.c

  • Committer: drtomc
  • Date: 2008-01-30 20:52:30 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:335
Log live pushdown automata! Sat down and *thought*, then cast the normalization
as a pushdown automaton. Easy! Worked first shot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
    assert(norm(buf,256, "/usr/bin/python") == 0);
11
11
    assert(strcmp(buf,"/usr/bin/python") == 0);
12
12
 
 
13
    assert(norm(buf,256, "/usr/./bin/./python") == 0);
 
14
    assert(strcmp(buf,"/usr/bin/python") == 0);
 
15
 
13
16
    assert(norm(buf,256, "/x/../python") == 0);
14
17
    assert(strcmp(buf,"/python") == 0);
 
18
 
 
19
    assert(norm(buf,256, "/../python") != 0);
 
20
 
15
21
    return 0;
16
22
}