Overview  Index  Help 
CConfig Library

CConfig


structure CConfig : C_CONFIG =
struct
  exception Config
  val $
  val try
  val ensure
  val //
  val ifNone
  val ifSome
  val mkdtemp
  val removeDir
  val rm_f
  val openAppend
  val openOut
  val readFile
  val isReadable
  val unchomp
  val chomp
  val scanInt
  val scanWord
  val scanLargeInt
  val scanLargeWord
  val scanReal
  val fmtInt
  val conftest_name
  val config_log
  val verboseOpt
  val noticeOpt
  val loggingOpt
  val verbose : bool -> unit
  val message : bool -> unit
  val logging : bool -> unit
  val defaultConfig
  val configEnv
  val setConfig
  val findConfig
  val getConfig
  val getConfig'
  val config
      : string -> {set : string option -> unit, get : unit -> string option}
  val addConfig
  val expand : string -> string
  val getconf
  val libArg
  val lddCmd
  val conftest_c
  val conftest_out
  val conftest_exe
  val log
  val notice
  val checkingFor
  val checkingForVal'
  val checkingForVal
  val logSrc
  val tryInTmp
  val tryInDir
  val cppHeaders
  val createCSource
  val tryCommand
  val tryLink
  val tryRun
  val tryFunc
  val searchFilenames
  val libnameMatch
  val downcase
  val searchLibFile
  val findLibrary : string * string * string list -> string option
  val haveLibrary : string * string * string list -> bool
  val intFormat
  val uintFormat
  val longFormat
  val ulongFormat
  val doubleFormat
  val floatFormat
  val stringFormat
  val tryConst
  val checkSizeOf : string * string list -> int
  val haveConst
  val haveConstInt : string * string list -> int option
  val haveConstUInt : string * string list -> word option
  val haveConstLong : string * string list -> LargeInt.int option
  val haveConstULong : string * string list -> LargeWord.word option
  val haveConstFloat : string * string list -> real option
  val haveConstDouble : string * string list -> real option
  val haveConstString : string * string list -> string option
  val checkStructMember : string * string * string list -> (int * int) option
  val isBigEndian
  val charBit
  val cacheResult
  val checkIsBigEndian : unit -> bool
  val checkCharBitIs8
  val accessor
      : int * int ->
          {
            set : Word8Array.array * word -> unit,
            get : Word8Array.array -> word
          }
end

System configuration inspection by using C compiler.

Author:
UENO Katsuhiro
Copyright:
(c) 2007, Tohoku University.

       
Value detail

$

val $


try

val try


ensure

val ensure


//

val //


ifNone

val ifNone


ifSome

val ifSome


mkdtemp

val mkdtemp


removeDir

val removeDir


rm_f

val rm_f


openAppend

val openAppend


openOut

val openOut


readFile

val readFile


isReadable

val isReadable


unchomp

val unchomp


chomp

val chomp


scanInt

val scanInt


scanWord

val scanWord


scanLargeInt

val scanLargeInt


scanLargeWord

val scanLargeWord


scanReal

val scanReal


fmtInt

val fmtInt


conftest_name

val conftest_name


config_log

val config_log


verboseOpt

val verboseOpt


noticeOpt

val noticeOpt


loggingOpt

val loggingOpt


verbose

val verbose : bool -> unit


message

val message : bool -> unit


logging

val logging : bool -> unit


defaultConfig

val defaultConfig


configEnv

val configEnv


setConfig

val setConfig


findConfig

val findConfig


getConfig

val getConfig


getConfig'

val getConfig'


config

val config
    : string -> {set : string option -> unit, get : unit -> string option}


addConfig

val addConfig


expand

val expand : string -> string


getconf

val getconf


libArg

val libArg


lddCmd

val lddCmd


conftest_c

val conftest_c


conftest_out

val conftest_out


conftest_exe

val conftest_exe


log

val log


notice

val notice


checkingFor

val checkingFor


checkingForVal'

val checkingForVal'


checkingForVal

val checkingForVal


logSrc

val logSrc


tryInTmp

val tryInTmp


tryInDir

val tryInDir


cppHeaders

val cppHeaders


createCSource

val createCSource


tryCommand

val tryCommand


tryLink

val tryLink


tryRun

val tryRun


tryFunc

val tryFunc


searchFilenames

val searchFilenames


libnameMatch

val libnameMatch


downcase

val downcase


searchLibFile

val searchLibFile


findLibrary

val findLibrary : string * string * string list -> string option


haveLibrary

val haveLibrary : string * string * string list -> bool


intFormat

val intFormat


uintFormat

val uintFormat


longFormat

val longFormat


ulongFormat

val ulongFormat


doubleFormat

val doubleFormat


floatFormat

val floatFormat


stringFormat

val stringFormat


tryConst

val tryConst


checkSizeOf

val checkSizeOf : string * string list -> int


haveConst

val haveConst


haveConstInt

val haveConstInt : string * string list -> int option


haveConstUInt

val haveConstUInt : string * string list -> word option


haveConstLong

val haveConstLong : string * string list -> LargeInt.int option


haveConstULong

val haveConstULong : string * string list -> LargeWord.word option


haveConstFloat

val haveConstFloat : string * string list -> real option


haveConstDouble

val haveConstDouble : string * string list -> real option


haveConstString

val haveConstString : string * string list -> string option


checkStructMember

val checkStructMember : string * string * string list -> (int * int) option


isBigEndian

val isBigEndian


charBit

val charBit


cacheResult

val cacheResult


checkIsBigEndian

val checkIsBigEndian : unit -> bool


checkCharBitIs8

val checkCharBitIs8


accessor

val accessor
    : int * int ->
        {set : Word8Array.array * word -> unit, get : Word8Array.array -> word}

 
Exception detail

Config

exception Config


Overview  Index  Help 
CConfig Library