Hex Artifact Content
Not logged in

Artifact 3c4c8aa555c651a7023c2320c10795b3689e36b1:

File tools/cvs2fossil/lib/c2f_fsym.tcl part of check-in [84de38d73f] - Added a lot of skeleton files for the revision and symbol data structures, for both project and file level. by aku on 2007-10-10 03:28:22.

0000: 23 23 20 2d 2a 2d 20 74 63 6c 20 2d 2a 2d 0a 23  ## -*- tcl -*-.#
0010: 20 23 20 23 23 20 23 23 23 20 23 23 23 23 23 20   # ## ### ##### 
0020: 23 23 23 23 23 23 23 23 20 23 23 23 23 23 23 23  ######## #######
0030: 23 23 23 23 23 23 20 23 23 23 23 23 23 23 23 23  ###### #########
0040: 23 23 23 23 23 23 23 23 23 23 23 23 0a 23 23 20  ############.## 
0050: 43 6f 70 79 72 69 67 68 74 20 28 63 29 20 32 30  Copyright (c) 20
0060: 30 37 20 41 6e 64 72 65 61 73 20 4b 75 70 72 69  07 Andreas Kupri
0070: 65 73 2e 0a 23 0a 23 20 54 68 69 73 20 73 6f 66  es..#.# This sof
0080: 74 77 61 72 65 20 69 73 20 6c 69 63 65 6e 73 65  tware is license
0090: 64 20 61 73 20 64 65 73 63 72 69 62 65 64 20 69  d as described i
00a0: 6e 20 74 68 65 20 66 69 6c 65 20 4c 49 43 45 4e  n the file LICEN
00b0: 53 45 2c 20 77 68 69 63 68 0a 23 20 79 6f 75 20  SE, which.# you 
00c0: 73 68 6f 75 6c 64 20 68 61 76 65 20 72 65 63 65  should have rece
00d0: 69 76 65 64 20 61 73 20 70 61 72 74 20 6f 66 20  ived as part of 
00e0: 74 68 69 73 20 64 69 73 74 72 69 62 75 74 69 6f  this distributio
00f0: 6e 2e 0a 23 0a 23 20 54 68 69 73 20 73 6f 66 74  n..#.# This soft
0100: 77 61 72 65 20 63 6f 6e 73 69 73 74 73 20 6f 66  ware consists of
0110: 20 76 6f 6c 75 6e 74 61 72 79 20 63 6f 6e 74 72   voluntary contr
0120: 69 62 75 74 69 6f 6e 73 20 6d 61 64 65 20 62 79  ibutions made by
0130: 20 6d 61 6e 79 0a 23 20 69 6e 64 69 76 69 64 75   many.# individu
0140: 61 6c 73 2e 20 20 46 6f 72 20 65 78 61 63 74 20  als.  For exact 
0150: 63 6f 6e 74 72 69 62 75 74 69 6f 6e 20 68 69 73  contribution his
0160: 74 6f 72 79 2c 20 73 65 65 20 74 68 65 20 72 65  tory, see the re
0170: 76 69 73 69 6f 6e 0a 23 20 68 69 73 74 6f 72 79  vision.# history
0180: 20 61 6e 64 20 6c 6f 67 73 2c 20 61 76 61 69 6c   and logs, avail
0190: 61 62 6c 65 20 61 74 20 68 74 74 70 3a 2f 2f 66  able at http://f
01a0: 6f 73 73 69 6c 2d 73 63 6d 2e 68 77 61 63 69 2e  ossil-scm.hwaci.
01b0: 63 6f 6d 2f 66 6f 73 73 69 6c 0a 23 20 23 20 23  com/fossil.# # #
01c0: 23 20 23 23 23 20 23 23 23 23 23 20 23 23 23 23  # ### ##### ####
01d0: 23 23 23 23 20 23 23 23 23 23 23 23 23 23 23 23  #### ###########
01e0: 23 23 20 23 23 23 23 23 23 23 23 23 23 23 23 23  ## #############
01f0: 23 23 23 23 23 23 23 23 0a 0a 23 23 20 53 79 6d  ########..## Sym
0200: 62 6f 6c 73 20 28 54 61 67 73 2c 20 42 72 61 6e  bols (Tags, Bran
0210: 63 68 65 73 29 20 70 65 72 20 66 69 6c 65 2e 0a  ches) per file..
0220: 0a 23 20 23 20 23 23 20 23 23 23 20 23 23 23 23  .# # ## ### ####
0230: 23 20 23 23 23 23 23 23 23 23 20 23 23 23 23 23  # ######## #####
0240: 23 23 23 23 23 23 23 23 20 23 23 23 23 23 23 23  ######## #######
0250: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 0a 23  ##############.#
0260: 23 20 52 65 71 75 69 72 65 6d 65 6e 74 73 0a 0a  # Requirements..
0270: 70 61 63 6b 61 67 65 20 72 65 71 75 69 72 65 20  package require 
0280: 54 63 6c 20 38 2e 34 20 20 20 20 20 20 20 20 20  Tcl 8.4         
0290: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
02a0: 20 20 20 20 3b 20 23 20 52 65 71 75 69 72 65 64      ; # Required
02b0: 20 72 75 6e 74 69 6d 65 2e 0a 70 61 63 6b 61 67   runtime..packag
02c0: 65 20 72 65 71 75 69 72 65 20 73 6e 69 74 20 20  e require snit  
02d0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
02e0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 3b 20                ; 
02f0: 23 20 4f 4f 20 73 79 73 74 65 6d 2e 0a 0a 23 20  # OO system...# 
0300: 23 20 23 23 20 23 23 23 20 23 23 23 23 23 20 23  # ## ### ##### #
0310: 23 23 23 23 23 23 23 20 23 23 23 23 23 23 23 23  ####### ########
0320: 23 23 23 23 23 20 23 23 23 23 23 23 23 23 23 23  ##### ##########
0330: 23 23 23 23 23 23 23 23 23 23 23 0a 23 23 20 0a  ###########.## .
0340: 0a 73 6e 69 74 3a 3a 74 79 70 65 20 3a 3a 76 63  .snit::type ::vc
0350: 3a 3a 66 6f 73 73 69 6c 3a 3a 69 6d 70 6f 72 74  ::fossil::import
0360: 3a 3a 63 76 73 3a 3a 66 69 6c 65 3a 3a 73 79 6d  ::cvs::file::sym
0370: 20 7b 0a 20 20 20 20 23 20 23 20 23 23 20 23 23   {.    # # ## ##
0380: 23 20 23 23 23 23 23 20 23 23 23 23 23 23 23 23  # ##### ########
0390: 20 23 23 23 23 23 23 23 23 23 23 23 23 23 0a 20   #############. 
03a0: 20 20 20 23 23 20 50 75 62 6c 69 63 20 41 50 49     ## Public API
03b0: 0a 0a 20 20 20 20 63 6f 6e 73 74 72 75 63 74 6f  ..    constructo
03c0: 72 20 7b 7d 20 7b 0a 09 72 65 74 75 72 6e 0a 20  r {} {..return. 
03d0: 20 20 20 7d 0a 0a 20 20 20 20 23 20 23 20 23 23     }..    # # ##
03e0: 20 23 23 23 20 23 23 23 23 23 20 23 23 23 23 23   ### ##### #####
03f0: 23 23 23 20 23 23 23 23 23 23 23 23 23 23 23 23  ### ############
0400: 23 0a 20 20 20 20 23 23 20 53 74 61 74 65 0a 0a  #.    ## State..
0410: 20 20 20 20 23 20 23 20 23 23 20 23 23 23 20 23      # # ## ### #
0420: 23 23 23 23 20 23 23 23 23 23 23 23 23 20 23 23  #### ######## ##
0430: 23 23 23 23 23 23 23 23 23 23 23 0a 20 20 20 20  ###########.    
0440: 23 23 20 49 6e 74 65 72 6e 61 6c 20 6d 65 74 68  ## Internal meth
0450: 6f 64 73 0a 0a 20 20 20 20 23 20 23 20 23 23 20  ods..    # # ## 
0460: 23 23 23 20 23 23 23 23 23 20 23 23 23 23 23 23  ### ##### ######
0470: 23 23 20 23 23 23 23 23 23 23 23 23 23 23 23 23  ## #############
0480: 0a 20 20 20 20 23 23 20 43 6f 6e 66 69 67 75 72  .    ## Configur
0490: 61 74 69 6f 6e 0a 0a 20 20 20 20 70 72 61 67 6d  ation..    pragm
04a0: 61 20 2d 68 61 73 74 79 70 65 69 6e 66 6f 20 20  a -hastypeinfo  
04b0: 20 20 6e 6f 20 20 3b 20 23 20 6e 6f 20 74 79 70    no  ; # no typ
04c0: 65 20 69 6e 74 72 6f 73 70 65 63 74 69 6f 6e 0a  e introspection.
04d0: 20 20 20 20 70 72 61 67 6d 61 20 2d 68 61 73 69      pragma -hasi
04e0: 6e 66 6f 20 20 20 20 20 20 20 20 6e 6f 20 20 3b  nfo        no  ;
04f0: 20 23 20 6e 6f 20 6f 62 6a 65 63 74 20 69 6e 74   # no object int
0500: 72 6f 73 70 65 63 74 69 6f 6e 0a 20 20 20 20 70  rospection.    p
0510: 72 61 67 6d 61 20 2d 68 61 73 74 79 70 65 6d 65  ragma -hastypeme
0520: 74 68 6f 64 73 20 6e 6f 20 20 3b 20 23 20 74 79  thods no  ; # ty
0530: 70 65 20 69 73 20 6e 6f 74 20 72 65 6c 65 76 61  pe is not releva
0540: 6e 74 2e 0a 20 20 20 20 70 72 61 67 6d 61 20 2d  nt..    pragma -
0550: 73 69 6d 70 6c 65 64 69 73 70 61 74 63 68 20 79  simpledispatch y
0560: 65 73 20 3b 20 23 20 73 69 6d 70 6c 65 20 66 61  es ; # simple fa
0570: 73 74 20 64 69 73 70 61 74 63 68 0a 0a 20 20 20  st dispatch..   
0580: 20 23 20 23 20 23 23 20 23 23 23 20 23 23 23 23   # # ## ### ####
0590: 23 20 23 23 23 23 23 23 23 23 20 23 23 23 23 23  # ######## #####
05a0: 23 23 23 23 23 23 23 23 0a 7d 0a 0a 6e 61 6d 65  ########.}..name
05b0: 73 70 61 63 65 20 65 76 61 6c 20 3a 3a 76 63 3a  space eval ::vc:
05c0: 3a 66 6f 73 73 69 6c 3a 3a 69 6d 70 6f 72 74 3a  :fossil::import:
05d0: 3a 63 76 73 3a 3a 66 69 6c 65 20 7b 0a 20 20 20  :cvs::file {.   
05e0: 20 6e 61 6d 65 73 70 61 63 65 20 65 78 70 6f 72   namespace expor
05f0: 74 20 73 79 6d 0a 7d 0a 0a 23 20 23 20 23 23 20  t sym.}..# # ## 
0600: 23 23 23 20 23 23 23 23 23 20 23 23 23 23 23 23  ### ##### ######
0610: 23 23 20 23 23 23 23 23 23 23 23 23 23 23 23 23  ## #############
0620: 20 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23   ###############
0630: 23 23 23 23 23 23 0a 23 23 20 52 65 61 64 79 0a  ######.## Ready.
0640: 0a 70 61 63 6b 61 67 65 20 70 72 6f 76 69 64 65  .package provide
0650: 20 76 63 3a 3a 66 6f 73 73 69 6c 3a 3a 69 6d 70   vc::fossil::imp
0660: 6f 72 74 3a 3a 63 76 73 3a 3a 66 69 6c 65 3a 3a  ort::cvs::file::
0670: 73 79 6d 20 31 2e 30 0a 72 65 74 75 72 6e 0a     sym 1.0.return.