Mindaugas Kavaliauskas ae870f642a 2009-09-21 17:20 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
+ harbour/contrib/iodmem
  + harbour/contrib/iodmem/iodmem.c
    + Implemented Memory file system. Public functions hb_memfs*() are 
      availible, if HB_MEMFS_PUBLIC_API is defined.
    + Implemeted I/O driver for memory file system
    ; HB_IODMEM request can be used to force linking of I/O driver and 
      memory FS into executable.
      "mem:" prefix should be used to indicate a MemFS file, ex.:

      REQUEST HB_IODMEM

      PROC main()
        LOCAL nI
        FIELD F1

        DBCREATE("mem:test", {{"F1", "N", 9, 0}},, .T., "memarea")
        FOR nI := 1 TO 1000
          DBAPPEND();  F1 := HB_RANDOM() * 1000000
        NEXT
        INDEX ON F1 TAG f1
        DBEVAL({|| QOUT(F1)})
        DBCLOSEAREA()
        DBDROP("mem:test")  // Free memory resource
      RETURN

    ; TODO: locking is not supported yet (but it is not very usefull 
      if MemFS is used to store of a temporary database opened in 
      exclusive mode).
2009-09-21 14:24:02 +00:00
Description
Harbour Core — Reference source for Five development
172 MiB
Languages
C 80.3%
xBase 17.8%
Makefile 0.6%
C++ 0.4%
Harbour 0.4%
Other 0.3%