Skip to content

Commit

Permalink
Rename dos33 to dos3
Browse files Browse the repository at this point in the history
  • Loading branch information
zellyn committed Nov 17, 2016
1 parent e9f2791 commit 9991af8
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion cmd/catalog.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/spf13/cobra"
"github.com/zellyn/diskii/lib/disk"
_ "github.com/zellyn/diskii/lib/dos33"
_ "github.com/zellyn/diskii/lib/dos3"
_ "github.com/zellyn/diskii/lib/supermon"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/spf13/cobra"
"github.com/zellyn/diskii/lib/disk"
_ "github.com/zellyn/diskii/lib/dos33"
_ "github.com/zellyn/diskii/lib/dos3"
_ "github.com/zellyn/diskii/lib/supermon"
)

Expand Down
11 changes: 6 additions & 5 deletions lib/dos33/dos33.go → lib/dos3/dos3.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// Copyright © 2016 Zellyn Hunter <[email protected]>

// Package dos33 contains routines for working with the on-disk structures of DOS 3.3.
package dos33
// Package dos3 contains routines for working with the on-disk
// structures of Apple DOS 3.
package dos3

import (
"encoding/binary"
Expand Down Expand Up @@ -465,8 +466,8 @@ type operator struct {
var _ disk.Operator = operator{}

// operatorName is the keyword name for the operator that undestands
// dos33 disks.
const operatorName = "dos33"
// dos3 disks.
const operatorName = "dos3"

// Name returns the name of the operator.
func (o operator) Name() string {
Expand Down Expand Up @@ -504,7 +505,7 @@ func (o operator) GetFile(filename string) (disk.FileInfo, error) {
return disk.FileInfo{}, fmt.Errorf("%s does not yet implement `GetFile`", operatorName)
}

// operatorFactory is the factory that returns dos33 operators given
// operatorFactory is the factory that returns dos3 operators given
// disk images.
func operatorFactory(sd disk.SectorDisk) (disk.Operator, error) {
lsd, err := disk.NewMappedDisk(sd, disk.Dos33LogicalToPhysicalSectorMap)
Expand Down
2 changes: 1 addition & 1 deletion lib/dos33/dos33_test.go → lib/dos3/dos3_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dos33
package dos3

import (
"crypto/rand"
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions lib/supermon/supermon.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,8 @@ func (o operator) GetFile(filename string) (disk.FileInfo, error) {
}, nil
}

// operatorFactory is the factory that returns dos33 operators given
// disk images.
// operatorFactory is the factory that returns supermon operators
// given disk images.
func operatorFactory(sd disk.SectorDisk) (disk.Operator, error) {
sm, err := LoadSectorMap(sd)
if err != nil {
Expand Down

0 comments on commit 9991af8

Please sign in to comment.