Commit f30c5ef1f26ebfddbc61fc011973614188113d6a

Authored by Georg Hopp
1 parent 7dd45072

Organize modules in new source files

  1 +//
  2 +// Move some restaurant stuff in a different file....
  3 +//
  4 +// Georg Hopp <georg@steffers.org>
  5 +//
  6 +// Copyright © 2019 Georg Hopp
  7 +//
  8 +// This program is free software: you can redistribute it and/or modify
  9 +// it under the terms of the GNU General Public License as published by
  10 +// the Free Software Foundation, either version 3 of the License, or
  11 +// (at your option) any later version.
  12 +//
  13 +// This program is distributed in the hope that it will be useful,
  14 +// but WITHOUT ANY WARRANTY; without even the implied warranty of
  15 +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16 +// GNU General Public License for more details.
  17 +//
  18 +// You should have received a copy of the GNU General Public License
  19 +// along with this program. If not, see <http://www.gnu.org/licenses/>.
  20 +//
  21 +
  22 +pub mod hosting;
  23 +
  24 +mod serving {
  25 + fn take_order() {}
  26 + fn take_payment() {}
  27 +}
  1 +//
  2 +// Now also sepatate hosting....
  3 +//
  4 +// Georg Hopp <georg@steffers.org>
  5 +//
  6 +// Copyright © 2019 Georg Hopp
  7 +//
  8 +// This program is free software: you can redistribute it and/or modify
  9 +// it under the terms of the GNU General Public License as published by
  10 +// the Free Software Foundation, either version 3 of the License, or
  11 +// (at your option) any later version.
  12 +//
  13 +// This program is distributed in the hope that it will be useful,
  14 +// but WITHOUT ANY WARRANTY; without even the implied warranty of
  15 +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16 +// GNU General Public License for more details.
  17 +//
  18 +// You should have received a copy of the GNU General Public License
  19 +// along with this program. If not, see <http://www.gnu.org/licenses/>.
  20 +//
  21 +
  22 +pub fn add_to_waitlist() {}
  23 +fn seat_at_table() {}
@@ -19,18 +19,7 @@ @@ -19,18 +19,7 @@
19 // along with this program. If not, see <http://www.gnu.org/licenses/>. 19 // along with this program. If not, see <http://www.gnu.org/licenses/>.
20 // 20 //
21 21
22 -mod front_of_house {  
23 - pub mod hosting {  
24 - pub fn add_to_waitlist() {}  
25 - fn seat_at_table() {}  
26 - }  
27 -  
28 - mod serving {  
29 - fn take_order() {}  
30 - fn take_payment() {}  
31 -  
32 - }  
33 -} 22 +mod front_of_house;
34 23
35 fn serve_order() {} 24 fn serve_order() {}
36 25
Please register or login to post a comment