Giter VIP home page Giter VIP logo

calc's Introduction

開発環境
 Ubuntu 11.10
 Linux 3.0.0-15-generic-pae #26-Ubuntu SMP
 gcc バージョン 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)
 GNU Make 3.81
 GNU gdb (Ubuntu/Linaro 7.3-0ubuntu2) 7.3-2011.08

動作確認環境
 Fedora 16 i686 3.1.0-7.fc16.i686 #1 SMP
 Fedora 16 x86_64 3.1.0-7.fc16.x86_64 #1 SMP
 CentOS 6.2 i386 2.6.32-220.el6.i686 #1 SMP
 Debian GNU/Linux 6.0.3 i386 2.6.32-5-686-bigmem

GNU readline インストール
 Ubuntu の場合
  $ sudo apt-get install libreadline6-dev
 Fedora の場合
  $ sudo yum install readline-devel

コンパイル
 $ cd calc
 $ make clean all または make clean debug

インストール
 $ sudo make install

クライアントサーバ
 サーバデーモン起動
 $ cd server
 $ ./calcd
 クライアントプログラム起動
 $ cd client
 $ ./calcc

スタンドアロン
 $ cd calc
 $ ./calcp

cutter インストール
 http://cutter.sourceforge.net/reference/ja/install.html

テスト
 cutter ライブラリをインストールし, make clean debug && make test コマンドを実行する.

ドキュメント生成
 doxygen, graphviz, mscgen をインストールし, make doc コマンドを実行する.

コーディングのコンセプト
 1. 戻り値を返す関数は必ず戻り値チェックしてログを出力する.
 2. 戻り値を返す標準関数であえて戻り値をチェックしない場合は, void でキャストする.
 3. 見映えを揃えるために決まった場所に必ずコメントを入れる.
 4. エラーハンドラでは, goto 文を積極的に使用する.
 5. メモリ解放後, NULL を代入する.
 6. ソケットクローズ後, -1 を代入する.

calc's People

Contributors

sluchin avatar

Stargazers

yingnierxiao avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.